ROM Hack [Release] 3DS_CTR_Decryptor-VOiD

Relys

^(Software | Hardware) Exploit? Development.$
OP
Member
Joined
Jan 5, 2007
Messages
876
Trophies
0
XP
1,201
Country
United States
Port by Archshift to work with 9.x: https://github.com/archshift/Decrypt9

Instructions: https://github.com/citra-emu/citra/wiki/Decryption

Compiled download for 9.x (beta):https://mega.co.nz/#!7dIGgJKL!RL1rkYMlpz1gV-EDQZSRc5WGWYU-r86iD_3GwONSQvg

3DS multitool thing.

Functions:
NCCH padgen -- use ctrkeygen.py to generate the needed ncchinfo.bin
SD padgen -- use SDinfo_gen.py to generate the needed SDinfo.bin
Title key decrypter -- check out the scripts in 'ticket-titlekey_stuff'
NAND FAT16 partition padgen --self-explanatory
NAND dumper --self-explanatory

Controls:
DPAD Up/Down: change selection
A: select item
B: return to menu(after your selected process finishes)


YOU NEED TO SUPPLY YOUR OWN COPY OF slot0x25KeyX.bin.

To build for iQUE (Chinese 3DS) please change the following line in rop.py
_pop_r2_pc = 0x0022952D ### for ique change to 0x00229565

Thanks to enler for finding the correct gadget offset.

credits:

sbJFn5r - everything
relys - coded the original C version of "ctrkeygen"
xerpi - did some refactoring early on, that I then built off of and made ugly again. :(


Thanks:

yellows8 and everyone that contributes to the 3dbrew wiki
megazig for the crypto functions
some GBAtemper for the FS functions. Don't know who you are, but the person I got them from said they came from someone on GBAtemp.







My code is awful, sorry if it's hard to read/follow.

Download Link: https://github.com/Relys/3DS_Multi_Decryptor

Project CTR fork from AppleStashs "Vandalized" version: https://github.com/Relys/Project_CTR

Every File Explorer by Gericom:
http://gbatemp.net/threads/release-every-file-explorer.373615/

sm4sh data tools by comex:
https://github.com/comex/smash-stuff

Sm4shCommand by Sammi Husky and dantarion: http://gbatemp.net/threads/release-sm4shcommand.378245

Sm4sh Documentation by dantarion: http://opensa.dantarion.com/wiki/Main_Page

Sm4sh Patch notes by dantarion: http://opensa.dantarion.com/s4/mastercore2/
 

GorTesK

Mad Hatter
Member
Joined
Jan 29, 2013
Messages
1,099
Trophies
0
Age
33
Location
Down The Rabbit Hole
XP
591
Country
Gambia, The
For dah no0bZ, how about someone explains what this does?

well to be honest I don`t understand much about how the 3DS works, because that is not my field of expertise, but if I read something, I usually memorize it and I read this thingy here from Team Fail from his recent release
"Basically

1. You get your keys.
2. Put them into the aes core, and get your xorpad. <- This is the only step that hasn't been completed. However, all the files to achieve this are public.
3. xor the file you want to decrypt.
4. ???
5. Profit!"
because this release seems to produce a xorpad file, I have reason to believe it might be step 2 of what he described here... well I may just be totally wrong of course and unless somebody knowledgable delivers some comprehensable explaination, we might just sit here and stare at it :P
 
  • Like
Reactions: loco365

Relys

^(Software | Hardware) Exploit? Development.$
OP
Member
Joined
Jan 5, 2007
Messages
876
Trophies
0
XP
1,201
Country
United States
That is correct. You can use 3DSExplorer to extract the files and use the XOR Tool to decrypt. You can use ctrtool to extract the dcrypted files.
 

GorTesK

Mad Hatter
Member
Joined
Jan 29, 2013
Messages
1,099
Trophies
0
Age
33
Location
Down The Rabbit Hole
XP
591
Country
Gambia, The
That is correct. You can use 3DSExplorer to extract the files and use the XOR Tool to decrypt. You can use ctrtool to extract the dcrypted files.

so correct me, if I am wrong with my assumption, but does this mean, that rom files are now "easily"/publicly decryptable? (with a 4.5 3DS/XL)
or does it still need another step, that is yet to be discovered?
 

Relys

^(Software | Hardware) Exploit? Development.$
OP
Member
Joined
Jan 5, 2007
Messages
876
Trophies
0
XP
1,201
Country
United States
so correct me, if I am wrong with my assumption, but does this mean, that rom files are now "easily"/publicly decryptable? (with a 4.5 3DS/XL)
or does it still need another step, that is yet to be discovered?

You are correct. :) We made this since no one else would share. All of our source is included. We made this because we wanted to rip music, create level editors for SM3DL and mod like Project M for SSB (although we will need 7.x decryption for that I believe).
 

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
29,259
Trophies
2
Location
Gaming Grotto
XP
26,962
Country
Poland
I counted six download buttons on that page, eenie meanie miney moe.
5hfcc3z.png
 

ground

Well-Known Member
Member
Joined
Mar 22, 2007
Messages
907
Trophies
0
XP
570
Country
Netherlands
You are correct. :) We made this since no one else would share. All of our source is included. We made this because we wanted to rip music, create level editors for SM3DL and mod like Project M for SSB (although we will need 7.x decryption for that I believe).
and rom injection for virtual consoles ?;)
 
  • Like
Reactions: Margen67

jqrn

Well-Known Member
Member
Joined
Dec 28, 2011
Messages
113
Trophies
0
Age
46
XP
485
Country
well to be honest I don`t understand much about how the 3DS works, because that is not my field of expertise, but if I read something, I usually memorize it and I read this thingy here from Team Fail from his recent release
"Basically

1. You get your keys.
2. Put them into the aes core, and get your xorpad. <- This is the only step that hasn't been completed. However, all the files to achieve this are public.
3. xor the file you want to decrypt.
4. ???
5. Profit!"
because this release seems to produce a xorpad file, I have reason to believe it might be step 2 of what he described here... well I may just be totally wrong of course and unless somebody knowledgable delivers some comprehensable explaination, we might just sit here and stare at it :P



erhhmm.... how to ask... you know...

- What keys?
- what aes core
- what xorpad

I am at a complete loss here.
 
  • Like
Reactions: yuyuyup
B

Ben12066

Guest
Sounds promising, but I don't have Gateway... Sorry.

EDIT: NVM that. I forgot to read... :|
 

GorTesK

Mad Hatter
Member
Joined
Jan 29, 2013
Messages
1,099
Trophies
0
Age
33
Location
Down The Rabbit Hole
XP
591
Country
Gambia, The
erhhmm.... how to ask... you know...

- What keys?
- what aes core
- what xorpad

I am at a complete loss here.

http://gbatemp.net/threads/3ds-decryption-key-generator.370630/
this is Team Fail`s release, that gets you the keys
apparently this new release in this thread here gets you the xorpad file (whether or not it uses Team Fail`s code or was written before that, I do not know...) / follow the instruction to acquire it, you still need a 4.5 3DS/XL to actually launch this release
and apparently XOR Tool can decrypt it and ctrtool extracts it...
is it usable to the average user? uhm no, I guess?
but it might just be the first real BIG step into fan translation apparently, since it enables rom decryption

still waiting for some big name to give his statement on this, but It looks realy promising :-)
 

Snailface

My frothing demand for 3ds homebrew is increasing
Member
Joined
Sep 20, 2010
Messages
4,324
Trophies
1
Age
38
Location
Engine Room with Cyan, watching him learn.
XP
2,221
You are correct. :) We made this since no one else would share. All of our source is included. We made this because we wanted to rip music, create level editors for SM3DL and mod like Project M for SSB (although we will need 7.x decryption for that I believe).
Just curious, why did you make a scene release nfo for this?

Whatever the reasons, thanks for the release.
 
  • Like
Reactions: Ryanrocks462
General chit-chat
Help Users
  • No one is chatting at the moment.
    Skelletonike @ Skelletonike: i'll stick to jerry's durability test https://www.youtube.com/watch?v=66xbBtnxb5k