d0k3 / Decrypt9WIP

Multipurpose content dumper and decryptor for the Nintendo 3DS
GNU General Public License v2.0
405 stars 59 forks source link

H&S Injection in iQue / Taiwan 3DS consoles #70

Closed d0k3 closed 8 years ago

d0k3 commented 8 years ago

As referenced by this pull request: https://github.com/d0k3/Decrypt9WIP/pull/67

This needs a cleaner solution.

d0k3 commented 8 years ago

@soarqin Maybe we can discuss this on here?

I just tried download all possible KOR/TWN/CHN versions of H&S via 3DNUS. Guess what, each and every one of them had a proper size. So the issue at hand has to do with (certain?) factory fresh consoles maybe.

Your inital solution involved just checking all regions, and discarding those that have a < 64kB app0, right? And the actual H&S app that matches the region of the console is just a stub, right?

soarqin commented 8 years ago

yes, but I cannot find anyone with KOR console to confirm that, only CHN/TWN consoles(but heard many) are confirmed. Also as you said, the tiny h&s app which is not in console region is not found in nus updates. It mostly like they are installed in factory initial state.

d0k3 commented 8 years ago

So what title id does the tiny stub have? And what title id does the actual H&S app have?

soarqin commented 8 years ago

0004001000026300 for TWN and 0004001000028300 for CHN as a tiny 15KB app

d0k3 commented 8 years ago

Okay... and the actual, correct one is 0004001000027300 for both?

soarqin commented 8 years ago

correct one is the titletid in their own region, 0004001000026300 for CHN and 0004001000028300 for TWN

d0k3 commented 8 years ago

Okay, I had an idea - we just change this code so that it only checks in the correct region - that will work, right?

soarqin commented 8 years ago

agree, we do not need to support region mismatching h&s apps in nands

d0k3 commented 8 years ago

Okay, can you test this build and tell me if it fixes that problem? https://transfer.sh/5kfRF/decrypt9wip-20160810-183728.zip

d0k3 commented 8 years ago

@soarqin: Any update on this? As the H&S dumper / injector now selects the title to dump / inject on the region (from SecureInfo_A), that issue should be resolved. The new code works (on E/U/J units) and is tested, too. We willl need you to test it, too, though. Maybe ask other people with CHN / TWN units if they can test, too?

soarqin commented 8 years ago

@d0k3 sorry for late to response. I tried it on my TWN console and it worked fine, but not yet tested on any CHN unit due to lack of testers.

d0k3 commented 8 years ago

Alright, then I'll just assume CHN is also fixed. Feel free to reopen if anything comes up