Homebrew Official [Download] Decrypt9 - Open Source Decryption Tools (WIP)

  • Thread starter d0k3
  • Start date
  • Views 837,953
  • Replies 4,476
  • Likes 71

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Hello everyone! I have a problem dumping hs.app from sysnand.

When I launch Decrypt9WIP and try to dump Health&Safety app, it gives me this error:

Searching title "Health&Safety (N3DS)"...
Method 1: Search in title.db...
NAND CID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWL Customer ID: xxxxxxxxxxxx
0x03 KeyX: xxxxxxxxxxxxxxxxxxxx
0x03 KeyY: xxxxxxxxxxxxxxxx
0x05 KeyY: not set, slot0x05KeyY.bin not found
Method 2: Search in file system...
Failed!
Health&Safety Dump: failed!

Obviously I have slot0x05Key.bin in the root of SD card, but it is not detected anyway.

I have Cakes with a9lh. Thanks.
If you have the key as you say then it is either the wrong key or named incorrectly as it should work fine when it finds it. It should be named... slot0x05KeyY.bin note the extra Y near the end.
 

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
Would it perhaps be possible to add an option to decrypt only the exheader when D9 is given a .cci/.3ds file? It'd speed up the conversion process to CIA files quite a bit (You can use makerom and 3dstool to get everything you need to convert; you only make a tiny edit in the exheader and rebuild exefs, romfs, and exheader as cxi, then use that cxi as a content for the CIA). If not, that's fine, I can always add it myself.
 

zeruel85

Well-Known Member
Newcomer
Joined
Jul 4, 2014
Messages
45
Trophies
0
Location
Treviso (TV)
XP
155
Country
Italy
If you have the key as you say then it is either the wrong key or named incorrectly as it should work fine when it finds it. It should be named... slot0x05KeyY.bin note the extra Y near the end.
slot0x05KeyY.bin, this is what I have inside the root of SD card. The file was downloaded from Plailect's Wiki Guide: 4D 80 ** ** ** ** ** ** ** ** ** ** ** ** 60 BE
 

zeruel85

Well-Known Member
Newcomer
Joined
Jul 4, 2014
Messages
45
Trophies
0
Location
Treviso (TV)
XP
155
Country
Italy
that is 0 (the number) not o in 0x05.
I know what hexadecimal numbers are, thanks anyway...

Solved restoring sysNAND 9.2 w/o a9lh, then launching MiniPasta and FBI from HBL, then installing FBI.cia from FBI.3dsx. After that, I reinstalled a9lh with SafeA9LHInstaller v1.4 and everything works fine now.

EDIT:
Do you have a decrypt9 folder on the root of your sd card?
Did it, but nothing had changed.
 
Last edited by zeruel85,

pbanj

The "friendly" neighborhood sandwich
Member
Joined
Dec 29, 2014
Messages
2,743
Trophies
1
Location
in a ziploc
XP
1,650
Country
United States
I know what hexadecimal numbers are, thanks anyway...

Solved restoring sysNAND 9.2 w/o a9lh, then launching MiniPasta and FBI from HBL, then installing FBI.cia from FBI.3dsx. After that, I reinstalled a9lh with SafeA9LHInstaller v1.4 and everything works fine now.

EDIT:

Did it, but nothing had changed.
How did you make the key file?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Hello everyone! I have a problem dumping hs.app from sysnand.

When I launch Decrypt9WIP and try to dump Health&Safety app, it gives me this error:

Searching title "Health&Safety (N3DS)"...
Method 1: Search in title.db...
NAND CID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWL Customer ID: xxxxxxxxxxxx
0x03 KeyX: xxxxxxxxxxxxxxxxxxxx
0x03 KeyY: xxxxxxxxxxxxxxxx
0x05 KeyY: not set, slot0x05KeyY.bin not found
Method 2: Search in file system...
Failed!
Health&Safety Dump: failed!

Obviously I have slot0x05KeyY.bin in the root of SD card, but it is not detected anyway.

I have Cakes with a9lh. Thanks.
The issue clearly comes from vou being on A9LH + the key file not loading properly. If you have a 'Decrypt9' work folder, try putting the file in there (although that should not make a difference). Also check if reading from the SD card works in general (f.e. via the self test feature) and if there are any errors on your SD card (f.e. via Windows chkdsk).

You can also try using my test build and see if it is solved in there:
http://workupload.com/file/fq3VOYee

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

Would it perhaps be possible to add an option to decrypt only the exheader when D9 is given a .cci/.3ds file? It'd speed up the conversion process to CIA files quite a bit (You can use makerom and 3dstool to get everything you need to convert; you only make a tiny edit in the exheader and rebuild exefs, romfs, and exheader as cxi, then use that cxi as a content for the CIA). If not, that's fine, I can always add it myself.
I'm planning to add an actual 3DS -> CIA converter in there. Other than this... It may be better to just generate the XORpads (via this) and do the rest on PC, same as Rikus converter does it. I don't want to add an additional option into the already confusing (for newcomers) mix, and in fact I'd recommend anyone to actually do a full decrypt when creating CIAs for highest possible comaptibility.
 

pikatsu

Well-Known Member
Member
Joined
Apr 16, 2014
Messages
845
Trophies
0
Age
39
XP
1,163
Country
Argentina
Probably not, download the latest release (either WIP or UI). there was a bug that has since been fixed. :)

Yeah I've just been getting crafty with git lol
Keeping the master branch clean so i can just delete then fake pull request from yours (edit a file then cancel = master branch appears in my repo) then just merge changes from my master to UI branch. :)
Might be better ways to do it, but i find that way easy and it works.

Probably not, download the latest release (either WIP or UI). there was a bug that has since been fixed. :)

Same thing about file small size for me. Even updated to Decrypt9WIP all-in-one 20160309.
 

pikatsu

Well-Known Member
Member
Joined
Apr 16, 2014
Messages
845
Trophies
0
Age
39
XP
1,163
Country
Argentina
Try the test build linked above - this has some fixes specific to this problem.

It is working now thanks.

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

Sorry to bother but can you add a new url on any of your projects with the latest stable version
 
  • Like
Reactions: d0k3

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
It is working now thanks.

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

Sorry to bother but can you add a new url on any of your projects with the latest stable version
The latest release version is always the latest stable version, and the link to the releases is in the opening post of each of my release threads.
 
  • Like
Reactions: pikatsu

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
I'm planning to add an actual 3DS -> CIA converter in there. Other than this... It may be better to just generate the XORpads (via this) and do the rest on PC, same as Rikus converter does it. I don't want to add an additional option into the already confusing (for newcomers) mix, and in fact I'd recommend anyone to actually do a full decrypt when creating CIAs for highest possible comaptibility.

Thanks for the reply. Highest compatibility with what, though? The 3DS, or GUI tools that convert to CIA for me? If it's the latter, that doesn't bother me much, I don't use Riku's tool or HackPack, I prefer to do it manually.
 
Last edited by daxtsu,
  • Like
Reactions: peteruk

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Thanks for the reply. Highest compatibility with what, though? The 3DS, or GUI tools that convert to CIA for me? If it's the latter, that doesn't bother me much, I don't use Riku's tool or HackPack, I prefer to do it manually.
By the way, I just noticed - you can't just decrypt the ExHeader and leave the rest encrypted, cause the encryption flag in the NCCH header would not be correct anymore then. You actually need the XORpad method to be able to encrypt the ExHeader again after changing that thing in there. Plus the XORpad method means you have to transfer much less data from / to your SD. And, I meant compatibility with everything. Think about seed encrypted stuff, or stuff that was encrypted for a N3DS (on O3DS).
 

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
By the way, I just noticed - you can't just decrypt the ExHeader and leave the rest encrypted, cause the encryption flag in the NCCH header would not be correct anymore then. You actually need the XORpad method to be able to encrypt the ExHeader again after changing that thing in there. Plus the XORpad method means you have to transfer much less data from / to your SD. And, I meant compatibility with everything. Think about seed encrypted stuff, or stuff that was encrypted for a N3DS (on O3DS).

I think it's ignored, truthfully, because the exheader is the only thing I decrypted when I did an experiment to see how much work you really needed to convert a cci to cxi (and then CIA). I had no problems with booting the two games I converted, even when leaving the exheader as plaintext/decrypted.

Ignore that, I just remembered I decrypted the ROMs entirely, but I never did have to edit the NCCH header. Disregard my request.
 
Last edited by daxtsu,

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
I think it's ignored, truthfully, because the exheader is the only thing I decrypted when I did an experiment to see how much work you really needed to convert a cci to cxi (and then CIA). I had no problems with booting the two games I converted, even when leaving the exheader as plaintext/decrypted.

Ignore that, I just remembered I decrypted the ROMs entirely, but I never did have to edit the NCCH header. Disregard my request.
If you used D9s NCCH Decryptor for that, the NCCH header edit was handled for you. XORpads and XORpad tools do not handle this, though.
 
  • Like
Reactions: daxtsu

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Maximumbeans @ Maximumbeans: butte