Hacking Official Corbenik - Another CFW for advanced users (with bytecode patches!)

The Catboy

GBAtemp Official Catboy™: Boywife
Member
Joined
Sep 13, 2009
Messages
28,013
Trophies
4
Location
Making a non-binary fuss
XP
39,600
Country
Antarctica
I suppose the Pokemon S/M outline patch needs to be changed for 1.1, correct?
I thought I posted that it worked, but it appears a sever error only saved the message and didn't post it. The cool thing about the patches for this is that they will always work, compared to the code.bin method
 
Last edited by The Catboy,

Gray_Jack

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
732
Trophies
0
XP
407
Country
I made the SciresM's patches dynamic, seen to work, but I like some others testers to make sure I did nothing wrong

https://gist.github.com/GrayJack/fc5adeb74f99eab45924e3f80197195a

I decided to use gist cause it looks like a better way to show people the patch instead of creating a new branch, commit the patch and tell people to clone the entire repository to try it.


For the ones that wish to try the patch but don't have the environment set up to compile it or just don't want/can compile:

https://up1.secretalgorithm.com/#d9GCe0wAWzF1jxM461laPA

Just put the .vco file inside the SD:/corkenik/bin folder.
 

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,287
Country
United States
Managed to get it to "work" with hs, but stuff wasn't actually getting beyond the nintendo 3ds screen with the exception of fbi 2.whatever the latest build is (this would go into a fatal error: Failed to set syscore CPU time limit: D900A82F). Without sigpatches, the Nintendo 3ds screen doesn't even appear, and it just black screens. Didn't get too much time to attempt to get further along and try titles outside of hs (I would need to install them while on 2.1), but I guess it semi-works?
Other random thing, launching it twice would corrupt the bottom screen display, but inputs from there still worked properly. Solved by launching another app.

Yeah, that's probably just application incompatibility. ctrulib assumes the system isn't running 2.x. I'm more surprised FBI even boots, honestly. Quick check; you're just using sigpatches, right? I'm doubtful loader injection is sane pre-rewrite on the 2.x FIRMs.

Here it is, then

Cache: Region Free HOME (Loader)
Version: 10
cache: 0004003000008F02
cache: 0004003000008202
cache: 0004003000009802
cache: 000400300000A102
cache: 000400300000A902
cache: 000400300000B102
Cache: Title Downgrade Fix (11.0+ NFIRM)
Version: 10
cache: 0004013800000002
cache: 0004013820000002
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 35317068
ordblks: 5
uordblks: 35314708
fordblks: 2360
arena: 1762636
ordblks: 2
uordblks: 1758572
fordblks: 4064
Firmlaunch failed, returning to menu
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 1762636
ordblks: 3
uordblks: 1759132
fordblks: 3504
Firmlaunch failed, returning to menu
arena: 1762636
ordblks: 2
uordblks: 1758572
fordblks: 4064
Firmlaunch failed, returning to menu
arena: 1762636
ordblks: 2
uordblks: 1758612
fordblks: 4024
Firmlaunch failed, returning to menu
Cache: Region Free HOME (Loader)
Version: 10
cache: 0004003000008F02
cache: 0004003000008202
cache: 0004003000009802
cache: 000400300000A102
cache: 000400300000A902
cache: 000400300000B102
Cache: Settings Version String (Loader)
Version: 10
cache: 0004001000021000
cache: 0004001000020000
cache: 0004001000022000
cache: 0004001000026000
cache: 0004001000027000
cache: 0004001000028000
Cache: Block eShop Updates (Loader)
Version: 10
cache: 0004013000002C02
Cache: Block Cart Update / Cart RF (Loader)
Version: 10
cache: 0004013000008002
Cache: Remove Outlines - Pokemon S/M (Loader)
Version: 1
cache: 0004000000164800
cache: 0004000000175E00
arena: 1762636
ordblks: 5
uordblks: 1761452
fordblks: 1184
Firmlaunch failed, returning to menu

Did you run either o3ds_firm.sh or n3ds_firm.sh, and do you have slot0x11key96.bin on your SD? It's not even running the bytecode, so it's failing to load the firm for whatever reason. I'm inclined to believe it's improperly set up.

I made the SciresM's patches dynamic, seen to work, but I like some others testers to make sure I did nothing wrong

https://gist.github.com/GrayJack/fc5adeb74f99eab45924e3f80197195a

I decided to use gist cause it looks like a better way to show people the patch instead of creating a new branch, commit the patch and tell people to clone the entire repository to try it.

For the ones that wish to try the patch but don't have the environment set up to compile it or just don't want/can compile:

https://up1.secretalgorithm.com/#d9GCe0wAWzF1jxM461laPA

Just put the .vco file inside the SD:/corkenik/bin folder.

I'm more than slightly curious what's up with the large amount of 3F. Anyways, since I rather want to go on a island scan binge, I'll test.

On the topic of the 2.x sigchecks; I shuffled around the source tree some, so it's probably going to merge conflict if you attempt to PR it. Sorry, my bad. :<

I'll go ahead and merge it in from your fork manually. From the reports, it seems to work as intended.

The cleanup was more-than-slightly required, since some of the stuff in external isn't external, and I'm in the process of sorting out all the source dependencies.

I thought I posted that it worked, but it appears a sever error only saved the message and didn't post it. The cool thing about the patches for this is that they will always work, compared to the code.bin method

Short of severe rewriting by Nintendo / Game Freak / Whatever, anyways. And TWL is the one thing using fixed offsets. I should *really* fix that.
 
Last edited by chaoskagami,

Gray_Jack

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
732
Trophies
0
XP
407
Country
I'm more than slightly curious what's up with the large amount of 3F
Me too, I had a big help of a friend who knows assembler, but he/she doesn't want any mention of him/her.

Anyways, since I rather want to go on a island scan binge, I'll test.
Please, report if it worked. :3

On the topic of the 2.x sigchecks; I shuffled around the source tree some, so it's probably going to merge conflict if you attempt to PR it. Sorry, my bad. :<

I'll go ahead and merge it in from your fork manually. From the reports, it seems to work as intended.

The cleanup was more-than-slightly required, since some of the stuff in external isn't external, and I'm in the process of sorting out all the source dependencies.
Don't worry, I would never be mad for you making you software even better. :D
And that is another reason to use gist to yet experimental patches instead of a branch. :3
 
  • Like
Reactions: gnmmarechal

chaoskagami

G̷̘̫̍̈́̊̓̈l̴̙͔̞͠i̵̳͊ţ̸̙͇͒̓c̵̬̪̯̥̳͒͌̚h̵̹̭͛̒̊̽̚
OP
Developer
Joined
Mar 26, 2016
Messages
1,365
Trophies
1
Location
↑↑↓↓←→←→BA
Website
github.com
XP
2,287
Country
United States
Me too, I had a big help of a friend who knows assembler, but he/she doesn't want any mention of him/her.

Please, report if it worked. :3

I suspect it won't from looking at it and SciresM's code. Honestly, I'm going to apply this manually and figure out what it actually does first. The 3F nonsense doesn't look right to me. (Ugh, need to complete the VM rewrite so I can actually patch branches in VM...)

Don't worry, I would never be mad for you making you software even better. :D
And that is another reason to use gist to yet experimental patches instead of a branch. :3

Well, the way I merged wasn't just slapping the patch in my tree; I preserved the individual commit and used a merge commit to fix up the path. I prefer to not squash and lose attribution.
 

Gray_Jack

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
732
Trophies
0
XP
407
Country
I suspect it won't from looking at it and SciresM's code. Honestly, I'm going to apply this manually and figure out what it actually does first. The 3F nonsense doesn't look right to me. (Ugh, need to complete the VM rewrite so I can actually patch branches in VM...)
Actually, It is very similar with the kitling patch , the set parts, except that my friend and I made it in more parts, now that I checked his gist.
And there is a lot of 3F too.
 
Last edited by Gray_Jack,

BARNWEY

Well-Known Member
Member
Joined
Oct 11, 2016
Messages
1,268
Trophies
0
XP
648
Country
United States
I made the SciresM's patches dynamic, seen to work, but I like some others testers to make sure I did nothing wrong

https://gist.github.com/GrayJack/fc5adeb74f99eab45924e3f80197195a

I decided to use gist cause it looks like a better way to show people the patch instead of creating a new branch, commit the patch and tell people to clone the entire repository to try it.


For the ones that wish to try the patch but don't have the environment set up to compile it or just don't want/can compile:

https://up1.secretalgorithm.com/#d9GCe0wAWzF1jxM461laPA

Just put the .vco file inside the SD:/corkenik/bin folder.
Hmmm, I'm kind of interested.... Quick question: Did you test this on corbenik or skeith?
 

ih8ih8sn0w

Koreaboo
Member
Joined
Aug 22, 2015
Messages
1,677
Trophies
0
Age
25
Location
Hell
XP
898
Country
United States
Yeah, that's probably just application incompatibility. ctrulib assumes the system isn't running 2.x. I'm more surprised FBI even boots, honestly. Quick check; you're just using sigpatches, right? I'm doubtful loader injection is sane pre-rewrite on the 2.x FIRMs.
I was only using sigpatches and firm protection. Going to try to get the ancient sysdowngraders to work so I can at least have access to signed test menu, devmenu, and some other titles... Fwiw, I tried using a cn dump, but that failed... Might be due to me installing it while on 11.x?
 
  • Like
Reactions: Gray_Jack

BARNWEY

Well-Known Member
Member
Joined
Oct 11, 2016
Messages
1,268
Trophies
0
XP
648
Country
United States
Will this replace the default a9lh bin file on the sd card? I usually have luma as default and chain loaded the sketh or corbenik... which ever is supposed to be called, by holding down on d-pad during boot.
Yes, it will replace it...

--------------------- MERGED ---------------------------

What update? 1.0 or 1.1?
1.1
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Anyone wanna play with my joydock
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    K3Nv2 @ K3Nv2: https://youtu.be/z9E_uv5IT-o?si=0qMdVEnRK8mmclzS