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
Last edited by temper999,
https://github.com/AuroraWright/Luma3DS/wiki/Other-features-and-notes


L is reserved for "Autoboot SysNAND" option
R is reserved for "SysNAND is updated" option
B is reserved for "Use second EmuNAND as default" option
Select is reserved for loading the options menu

Whats A reserved for?
This isn't really the best place to ask. Buy anyway, the A button will force Luma3ds to boot into the default location during MCU reboots.

So if I normally autoboot emunand and I press a reboot button on sysnand while holding A, I will boot into emunand instead of returning to sysnand.

Please understand.
 
https://github.com/AuroraWright/Luma3DS/wiki/Other-features-and-notes


L is reserved for "Autoboot SysNAND" option
R is reserved for "SysNAND is updated" option
B is reserved for "Use second EmuNAND as default" option
Select is reserved for loading the options menu

Whats A reserved for?

This isn't really the best place to ask. Buy anyway, the A button will force Luma3ds to boot into the default location during MCU reboots.

So if I normally autoboot emunand and I press a reboot button on sysnand while holding A, I will boot into emunand instead of returning to sysnand.

Please understand.

Guess this is why Decrypt9 did not load when i renamed it a_D9.bin. I see now, so the best way to keep it is what i have it as, or should I rename it r_D9.bin? Which would be easier?
 
Do you know why I can't decrypt/encrypt the smash controller app?
D9 say it's not a CIA file, but it is definitely a CIA fle because I can install it just fine.
Opening /D9Game ...
Processing CIA "OtherSmashControllerEUR.cia"
Probably not a CIA file
Failed!
CIA Decryptor (deep): failed!

Press B to return, START to reboot.

Opening /D9Game ...
Processing CIA "OtherSmashControllerEUR.cia"
Probably not a CIA file
Failed!
CIA Encryptor (NCCH): failed!
 
Do you know why I can't decrypt/encrypt the smash controller app?
D9 say it's not a CIA file, but it is definitely a CIA fle because I can install it just fine.
That's an interesting problem. Have you tried making backups of that file and renaming them to .3ds or .cxi etc?
 
Idk. I was just wondering cause it is interesting.
D9 does not actually check the extension, so it wouldn't do anything.

Do you know why I can't decrypt/encrypt the smash controller app?
D9 say it's not a CIA file, but it is definitely a CIA fle because I can install it just fine.
Alright, had a look. Even if it is installable, that file is corrupt. It has a wrong content size in it's header. Maybe rebuild this with makerom?

Also, want to help me test something? This D9 test build has a cart dumper (with various options) included:
https://up1.ca/#ZRbOZtfK1YyTCJUtT-Q84Q
 
D9 does not actually check the extension, so it wouldn't do anything.


Alright, had a look. Even if it is installable, that file is corrupt. It has a wrong content size in it's header. Maybe rebuild this with makerom?

Also, want to help me test something? This D9 test build has a cart dumper (with various options) included:
https://up1.ca/#ZRbOZtfK1YyTCJUtT-Q84Q
I'll test it.
 
  • Like
Reactions: d0k3
Also, want to help me test something? This D9 test build has a cart dumper (with various options) included:
https://up1.ca/#ZRbOZtfK1YyTCJUtT-Q84Q
dumped a game (Pokémon Rumble Blast, contains 2.1.0U) with Uncart and Decrypt9;

full dump changed some things at offset 0x1000, which seems to have some extra data and a clone of the first NCCH header minus signature. with the dump from Decrypt9 it's almost entirely "FF". I don't know if this was supposed to happen. rest is fine though.
https://www.3dbrew.org/wiki/NCSD#Card_Info_Header if it's useful?

decrypt dump apparently did not work, despite verifying being OK and I can see the decrypted contents in a hex editor....?
Code:
Detetcted cartridge id 9000FEC2...
Product ID: CTR-P-ACCE
Cartridge actual size: 324MB
Cartridge data size: 512MB
Cartridge dump size: 324MB

Creating /D9Game/CTR-P-ACCE.3ds ...
Could not create /D9Game/CTR-P-ACCE.3ds
Creating CTR-P-ACCE.3ds ...
Dumping cartridge CTR-P-ACCE (324MB)...

Decrypting dump CTR-P-ACCE.3ds (324MB)...
Code / Crypto: CTR-P-ACCE / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/3050kB/305MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Decryption failed!
Dump & Decrypt Cart (slim): failed!

Press B to return, START to reboot.
 
  • Like
Reactions: d0k3
dumped a game (Pokémon Rumble Blast, contains 2.1.0U) with Uncart and Decrypt9;

full dump changed some things at offset 0x1000, which seems to have some extra data and a clone of the first NCCH header minus signature. with the dump from Decrypt9 it's almost entirely "FF". I don't know if this was supposed to happen. rest is fine though.
https://www.3dbrew.org/wiki/NCSD#Card_Info_Header if it's useful?

decrypt dump apparently did not work, despite verifying being OK and I can see the decrypted contents in a hex editor....?
Code:
Detetcted cartridge id 9000FEC2...
Product ID: CTR-P-ACCE
Cartridge actual size: 324MB
Cartridge data size: 512MB
Cartridge dump size: 324MB

Creating /D9Game/CTR-P-ACCE.3ds ...
Could not create /D9Game/CTR-P-ACCE.3ds
Creating CTR-P-ACCE.3ds ...
Dumping cartridge CTR-P-ACCE (324MB)...

Decrypting dump CTR-P-ACCE.3ds (324MB)...
Code / Crypto: CTR-P-ACCE / Standard
Decrypt ExHdr/ExeFS/RomFS (2kB/3050kB/305MB)
Verify ExHdr/ExeFS/RomFS: OK/OK/OK
Decryption failed!
Dump & Decrypt Cart (slim): failed!

Press B to return, START to reboot.
I'm getting the same results with Freaky Forms Deluxe.
 
  • Like
Reactions: d0k3
so I noticed that with Pokémon Rumble Blast, it didn't decrypt the update partition. so I tried Mario Kart 7, and it "failed" also.

extracting it on a computer tells me only the first partition (game/cxi) got decrypted. manual/dlp child/update partition are still encrypted.
 
  • Like
Reactions: d0k3
@d0k3
I compiled your latest commit 02572f1. Make compiled fine, but Make Release produced libkhax errors.
How can I fix that?

Thanx
errors.gif
 
Last edited by Pacman`,
I'm getting the same results with Freaky Forms Deluxe.
so I noticed that with Pokémon Rumble Blast, it didn't decrypt the update partition. so I tried Mario Kart 7, and it "failed" also.

extracting it on a computer tells me only the first partition (game/cxi) got decrypted. manual/dlp child/update partition are still encrypted.
Yup, I messed decryption up. It is fixed with the latest commit, though.

@d0k3
I compiled your latest commit 02572f1. Make compiled fine, but Make Release produced libkhax errors.
How can I fix that?

Thanx
View attachment 53529
That's because libctru introduced incompatibility again... -_-. I'll fix it, but will take some time, and will break earlier libctru compatibility.

For now, you could use an older libctru.

... Or get the compiled build from my hourlies page. :)
 
Last edited by d0k3,
Yup, I messed decryption up. It is fixed with the latest commit, though.


That's because libctru introduced incompatibility again... -_-. I'll fix it, but will take some time, and will break earlier libctru compatibility.

For now, you could use an older libctru.
Unrelated to anything: Is there a meaning to your name? Is it pronounced Dough-key?
 
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".
 
Last edited by ihaveahax,
Possible to dump the header, and just the header, without dump the full cardrige then use gateway rom patcher for extract it?
 

Site & Scene News

Popular threads in this forum