Hacking [NOOB SUPPORT] How arm9loaderhax + Luma3DS works and what it is.

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
Okay so I have seen -put in any big number that comes to your mind here- of threads were Noobs are writing stuff like:
...does this works with arm9loaderhax cfw?...
... does this works with Luma cfw...

So to every Noob. here you have your explanations on what it is and why you are wrong with your questions. If people don´t understand what you mean they can´t answer you. so here we go:

Custom firmware, also known as aftermarket firmware, is an unofficial new or modified version of firmware created by third parties on devices such as video game consoles and various embedded device types to provide new features or to unlock hidden functionality. In the video game console community, the term is often written as custom firmware or simply CFW, referring to an altered version of the original system software (also known as the official firmware or simply OFW) inside a video game console such as the PlayStation Portable and Nintendo 3DS.

Custom firmware often allow homebrew applications or ROM image backups to run directly within the game console, unlike official firmware, which usually only allow signed or retailed copies of software to run. Because custom firmware is often associated with software piracy, console manufacturers such as Nintendo and Sony have put significant effort into blocking custom firmware and other third party devices and content from their game consoles.

Like its predecessor, the Nintendo DS, the modding scene of the Nintendo 3DS can involve flash cartridges (see Nintendo DS and 3DS storage devices) rather than custom firmware, but custom firmware also exists for the Nintendo 3DS (although it isn't really custom firmware per se) and is compatible with any system version with an ARM9 kernel exploit. However, using a kernel exploit on system versions 11.2 and below, users can gain the ability to run custom firmware. One example is Luma3DS, the current most widely used CFW, which allows unsigned CIA (CTR Importable Archives) files to be installed on the Nintendo 3DS devices, provides region-free features, etc.. CFWs such as RxTools and Pasta have been considered obsolete by now. Other CFWs include Corbenik CFW (with a lot more control than Luma, but not meant for newbies), ReiNAND, on which Luma3DS (previously known as AuReiNAND) is based, Cakes CFW (which is the inspiration for Corbenik) and continue to offer support for EmuNAND/RedNAND, a CFW feature that boots the system from a partition of the SD card containing a copy of the 3DS' NAND memory. These EmuNANDs can protect the 3DS system from bricking, as the usual system NAND is unaffected if the emuNAND is no longer functioning properly or is otherwise unusable. EmuNANDs can also be updated separately from the usual system NAND, making online play and Nintendo eShop access possible on outdated 3DS system versions. However, most people currently use ARM9LoaderHax, a boot-time kernel exploit that allows people to safely use SysNAND and update it, as CFWs make it protected on boot, meaning an update won't remove it.
So above in the CFW Explanation you have more details about Luma. It is not really wrong but also not really true. Luma3DS is basically just a signature Patcher that Patches the Original Firmware. It is not a Firmware replacement at all.
1. Bootrom reads FIRM0, but due to our payload presence, the signature check will fail.
2. It will read FIRM1 on top of FIRM0, and our payload will still be after it.
3. Check its RSA signature, since it's good it will jump to its arm9loader.
4. The arm9loader will use our crafted key to decrypt the ARM9 binary as garbage, then jump to the kernel entrypoint.
5. With our key the garbage kernel entrypoint will make the cpu jump to our payload location.
6. Code execution!

arm9loaderhax_1.png
1. Ensure the firm0 and firm1 partitions are arranged such that the size of firm0 is greater than firm1. Both need well-signed FIRM headers so that bootrom will load them into memory.
2. Put the payload at *(firm0 + (sizeof firm0 - sizeof firm1)).
3. Find a key that, when decrypting the firm1 arm9bin, causes a jump to the payload in the size difference between firm0 and firm1.
4. Encrypt the key and place it at the second key of the secret sector (sector 0x96, offset 0x12c00).
5. Write the firm0 and firm1 to NAND.
6. Boot.
7. Bootrom9 loads up firm0 and find the SHA-256 hash mismatching because of the payload at the end of firm0.
8. Bootrom9 loads up firm1 on top of firm0, decrypts it and jumps to it.
9. arm9loader decrypts the arm9bin with the preinstalled key and jumps to it.
10. The first instruction in the arm9bin jumps to the payload.

So for short Neither ARM9LOADERHAX is a CFW it is a persistant (low-level) system exploit, nor Luma3DS is a FW Replacement, it is a Signature Patcher.

Hope this clears things up to the Noobs.
Thanks.
Have a good day Everyone.
 
Last edited by adrifcastr,

HyperT

Well-Known Member
Member
Joined
Jun 4, 2016
Messages
674
Trophies
0
XP
232
Country
I'd probably call a9lh a 'persistant (low-level) system exploit' rather than 'homebrew exploit' but that's pulling strings
 
  • Like
Reactions: adrifcastr

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
If they don't read those what makes you think they will bother to read this? Most don't even ask in the thread made specifically for noob questions.
I know. but maybe the caps title gets some attention. I would call this what I am trying "Clickbait"
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
If they don't read those what makes you think they will bother to read this? Most don't even ask in the thread made specifically for noob questions.
20 people currently viewing this thread
14 guests and 6 members

also I think most of the noobs don´t have an account and just register one when they messed up.

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

There is also that in "3DS NOOB PARADISE - ask your questions here" and it is at the top of the page.
seems that the noobs don´t pay attention to stickied threads.
 

Kyubnyan

Well-Known Member
Member
Joined
Dec 1, 2016
Messages
360
Trophies
0
Age
24
XP
342
Country
United States
20 people currently viewing this thread
14 guests and 6 members

also I think most of the noobs don´t have an account and just register one when they messed up.

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


seems that the noobs don´t pay attention to stickied threads.
Then why would they pay attention to any thread, they just seem to post without looking at the threads already made.
 

mIRChele

Well-Known Member
Newcomer
Joined
Nov 4, 2016
Messages
49
Trophies
0
Age
44
XP
351
Country
Italy
so, is it possible for Nintendo to issue an update which cleans arm9loader memory before loading firm1, or this is impossible to do without an hardware revision?
or maybe, could they make firm1 forcing the user to reinstall firm0 until the hash-check is correct?

I always read people stating that a9lh+luma3ds is completely update-proof, but I can't understand why.
 

Kyubnyan

Well-Known Member
Member
Joined
Dec 1, 2016
Messages
360
Trophies
0
Age
24
XP
342
Country
United States
so, is it possible for Nintendo to issue an update which cleans arm9loader memory before loading firm1, or this is impossible to do without an hardware revision?
or maybe, could they make firm1 forcing the user to reinstall firm0 until the hash-check is correct?

I always read people stating that a9lh+luma3ds is completely update-proof, but I can't understand why.
Pretty sure this would end up like the wii boot2 update.
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
so, is it possible for Nintendo to issue an update which cleans arm9loader memory before loading firm1, or this is impossible to do without an hardware revision?
or maybe, could they make firm1 forcing the user to reinstall firm0 until the hash-check is correct?

I always read people stating that a9lh+luma3ds is completely update-proof, but I can't understand why.
Luma adds on FIRM Protection. Its like it makes it read only (like an sd card). so never update running gw payloads that will overwrite FIRM
 

mIRChele

Well-Known Member
Newcomer
Joined
Nov 4, 2016
Messages
49
Trophies
0
Age
44
XP
351
Country
Italy
Luma adds on FIRM Protection. Its like it makes it read only (like an sd card). so never update running gw payloads that will overwrite FIRM
I know that, but firm1 is not protected (because the updating mechanism works). So theoretically, a future update might make firm1 a sort of recovery mode, forcing the user to redownload the firmware until firm0 has the correct hash. Or maybe they could do an arm9loader update fixing this... I Just want to know if this is possible

Inviato dal mio GT-I9505 utilizzando Tapatalk
 

adrifcastr

Well-Known Member
OP
Member
Joined
Sep 12, 2016
Messages
2,038
Trophies
0
XP
1,947
Country
Germany
I know that, but firm1 is not protected (because the updating mechanism works). So theoretically, a future update might make firm1 a sort of recovery mode, forcing the user to redownload the firmware until firm0 has the correct hash. Or maybe they could do an arm9loader update fixing this... I Just want to know if this is possible

Inviato dal mio GT-I9505 utilizzando Tapatalk
firm0 is still protected so the only thing nintendo would do with that is "semi brick" their consoles since firm0 can´t be overwritten.
in "theory" they would have to push an illegal update that replaces the arm9loaderhax.bin with something that removes the payloads out of the FIRM, so that you would basically, reboot into an "uninstaller" and then into unpatched FW without even noticing it.
 
  • Like
Reactions: HyperT

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