Hacking SD card corrupted. No backups - on updated sysnand with Luma.

astrangeone

Well-Known Member
OP
Member
Joined
Dec 1, 2009
Messages
2,228
Trophies
0
Age
40
Location
Canada
Website
www.shophandmade.com
XP
1,326
Country
Canada
I was just attempting a DSiWare downgrade on a new Nintendo 3DS XL, and my card corrupted while putting on the public.sav. I put everything back onto a fresh micro SD - armloaderhax.bin, luma folders, and even put Hourglass9 back into place.

Hourglass9 is not working. Even renamed to y_Hourglass9.bin doesn't work.

What am I missing?
 

Hayato213

Newcomer
Member
Joined
Dec 26, 2015
Messages
20,390
Trophies
1
XP
21,844
Country
United States
Completely untrue. The OTP is not used for any kind of FIRM encryption at all. Rather, the OTP is used in FIRM decryption.
The OTP is used to calculate keys that are used in arm9loader to decrypt FIRM0 & FIRM1. The FIRMs are signed by Nintendo, which obviously we can't change and still have signed. However, what we do is add a payload to the end of FIRM0. Because FIRM0 isn't signed, the arm9loader does not jump to it and reads the backup FIRM1, which is smaller, and thus our payload isn't unloaded when the valid FIRM1 is read and prepared to jump to. Now here's where the OTP comes into play. Simplified to an extreme, the FIRM1 is signed by Nintendo, but that doesn't mean it has to be read correctly, thanks to the unsigned keystore flaw. Because the keys are derived from the OTP, we obtain our OTP to mathematically determine a very special key. This key, when used by the arm9loader to decrypt FIRM1, will decrypt FIRM1 to, at the point where ARM9 jumps in, have an instruction to jump to our payload, still loaded in at the end of memory. Rekt.
I hope this answered any questions, and wasn't too confusing. Tell me if there's something I didn't cover, or doesn't make sense ;)
Something else to mention: FIRM0 is the only integrity check that's failed. The arm9loader does not check the keystore, which unknowingly leads itself to its doom.


This explain why you need OTP for for A9LH, it is someone else explanation not mine btw, as long you have all the necessary required file then your system can boot
 

astrangeone

Well-Known Member
OP
Member
Joined
Dec 1, 2009
Messages
2,228
Trophies
0
Age
40
Location
Canada
Website
www.shophandmade.com
XP
1,326
Country
Canada
Completely untrue. The OTP is not used for any kind of FIRM encryption at all. Rather, the OTP is used in FIRM decryption.
The OTP is used to calculate keys that are used in arm9loader to decrypt FIRM0 & FIRM1. The FIRMs are signed by Nintendo, which obviously we can't change and still have signed. However, what we do is add a payload to the end of FIRM0. Because FIRM0 isn't signed, the arm9loader does not jump to it and reads the backup FIRM1, which is smaller, and thus our payload isn't unloaded when the valid FIRM1 is read and prepared to jump to. Now here's where the OTP comes into play. Simplified to an extreme, the FIRM1 is signed by Nintendo, but that doesn't mean it has to be read correctly, thanks to the unsigned keystore flaw. Because the keys are derived from the OTP, we obtain our OTP to mathematically determine a very special key. This key, when used by the arm9loader to decrypt FIRM1, will decrypt FIRM1 to, at the point where ARM9 jumps in, have an instruction to jump to our payload, still loaded in at the end of memory. Rekt.
I hope this answered any questions, and wasn't too confusing. Tell me if there's something I didn't cover, or doesn't make sense ;)


Something else to mention: FIRM0 is the only integrity check that's failed. The arm9loader does not check the keystore, which unknowingly leads itself to its doom.


This explain why you need OTP for for A9LH, it is someone else explanation not mine btw, as long you have all the necessary required file then your system can boot


Thanks, and I knew all that. My system is booting fine, and I'm going to do the DSiWare transfer tomorrow for a friend, but I just wanted to make a backup of my NAND before hand - otherwise I'm stuck reinjecting fbi to h&s.
 

Hayato213

Newcomer
Member
Joined
Dec 26, 2015
Messages
20,390
Trophies
1
XP
21,844
Country
United States
Thanks, and I knew all that. My system is booting fine, and I'm going to do the DSiWare transfer tomorrow for a friend, but I just wanted to make a backup of my NAND before hand - otherwise I'm stuck reinjecting fbi to h&s.

You are welcome and Im glad you fixed your 3ds

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

Remember to backup your SD card without the games to your computer as backup.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • crafthp434 @ crafthp434:
    aroma
  • NinStar @ NinStar:
    in that case, there is no such thing as homebrew launcher for aroma
  • NinStar @ NinStar:
    you have to launch your homebrews directly from the wii u menu
  • NinStar @ NinStar:
    there is a plugin that display them on the wii u menu, pretty sure it is enabled by default
  • crafthp434 @ crafthp434:
    so like it doesnt exist
  • crafthp434 @ crafthp434:
    yeah
    ?
  • NinStar @ NinStar:
    it doesn't exist, at least not for aroma
  • crafthp434 @ crafthp434:
    ohhhhh
  • NinStar @ NinStar:
    on tiramisu you can access it by opening mii maker
  • crafthp434 @ crafthp434:
    okay
  • NinStar @ NinStar:
    I don't have a wii u anymore to test it myself, but if homebrews are not visible on the wii u menu I think you can press L + R + minus to open the plugin menu, there should be an option called "homebrews on wii u menu" or something similar
  • crafthp434 @ crafthp434:
    nope
  • crafthp434 @ crafthp434:
    it is L+dpad down+ select
  • crafthp434 @ crafthp434:
    but homebrew is appearing in the home menu btw
  • NinStar @ NinStar:
    yes, now I remember it
  • NinStar @ NinStar:
    then it is working, I also don't like that they did this but it is the only option you have if you are using aroma
  • crafthp434 @ crafthp434:
    i just didint know the homebrew launcher didint exist in aroma
  • crafthp434 @ crafthp434:
    thanks btw
  • Xdqwerty @ Xdqwerty:
    Im downloading fallout 3 goty edition
    +1
  • BigOnYa @ BigOnYa:
    I'm downloading more ram for my hamster pc
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    New hamster PC, with anal operation and BT connectivity!
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, How do I make enemies respawn on gdevelop after
    the player dies?
  • Psionic Roshambo @ Psionic Roshambo:
    Carrying a PC or phone is so old school!
  • Psionic Roshambo @ Psionic Roshambo:
    Squeeze your cheeks twice to answer calls!
    Psionic Roshambo @ Psionic Roshambo: Squeeze your cheeks twice to answer calls!