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

  • Thread starter Thread starter d0k3
  • Start date Start date
  • Views Views 935,306
  • Replies Replies 4,476
  • Likes Likes 71
OMG i love you.
Off question, do you know how to translate a manual after decryption ?

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

It's just for decrypt .3ds or a .cia too ?
 
Not working with multiples files.
He decrypt the first file perfectly, but not the second (error and ask me for reboot or return to the menu).
 
Just test the new version with title decryption.

4.x ncch pass
7.x ncch fail
7.x ncch 9.3 crypto fail
7.x ncch 9.6 seed crypto fail
 
Okay, new release. This is mainly to improve the CTR Title Decryptor.
  • Implemented seed crypto
  • Hopefully fixed directory parsing
  • Improved the onscreen output
This should now handle everything that NCCH padgen does (and without using Python scripts and xorpads, of course). Seed crypto and 7x crypto is implemented. Game backups still go to /Decrypt9/D9titles. Everything else still goes into /Decrypt9. Looking forward to you opinions!

As for the decision of keeping it inside the D9titles subdir: As you know, the title decryptor checks all files inside a directory, and - if detected as NCCH/NCSD container - overwrites files with their decrypted versions. While it has a fairly reliable detection for decryptable stuff, false positives are possible. Mixing that with your regular files is dangerous, and so it is better to keep it contained.
Just ran it again after the latest changes, harvest moon still fails... haven't tried anything else yet.

Opening D9titles/avmp.3ds ...
Found NCSD 000400000012BE00
Product Code: CTR-P-AVMP
Crypto Flags: 7x
Decrypting ExtHeader (2048b)...
Failed!

-----------
Bah ninja'd by @key1340 lol
 
1437399041-20150720-152657.jpg
 
It's just for decrypt .3ds or a .cia too ?
I know too little about the CIA format yet, but i think it should be possible to add CIA compatibility.

Not working with multiples files.
He decrypt the first file perfectly, but not the second (error and ask me for reboot or return to the menu).
Just test the new version with title decryption.

4.x ncch pass
7.x ncch fail
7.x ncch 9.3 crypto fail
7.x ncch 9.6 seed crypto fail
Just ran it again after the latest changes, harvest moon still fails... haven't tried anything else yet.

Opening D9titles/avmp.3ds ...
Found NCSD 000400000012BE00
Product Code: CTR-P-AVMP
Crypto Flags: 7x
Decrypting ExtHeader (2048b)...
Failed!

-----------
Bah ninja'd by @key1340 lol
Okay, thanks everyone. I think I already know what goes wrong there. Just give me an hour or two.

BTW, @Shadowtrance I think you didn't write the complete message. It is almost impossible to fail decrypting the ExHeader. Failure should happen when decrypting ExeFS.
 
I know too little about the CIA format yet, but i think it should be possible to add CIA compatibility.

Okay, thanks everyone. I think I already know what goes wrong there. Just give me an hour or two.

BTW, @Shadowtrance I think you didn't write the complete message. It is almost impossible to fail decrypting the ExHeader. Failure should happen when decrypting ExeFS.
Ah yeah woops... it did fail after exefs.
 
Okay, the .code offset was wrong, which in turn messed up everything else. This release should fix all the issues you described. Can't try myself now, cause I don't have any way to get big files on my N3DS now and I don't have any seed or 7x crypto titles on the card.

If you want to try, fixed release is attached. Or wait until I get to test it myself. I'll only make a new release once this is sufficiently tested. Keep in mind that when testing, you need to copy the unchanged files back to the D9titles directory. Even when Decrypt9 fails decrypting a game backup, It may have already made some changes to it.

Edit: Removed Download, didn't work either.
 
Last edited by d0k3,
Okay, the .code offset was wrong, which in turn messed up everything else. This release should fix all the issues you described. Can't try myself now, cause I don't have any way to get big files on my N3DS now and I don't have any seed or 7x crypto titles on the card.

If you want to try, fixed release is attached. Or wait until I get to test it myself. I'll only make a new release once this is sufficiently tested. Keep in mind that when testing, you need to copy the unchanged files back to the D9titles directory. Even when Decrypt9 fails decrypting a game backup, It may have already made some changes to it.

Same results as before with the new file.I put all games on fresh also put n3ds game on as well and that fail aswell.
 
Same results as before with the new file.I put all games on fresh also put n3ds game on as well and that fail aswell.
Did you download the one attached above? I haven't yet updated the release on GitHub. If so, I guess we'll have to wait unti I can get proper test data on my 3DS.
 
Yes i download the one attached above.The game with old ncch was fine the rest failed.It was much faster with the fail this time like 1-2 seconds and the whole lot were failed.Before it was like a few seconds per game.
 
Yes i download the one attached above.The game with old ncch was fine the rest failed.It was much faster with the fail this time like 1-2 seconds and the whole lot were failed.Before it was like a few seconds per game.
Okay, thanks a lot then! I think I should have an opportunity to get proper test data on there this evening. More later...
 
Alright, I know that's not the first time you hear that today, but this time I've been able to test 7x decryption myself (the Harvest Moon Lost Valley game backup) and everything looks mighty fine. I didn't test seed crypto, but that was affected by the same coding mishap as 7x, so that should be fixed as well. There also is no problem with batch processing of multiple files. I think that was due to the 7x crypto bug.

Third times the charm ;). The release is here, looking forward to what you've got to say.
 
Cubic Ninja EUR (4.X)
Tetris Ultimate EUR (7.X)
Ultimate NES Remix EUR (7.X)
The Great Ace Attorney JAP (?)

I decrypted all those files in 1 time, and it's working fine.
The games are not corrupted and decrypted well.

But I have a problem.
I think the ExHeader for CubicNinja is not decrypted well, because when I open it with 3DS Builder, he is not automatically recognized.
 
But I have a problem.
I think the ExHeader for CubicNinja is not decrypted well, because when I open it with 3DS Builder, he is not automatically recognized.
That's almost impossible. If the ExHeader was decrypted correctly for the other 3 and CN ExeFS / RomFS were decrypted correctly, there is almost no way there could have gone something wrong with the CN ExHeader. ExHeader decryption is always the same, regardless of 7x or seed crypto. And you say, everythings okay for those three other titles? Could you check again?

EDIT: What you could try is, decrypt CN the regular, old way. Then compare it with the one you decrypted with the title decryptor using a hex editor. Tell me if / where the difference is, and I might have an idea.
 
Last edited by d0k3,
And you say, everythings okay for those three other titles?
-> Yeah, everythings is okay for all other titles (Decryption, XXXFS Extraction...)
The exheader is not automatically recognized just for CubicNinja and TheGreatAceAttorneyJAP (but it's normal, it's a new game)
 
And you say, everythings okay for those three other titles?
-> Yeah, everythings is okay for all other titles (Decryption, XXXFS Extraction...)
The exheader is not automatically recognized just for CubicNinja and TheGreatAceAttorneyJAP (but it's normal, it's a new game)
That's strange at least... You will need to try the comparison with hex editor (regular, old xorpad way vs shiny new title decryptor). HxD has a good comparison feature under 'Analysis'. The offset of the first difference may be enough, but a screenshot of the comparison would be better.
 

Site & Scene News

Popular threads in this forum