Hacking Official [Release] CakesFW

mid-kid

GBAtemp spamBOT
OP
Member
Joined
Aug 2, 2012
Messages
879
Trophies
0
Age
25
XP
1,163
Country
I'm curious about something, what is preventing permanent sig patches to the 3ds? It would be nice not to having to boot a cfw all the time. All these CFWs are popping up left and right, and yet nothing about permanently patching sig checks. I not trying to be rude or impatient or anything, just curious.

This has been answered thousands of times (not in this thread, though), and we have a tread about this every other week:
The bootloader (which can't be replaced) verifies that the NATIVE_FIRM it is booting is signed by Nintendo i.e. not modified.
Flashing a custom NATIVE_FIRM causes a brick due to this fact.
 

TheNerdWIzard

Well-Known Member
Member
GBAtemp Patron
Joined
Jun 7, 2015
Messages
253
Trophies
1
Age
30
XP
2,147
Country
United States
This has been answered thousands of times (not in this thread, though), and we have a tread about this every other week:
The bootloader (which can't be replaced) verifies that the NATIVE_FIRM it is booting is signed by Nintendo i.e. not modified.
Flashing a custom NATIVE_FIRM causes a brick due to this fact.
Ok, thanks for the info.
 

pokemoner2500

Well-Known Member
Member
Joined
Aug 14, 2013
Messages
882
Trophies
1
Age
24
XP
1,593
Country
United States
This has been answered thousands of times (not in this thread, though), and we have a tread about this every other week:
The bootloader (which can't be replaced) verifies that the NATIVE_FIRM it is booting is signed by Nintendo i.e. not modified.
Flashing a custom NATIVE_FIRM causes a brick due to this fact.
Now if we had nintendo's keys...
 

Jaitsu

Yet Another GBATemp Furry
Member
Joined
Jun 2, 2015
Messages
152
Trophies
0
Age
31
XP
206
Country
United States
Now if we had nintendo's keys...

Sadly, assuming the keys are even remotely close to modern crypto standards, they'd take eons to crack, so that'd need a leak. We're more likely to find an exploit for the bootloader than to get those keys, I'd imagine.
 

Vappy

Well-Known Member
Member
Joined
May 23, 2012
Messages
1,508
Trophies
2
XP
2,613
Country
Sadly, assuming the keys are even remotely close to modern crypto standards, they'd take eons to crack, so that'd need a leak. We're more likely to find an exploit for the bootloader than to get those keys, I'd imagine.
People have been given too-high expectations by the Wii and PS3. The former had laughable security, and only verified software on install but not when booting it, and the latter had a huge, stupid flaw in the cryptography allowing the private key to be calculated, a mistake that no company is likely to make again after that happened.
 
  • Like
Reactions: Zidapi

Suiginou

(null)
Member
Joined
Jun 26, 2012
Messages
565
Trophies
0
Location
pc + 8
XP
738
Country
Gambia, The
Sadly, assuming the keys are even remotely close to modern crypto standards.
The 3DS has been using RSA-2048 and RSA-4096, both considered currently strong, for signatures and some elliptic curve crypto. Nothing to break there.

RSA-1024 has been getting slowly phazed out, however. That is what the DS uses to verify DS Download Play content. I'm not sure if the DSi also relies on RSA-1024, but if it does, breaking into ARM9 via well-signed DS Download Play would become an option around 2020 or 2025, probably.
 

Madridi

Card Collector
Member
Joined
May 9, 2008
Messages
3,562
Trophies
2
Age
38
Location
Doha
XP
3,071
Country
Qatar
Uh.. @mid-kid .. I know you already posted about it but I was confused by your edit.

My question: is the firmware.bin from the new rxTools compatible with cakes? Or do we need to have more than one SD now or something :s
 

Suiginou

(null)
Member
Joined
Jun 26, 2012
Messages
565
Trophies
0
Location
pc + 8
XP
738
Country
Gambia, The
My question: is the firmware.bin from the new rxTools compatible with cakes? Or do we need to have more than one SD now or something :s
Easiest way would be to just try it.

Cakes seems to play nice and properly parse the first NCCH in firmware.bin (see source/cfw/firm.c:decrypt_firm()). rxTools's new firmware.bin is just NATIVE_FIRM + AGB_FIRM + TWL_FIRM appended one after another, so it should work in theory.
 
  • Like
Reactions: Madridi and mid-kid

Madridi

Card Collector
Member
Joined
May 9, 2008
Messages
3,562
Trophies
2
Age
38
Location
Doha
XP
3,071
Country
Qatar
Easiest way would be to just try it.

Cakes seems to play nice and properly parse the first NCCH in firmware.bin (see source/cfw/firm.c:decrypt_firm()). rxTools's new firmware.bin is just NATIVE_FIRM + AGB_FIRM + TWL_FIRM appended one after another, so it should work in theory.
Yeah I know that from his post below, but the edit confused me though. I am not sure if he meant that this will be a problem or not

No need to do that. The new firmware.bin from rxTools is basically old firmware.bin + AGB_FIRM + TWL_FIRM. Tested it and the current build of cakes should be able to load it pretty much correctly, only taking a bit longer because it's bigger (will limit the size that is loaded in a newer build). It will just ignore the latter two parts.
EDIT: Wait, nevermind. If I remember correctly, the latest release loads "just enough", as the firmware size is fixed. In development I just load the whole thing regardless of size to support multiple versions.
 

A600

Well-Known Member
Newcomer
Joined
Jun 2, 2015
Messages
47
Trophies
0
Age
44
XP
236
Country
Looking at the rxTools code, once you have installed the required files, the firmware.bin isn't needed anymore so there shouldn't be a problem if it's replaced with the old one.
 
  • Like
Reactions: Madridi

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
Commit 41, "This builds with CakeHax", completely breaks the cakes.

An Error has occurred prompt with spider and mset. 4.5 and 9.2 NA.
 

b1l1s

Well-Known Member
Member
Joined
May 2, 2015
Messages
151
Trophies
0
XP
161
Country
Malaysia
gah Now I remembered. The commit fails with windows builds. mid-kid has a fix for that a couple of days back. You have to update CakeHax.
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
gah Now I remembered. The commit fails with windows builds. mid-kid has a fix for that a couple of days back. You have to update CakeHax.
Seems to be the case, I didn't notice cakesforeverywan used an older cakehax commit. It works now with the latest build. Thx.
 

Apache Thunder

I have cameras in your head!
Member
Joined
Oct 7, 2007
Messages
4,426
Trophies
3
Age
36
Location
Levelland, Texas
Website
www.mariopc.co.nr
XP
6,789
Country
United States
My forked build of rxTools now has CakeHax as well. I also included a rebuilt version of CakesROP.nds for installing MSET ROP for 4.x/9.x. Note that my fork will not work with Ninjhax because of what I've done with the bottom screen. I have not tested 4.x MSET, but on 9.x it boots fine from spider and downgraded MSET. (this fork does not use any of the new draw code that has been recently added to the main branch. FYI)

https://github.com/ApacheThunder/rxTools/releases/tag/2.6b

(this build also disables encryption of filepack aka the data.bin file during compile. I updated filepack.c accordingly. Refer to the changes I made to make that work when CakeHax gets merged to the main branch. There's really no need for any of rxTools to be encrypted anymore. This was the last bit that was encrypted)

This build will be obsolete once they get the themed GUI stuff finished and working on all entry points. Currently seems broken on all entry points. Tried it earlier today from CubicNinja and even from there it doesn't work (well it still boots and does things. But I can't see what I'm doing. The graphics are missing and the text doesn't render past the initial setup screen)

Perhaps their theme graphics isn't being loaded into rxTools during compile. Theme graphics should be added to filepack.h FYI unless you plan on completely redoing filepack coding. ;)

I did provide a compiled binary with that, so folks won't have to compile it. :D

I haven't tested if my bottom screen splash logo gets along with MSET 4.x. Someone should test that.

EDIT: Crap thought this was the rxTools thread. LOL. Well I guess it works here too. There's a lot of CakeFW related stuff in it now anyways. :P
 
Last edited by Apache Thunder,

b1l1s

Well-Known Member
Member
Joined
May 2, 2015
Messages
151
Trophies
0
XP
161
Country
Malaysia
My forked build of rxTools now has CakeHax as well. I also included a rebuilt version of CakesROP.nds for installing MSET ROP for 4.x/9.x. Note that my fork will not work with Ninjhax because of what I've done with the bottom screen. I have not tested 4.x MSET, but on 9.x it boots fine from spider and downgraded MSET.

https://github.com/ApacheThunder/rxTools/releases/tag/2.6b
(this build also disables encryption of filepack aka the data.bin file during compile. I updated filepack.c accordingly. Refer to the changes I made to make that work when CakeHax gets merged to the main branch. There's really no need for any of rxTools to be encrypted anymore. This was the last bit that was encrypted)

This build will be obsolete once they get the themed GUI stuff finished and working on all entry points. Currently seems broken on all entry points. Tried it earlier today from CubicNinja and even from there it doesn't work (well it still boots and does things. But I can't see what I'm doing. The graphics are missing and the text doesn't render past the initial setup screen)

Perhaps their theme graphics isn't being loaded into rxTools during compile. Theme graphics should be added to filepack.h FYI unless you plan on completely redoing filepack coding. ;)

I did provide a compiled binary with that, so folks won't have to compile it. :D

I haven't tested if my bottom screen splash logo gets along with MSET 4.x. Someone should test that.

Man that's awesome. I was hoping someone would port CakeHax for rxTools!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: I don't have prime, I order once I am orderign $35 worth of stuff