Homebrew [Dev Tool] CakeHax - Open Source ARM9 loader

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
I've had the code for this in CakesFW for a while now, but I've decided to separate it and make it a standalone project.
This is a mostly drop-in replacement for Gateway's LauncherTemplate.dat you see in projects like rxTools and Decrypt9.
What this does, is, from whatever entry point you're coming, does some exploits to get into ARM9 kernel mode, and then runs your code.

More info on the github page: https://github.com/mid-kid/CakeHax

Currently supported entry points are MSET 4.x on firmwares 4.x and 9.0-9.2, and spider 4.0-9.2.
Note for MSET: The only MSET 9.x ROP installer right now is http://mkiddy.leerik.nl/cakes/CakesROP.nds

As an example of how to replace LauncherTemplate.dat with CakeHax, this is all I had to change in Decrypt9 to make it run on MSET with CakeHax: https://github.com/mid-kid/Decrypt9/commit/86f1c21672c7672992f7ba224bf0e001d4c8d3f5
And here a binary: http://mkiddy.leerik.nl/bin/Decrypt9.dat (NOTE: You can't rename it, or it won't work. You'll have to use the ropCustom.txt feature in CakesROP.nds for MSET)
 

Syphurith

Beginner
Member
Joined
Mar 8, 2013
Messages
641
Trophies
0
Location
Xi'an, Shaanxi Province
XP
364
Country
Switzerland
So you get 9.x MSET done now, congratulations!
Roxas left the scene, rxtools get into Pasta team. So.. there may be a merge.
If you could summerize how you searched for this, that would be more useful.

BTW, I'm hoping for a way to keep both ARM9 and ARM11 kernels, that would be quite interesting.
Maybe through service, maybe not. I don't think KARL/SALT would release such one as open-source or even take a look at it.
 

k8099

Well-Known Member
Newcomer
Joined
Dec 15, 2014
Messages
59
Trophies
0
Age
35
XP
102
Country
Switzerland
I've had the code for this in CakesFW for a while now, but I've decided to separate it and make it a standalone project.
This is a mostly drop-in replacement for Gateway's LauncherTemplate.dat you see in projects like rxTools and Decrypt9.
What this does, is, from whatever entry point you're coming, does some exploits to get into ARM9 kernel mode, and then runs your code.

More info on the github page: https://github.com/mid-kid/CakeHax

Currently supported entry points are MSET 4.x on firmwares 4.x and 9.0-9.2, and spider 4.0-9.2.
Note for MSET: The only MSET 9.x ROP installer right now is http://mkiddy.leerik.nl/cakes/CakesROP.nds

As an example of how to replace LauncherTemplate.dat with CakeHax, this is all I had to change in Decrypt9 to make it run on MSET with CakeHax: https://github.com/mid-kid/Decrypt9/commit/86f1c21672c7672992f7ba224bf0e001d4c8d3f5
And here a binary: http://mkiddy.leerik.nl/bin/Decrypt9.dat (NOTE: You can't rename it, or it won't work. You'll have to use the ropCustom.txt feature in CakesROP.nds for MSET)

what i should do with the ropCustom.txt to load the Decrypt9.dat you give?or can i use this to load rxtools on 9.x mset?
 

k8099

Well-Known Member
Newcomer
Joined
Dec 15, 2014
Messages
59
Trophies
0
Age
35
XP
102
Country
Switzerland
You should write "Decrypt9.dat" into the ropCustom.txt using notepad or something.
No, you can't use it for rxtools on 9.x MSET, yet.

ok,it is work good with Decrypt9.dat,by the way,if cakesFW have regionfree,now i can just use cakesFW in my 9.2 o3ds.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
So does the MSET installer/loading work on n3ds with downgraded MSET?
Or only o3ds atm?

Edit: So yeah i can't get anything to run from mset with this. :( (testing with decrypt9), made the changes you did to your fork or D9, the lastest CakesROP.nds with ropCustom.txt with Decrypt9.dat in it and just crashes to home when trying to load from the profile... on old 3ds this is, 4.5 and 9.2.
Any ideas?
 
Last edited by Shadowtrance,

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
So does the MSET installer/loading work on n3ds with downgraded MSET?
Or only o3ds atm?

Edit: So yeah i can't get anything to run from mset with this. :( (testing with decrypt9), made the changes you did to your fork or D9, the lastest CakesROP.nds with ropCustom.txt with Decrypt9.dat in it and just crashes to home when trying to load from the profile... on old 3ds this is, 4.5 and 9.2.
Any ideas?

For 9.2 you have to downgrade MSET to 4.x. See the CakesFW thread for instructions.
On 4.5... It works for me. Don't know what you could be doing wrong. If you're building on windows, use my decrypt9.dat or update the CakeHax submodule, as compilation fails on windows for the old CakeHax (the one used currently by the Decrypt9 fork).
EDIT: Updated CakeHax in the Decrypt9 fork.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: Where's everybody?