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

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

atkfromabove

Well-Known Member
Member
Joined
Feb 9, 2015
Messages
321
Trophies
0
Age
31
Location
The state with lots of wives
XP
428
Country
United States
Yeah hopefully, because as it stands now with the seeddb stuff in ncchpadgen it breaks it pretty much if you use older ncchinfo.bin files (I've got a few from before the seeddb stuff as added that i keep) because they won't work now. :(

On another note, i felt brave... tried the restore nand option. And it works perfectly. :D
Restored my 4.5 (was on 9.2) backup on my old3ds XL no problem, haven't tested on n3ds yet but i see now reason why it would work on one and not the other.

I am not seeing the NAND restore option. I have the backup, partition dump, and systitle dump.
 

atkfromabove

Well-Known Member
Member
Joined
Feb 9, 2015
Messages
321
Trophies
0
Age
31
Location
The state with lots of wives
XP
428
Country
United States
haha cool. let us know how it goes. :)
The new menu has it set like gateway (hold up on the option then press A). Or just press A to dump nand.

I am getting a different NAND dump size from Decrypt9 and my HardMod dump.

Decrypt9 NAND Dump: 1.21 GB
win32DiskImager Dump: 1.84 GB

@d0k3 Why would I have different size dumps? Is the Decrypt9 dump set for Samsung eMMC reads only?

Size info for the eMMC's
Samsung 1.21 GB (1,300,234,240 bytes)
Toshiba = 1.84 GB (1,979,711,488 bytes)
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
I am getting a different NAND dump size from Decrypt9 and my HardMod dump.

Decrypt9 NAND Dump: 1.21 GB
win32DiskImager Dump: 1.84 GB

@d0k3 Why would I have different size dumps? Is the Decrypt9 dump set for Samsung eMMC reads only?

Size info for the eMMC's
Samsung 1.21 GB (1,300,234,240 bytes)
Toshiba = 1.84 GB (1,979,711,488 bytes)

That would be because the hardmod and gateway dumps extra garbage at the end of the file. basically reads the whole chip, the ACTUAL nand size on n3ds is only 1.2gb regardless of emmc chip used.
So the dumps are valid, nothing to panic about. :)
 

atkfromabove

Well-Known Member
Member
Joined
Feb 9, 2015
Messages
321
Trophies
0
Age
31
Location
The state with lots of wives
XP
428
Country
United States
That would be because the hardmod and gateway dumps extra garbage at the end of the file, the ACTUAL nand size on n3ds is only 1.2gb regardless of emmc chip used.
So the dumps are valid, nothing to panic about. :)

Ok that makes sense. I was wondering why it looked like nothing was missing since I was able to see the same files decrypted from both dumps. I'll go ahead and try a restore now. Thanks

UPDATE:
NAND Restore - Working N3DS XL (US) 9.0.0-20U
 
Last edited by atkfromabove, , Reason: Update

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
@atkfromabove:
Thanks a ton for all the testing! Also for doing the risky stuff :). So, the current state is, everything works, but there is some trouble with ncchinfo.bin XORpad generation, correct? To be honest, I never tested that, cause I haven't changed anything except the working dir.

As for that (the working directory) - well, I already suspected that would lead to confusion. I'd like to have the Decrypt9 stuff out of sight, and that is badly needed especially when it's about hundreds of dumped system titles. Or, for the (planned) CTR decryptor - that should not process roms across the SD (as rxTools does) or even in the root folder. I think I should only use the working directory for these two options. Should be less confusing that way.

@Shadowtrance:
Thanks to you for testing the titlekey decryption and the risky stuff, too! I'll give your version a quick test later, then put a link on the first post. Is that okay? I just wonder, with the menu.bin files - that won't work with the Launcher.dat version, correct?

@Asia81 and everyone:
Well, the seeddb. No idea how to get that. If it is in the NAND, we can extract it, but as I said, no idea yet. I'll look into it. There also is something on 3Dbrew. With the wording there that might even mean that you need a specific seeddb.bin for each (9.6 crypto) game. Also, if that file is on the SYSNAND FAT16 partition, it is not on mine obviously, as I'm on 9.0.0.

The ncchinfo.bin XORpad generator would in theory be downwards compatible, at least with ncchinfo.bin v3 (that's the previous version), but the version check prevents that now.

But, what's the trouble with the seeddb right now? As I understand it, if it is not found you'll get a short error message and the XORpad generator should work regardless (except for the new crypto, of course). Shadowtrance, did you just replace the ncchinfo.bin XORpad generator with an older version?
 
Last edited by d0k3,

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Yeah it's annoying and needs to be fixed. :(
But anyway, hopefully this will cheer you up... A NEW VERSION!
Well a modified new version with the new menu but with the seeddb stuff removed. :)
Okay, I tried it. A few remarks (keep in mind, my personal opinion):
  • I like the font and writing on the icon, but I think the background should be something different (different colors or solid color).
  • It somehow feels strange that touch doesn't work, but the interface looks like a touch interface. I don't think touch is needed, though. Just thinking out loud :).
  • Some stuff needs different symbols. The Android Share symbol for SD padgen seems a bit out of place. For some other symbols it's difficult to associate them with their functions (the NAND partitions dumper, fe.).
  • The system title dumper doesn't decrypt (yet).
  • I think the text could use some improvements in regard to uppercase / lowercase and consistency.
  • The description for the NAND dumper scares me. Didn't try :). Is the NAND restore option in there? If so, it should be impossible to trigger it by accident.
  • The progress percentage has a different color background than the rest. To be honest, I think the progress indicator can still be improved upon (f.e. using some visual clue instead of text)
  • Not really an issue, but if you rename the folder and 3DSX / SMDH files, it doesn't work anymore.
  • Just an idea, but is there perhaps some room for more detailed instructions? Maybe view these instructions at the press of a button? You could write what scripts and what other tools to use.
  • ... and, I haven't seen the source code yet, but it is best if the menu functions are kept in a separate source file. I guess that's how you did it anyways.
Other than that, looking good! I like the colors and the changes to the console.
 
Last edited by d0k3,

DSoryu

GBA/NDS Maniac
Member
Joined
May 5, 2010
Messages
2,356
Trophies
2
Location
In my house
XP
4,757
Country
Mexico
Just used this to revert some .3ds to .cia (originally were on .cia format, eShop titles) and works!! :D, no more 's' file generation, thank you so much!.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Thanks a ton for all the testing! Also for doing the risky stuff :). So, the current state is, everything works, but there is some trouble with ncchinfo.bin XORpad generation, correct? To be honest, I never tested that, cause I haven't changed anything except the working dir.

Yeah that's pretty much the only issue, the ncchinfo version problem (damn you seedb) other than a little confusion on where to put stuff. haha

Thanks to you for testing the titlekey decryption and the risky stuff, too! I'll give your version a quick test later, then put a link on the first post. Is that okay? I just wonder, with the menu.bin files - that won't work with the Launcher.dat version, correct?

The menu does work with the launcher.dat version now. :) Well it works for me, don't know about anyone else, but the bottom screen appears to work correctly from when run from spider with the launcher.dat.

Well, the seeddb. No idea how to get that. If it is in the NAND, we can extract it, but as I said, no idea yet. I'll look into it. There also is something on 3Dbrew. With the wording there that might even mean that you need a specific seeddb.bin for each (9.6 crypto) game. Also, if that file is on the SYSNAND FAT16 partition, it is not on mine obviously, as I'm on 9.0.0.
Yeah i don't know what to do about the seeddb, I've left a question on archshift's repo so maybe he can shed some light on it.

The ncchinfo.bin XORpad generator would in theory be downwards compatible, at least with ncchinfo.bin v3 (that's the previous version), but the version check prevents that now.
You'd think it would be backwards compatible, but sadly that isn't the case in my testing. Be nice if it somehow was though.

But, what's the trouble with the seeddb right now? As I understand it, if it is not found you'll get a short error message and the XORpad generator should work regardless (except for the new crypto, of course). Shadowtrance, did you just replace the ncchinfo.bin XORpad generator with an older version?

In the version i shared on here earlier i just edited the current ncch_info_gen.py back to how it was before the seeddb stuff was added, as well as in the source before compiling, so that version works as normal. Some people still keep older (pre-seeddb adding ncchinfo.bin files for certain things).

Okay, I tried it. A few remarks (keep in mind, my personal opinion):
  • I like the font and writing on the icon, but I think the background should be something different (different colors or solid color).
  • It somehow feels strange that touch doesn't work, but the interface looks like a touch interface. I don't think touch is needed, though. Just thinking out loud :).
  • Some stuff needs different symbols. The Android Share symbol for SD padgen seems a bit out of place. For some other symbols it's difficult to associate them with their functions (the NAND partitions dumper, fe.).
  • The system title dumper doesn't decrypt (yet).
  • I think the text could use some improvements in regard to uppercase / lowercase and consistency.
  • The description for the NAND dumper scares me. Didn't try :). Is the NAND restore option in there? If so, it should be impossible to trigger it by accident.
  • The progress percentage has a different color background than the rest. To be honest, I think the progress indicator can still be improved upon (f.e. using some visual clue instead of text)
  • Not really an issue, but if you rename the folder and 3DSX / SMDH files, it doesn't work anymore.
  • Just an idea, but is there perhaps some room for more detailed instructions? Maybe view these instructions at the press of a button? You could write what scripts and what other tools to use.
  • ... and, I haven't seen the source code yet, but it is best if the menu functions are kept in a separate source file. I guess that's how you did it anyways.
Other than that, looking good! I like the colors and the changes to the console.
Yeah touch isn't here, just move left / right :P
Nand restore is indeed there (and working), Press A to dump normally, hold UP THEN press A to restore. Shouldn't be any accidental triggering.
Yeah the background for percentage is because i wanted the sd free space to blend in with the main top image, but they both use DrawStringF. So they share a background color.
Menu is on separate source files. Go look! :P
 

Asia81

Yuri Lover ~
Member
Joined
Nov 15, 2014
Messages
6,656
Trophies
3
Age
29
XP
3,489
Country
France
Should work with everything except the new 9.6 encryption games (so pretty much everything).

Forgot to mention, it looks for the ncchinfo.bin sdinfo.bin slot0x25keyx.bin and other files in the "Decrypt9" folder on the root of the sd card now.
it's not in the root ?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    DinohScene @ DinohScene: and that's a clean report center