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

  • Thread starter Thread starter d0k3
  • Start date Start date
  • Views Views 935,292
  • Replies Replies 4,476
  • Likes Likes 71
Unrelated to anything: Is there a meaning to your name? Is it pronounced Dough-key?
Well, I'm a member here for a long time (since 2004!). That nick originally comes from Duke Nukem.

now it's failing to read the NCSD header. I just built the "gcdumper" branch and tried it out. :unsure:
Code:
Detetcted cartridge id 9000FAC2...
Error reading cart NCSD header
Dump & Decrypt Cart (slim): failed!

Press B to return, START to reboot.

Detetcted cartridge id 9000FAC2...
Error reading cart NCSD header
Dump & Decrypt Cart (slim): failed!

Press B to return, START to reboot.

Detetcted cartridge id 9000F8C2...
Error reading cart NCSD header
Dump Cart (full): failed!

Press B to return, START to reboot.

oh yeah, it doesn't seem to be putting them in "D9Game" even though it tries to. it's always "Decrypt9".

Yeah, I messed up again, but this time it will work, guaranteed:
https://up1.ca/#8ryjut0BDqSinmLFYBfprA
... or compile from master. Everyone can test! :)

Possible to dump the header, and just the header, without dump the full cardrige then use gateway rom patcher for extract it?
I wonder, what would be the good in this? Gateway ROM patch only fixes headers, afaik.
 
game card dumping & decrypting works fine now, but it still fails to create it in /D9Game, even if the folder exists.
Code:
Detected cartridge id 90007FC2...
Product ID: CTR-P-ATQE
Cartridge actual size: 107MB
Cartridge data size: 128MB
Cartridge dump size: 107MB

Creating /D9Game/CTR-P-ATQE.3ds ...
Could not create /D9Game/CTR-P-ATQE.3ds   <-----------
Creating CTR-P-ATQE.3ds ...
Dumping cartridge CTR-P-ATQE (107MB)...

Decrypting dump CTR-P-ATQE.3ds (107MB)...
...
Decryption success!
Dump & Decrypt Cart (slim): succeeded!
 
  • Like
Reactions: d0k3
game card dumping & decrypting works fine now, but it still fails to create it in /D9Game, even if the folder exists.
Code:
Detected cartridge id 90007FC2...
Product ID: CTR-P-ATQE
Cartridge actual size: 107MB
Cartridge data size: 128MB
Cartridge dump size: 107MB

Creating /D9Game/CTR-P-ATQE.3ds ...
Could not create /D9Game/CTR-P-ATQE.3ds   <-----------
Creating CTR-P-ATQE.3ds ...
Dumping cartridge CTR-P-ATQE (107MB)...

Decrypting dump CTR-P-ATQE.3ds (107MB)...
...
Decryption success!
Dump & Decrypt Cart (slim): succeeded!
Alright, I'll look into that issue. Into on-the-decryption, too. Thanks for testing!

shut the fuck up
Uhm.... ?
 
Alright, new testing version for everyone! I'm especially interested in dumping & decrypting newer carts (post 7x). This one adds on-the-fly decryption, meaning that dump plus decrypt won't take much longer than just dump anymore. Also, that /D9Game error was fixed, thanks for pointing this one out.
https://up1.ca/#Ke9QiC_BKP0zrjn1RA4pPQ
(if you want to compile yourself, this is currently in the 'onthefly' branch)
 
Alright, new testing version for everyone! I'm especially interested in dumping & decrypting newer carts (post 7x). This one adds on-the-fly decryption, meaning that dump plus decrypt won't take much longer than just dump anymore. Also, that /D9Game error was fixed, thanks for pointing this one out.
https://up1.ca/#Ke9QiC_BKP0zrjn1RA4pPQ
(if you want to compile yourself, this is currently in the 'onthefly' branch)
Fix the screeninit issue with shadownand yet?
 
Hey, sorry if there is an easy fix for this or I'm just dumb, but how do I open it? I have Luma3DS and I have no idea how to open Decypt9. I used to be able to open it with holding a button on bootup but now it just stopped.
 
Alright, new testing version for everyone! I'm especially interested in dumping & decrypting newer carts (post 7x). This one adds on-the-fly decryption, meaning that dump plus decrypt won't take much longer than just dump anymore. Also, that /D9Game error was fixed, thanks for pointing this one out.
https://up1.ca/#Ke9QiC_BKP0zrjn1RA4pPQ
(if you want to compile yourself, this is currently in the 'onthefly' branch)
built onthefly myself, and it works fine :)

CTR-P-ACCE -> Pokémon Rumble Blast, not using 7.x/etc
CTR-P-AXCE -> Super Smash Bros, using 7.x
Code:
Cartridge ID: 9000FEC2
Product ID: CTR-P-ACCE
Cartridge data size: 512MB
Cartridge used size: 324MB
Cartridge dump size: 324MB

Decrypting partition #0 (308MB)...
Decrypting partition (2kB/3050kB/305MB)...
Decrypting partition #7 (16MB)...
Decrypting partition (0kB/0kB/16MB)...
Decryption success!

Verifiying partition #0 (308MB)...
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Verifiying partition #7 (16MB)...
Verify ExHdr/ExeFS/RomFS: -/-/OK
Verification success!
Dump & Decrypt Cart (slim): succeeded!

...

Cartridge ID: 9000F8C2
Product ID: CTR-P-AXCE
Cartridge data size: 2048MB
Cartridge used size: 1134MB
Cartridge dump size: 1134MB

Decrypting partition #0 (1104MB)...
Decrypting partition (2kB/6611kB/1098MB)...
Decrypting partition #1 (2MB)...
Decrypting partition (0kB/0kB/2MB)...
Decrypting partition #7 (27MB)...
Decrypting partition (0kB/0kB/27MB)...
Decryption success!

Verifiying partition #0 (1104MB)...
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Verifiying partition #1 (2MB)...
Verify ExHdr/ExeFS/RomFS: -/-/OK
Verifiying partition #7 (27MB)...
Verify ExHdr/ExeFS/RomFS: -/-/OK
Verification success!
Dump & Decrypt Cart (slim): succeeded!
 
  • Like
Reactions: d0k3
Fix the screeninit issue with shadownand yet?
I think @Shadowhand fixed it already.

Hey, sorry if there is an easy fix for this or I'm just dumb, but how do I open it? I have Luma3DS and I have no idea how to open Decypt9. I used to be able to open it with holding a button on bootup but now it just stopped.

Read the Luma3DS readme - maybe you have to change the name or something like that.

built onthefly myself, and it works fine :)

CTR-P-ACCE -> Pokémon Rumble Blast, not using 7.x/etc
CTR-P-AXCE -> Super Smash Bros, using 7.x
Code:
Cartridge ID: 9000FEC2
Product ID: CTR-P-ACCE
Cartridge data size: 512MB
Cartridge used size: 324MB
Cartridge dump size: 324MB

Decrypting partition #0 (308MB)...
Decrypting partition (2kB/3050kB/305MB)...
Decrypting partition #7 (16MB)...
Decrypting partition (0kB/0kB/16MB)...
Decryption success!

Verifiying partition #0 (308MB)...
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Verifiying partition #7 (16MB)...
Verify ExHdr/ExeFS/RomFS: -/-/OK
Verification success!
Dump & Decrypt Cart (slim): succeeded!

...

Cartridge ID: 9000F8C2
Product ID: CTR-P-AXCE
Cartridge data size: 2048MB
Cartridge used size: 1134MB
Cartridge dump size: 1134MB

Decrypting partition #0 (1104MB)...
Decrypting partition (2kB/6611kB/1098MB)...
Decrypting partition #1 (2MB)...
Decrypting partition (0kB/0kB/2MB)...
Decrypting partition #7 (27MB)...
Decrypting partition (0kB/0kB/27MB)...
Decryption success!

Verifiying partition #0 (1104MB)...
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Verifiying partition #1 (2MB)...
Verify ExHdr/ExeFS/RomFS: -/-/OK
Verifiying partition #7 (27MB)...
Verify ExHdr/ExeFS/RomFS: -/-/OK
Verification success!
Dump & Decrypt Cart (slim): succeeded!
Thanks a lot for testing this! I've also seen you've got a new Python CIA converter, so I'll recommend this with my next release notes (Riku's converter can't handle decrypted roms).

Anyways. guess what? I need another round of testing. The last revision of the cart dumper/decryptor would fail with certain carts (MH4, for example). You can compile fresh from onthefly branch or just get it from here: https://up1.ca/#1rnJiJQCxGR-kb1CNiGqhg

If you can, also verify the dumped / decrypted ROM on PC somehow (f.e. by fully extracting it with ctrtool or comparing with a known good one). This should be the last major revision before release, too.
 
If you can, also verify the dumped / decrypted ROM on PC somehow (f.e. by fully extracting it with ctrtool or comparing with a known good one). This should be the last major revision before release, too.
No-Intro have dat files with the encrypted full dump checksums available. Would those be useful combined with the stand alone de/encryption functions to verify dumps?
 
No-Intro have dat files with the encrypted full dump checksums available. Would those be useful combined with the stand alone de/encryption functions to verify dumps?
Not for decrypted ones, as No-Intro only has encrypted checksums.

why would it fail with these carts? large size (MH4U is 4GB I think)?
Large size ExeFS actually. MH4U is a problem itself because of 4GB (FAT32 can't take files >= 4GB), but I workaround that by silently removing the last sector in that case, and it is only an issue if you dump full (which you shouldn't).
 
Not for decrypted ones, as No-Intro only has encrypted checksums.
Does reencrypting them not give the same checksum?

Large size ExeFS actually. MH4U is a problem itself because of 4GB (FAT32 can't take files >= 4GB), but I workaround that by silently removing the last sector in that case, and it is only an issue if you dump full (which you shouldn't).
Just as well there's no 8GB carts yet :)
 
Does reencrypting them not give the same checksum?


Just as well there's no 8GB carts yet :)
Not for sure. Cause there are different kinds of crypto - pre 7x, post 7x, Secure3 (N3DS carts only), Secure4 (N3DS eShop only), seed, .... You'd need to reencrypt with the exact same settings.

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

Btw, before I forget about it - take a look at the new progress indicator in the decrypted cart dumper - it now works properly from 0%...100%.
 
  • Like
Reactions: klear and Kirtai

Site & Scene News

Popular threads in this forum