ROM Hack [Release] 3DS_CTR_Decryptor-VOiD

drwhojan

Well-Known Member
Member
Joined
Jul 14, 2009
Messages
4,196
Trophies
1
Age
44
Location
Where I Am!
XP
1,691
Country
United Kingdom
Actually I don't think the environment variables matter in this case. Your .py files are associated with the Python 2.7 exe, not another version?


No other version, anyway the files worked grate anyway , So no matter .

hiBEPZD.jpg
 

y03usw6e

Well-Known Member
Member
Joined
Mar 15, 2014
Messages
308
Trophies
0
Age
29
XP
270
Country
Belgium
No other version, anyway the files worked grate anyway , So no matter .

Oh, duh. I just figured it out.
When you right click the link and save, it saves as ctrKeyGen.py, but what you're actually saving is the webpage: https://github.com/Relys/3DS_Multi_Decryptor/blob/master/ctrKeyGen.py

I just go here and click the Download ZIP button.

Alternatively, if you go to the ctrKeyGen.py page, you can right click on the link in the top right that says Raw, and save that.
 

drwhojan

Well-Known Member
Member
Joined
Jul 14, 2009
Messages
4,196
Trophies
1
Age
44
Location
Where I Am!
XP
1,691
Country
United Kingdom
Oh, duh. I just figured it out.
When you right click the link and save, it saves as ctrKeyGen.py, but what you're actually saving is the webpage: https://github.com/Relys/3DS_Multi_Decryptor/blob/master/ctrKeyGen.py
I just go here and click the Download ZIP button.

Yes that is what is happen-ing .

They can be usd in plain text , did you not know that ???
All the phython scripts i use are plain text and working , so you can change things in them.


Yes you are right :) , it works as long as you have Python installed .

If you don't have Python installed then yes they would need compiling correctly, for non Python users to use .
 

Scipiox

Member
Newcomer
Joined
Dec 10, 2014
Messages
9
Trophies
0
Age
41
XP
113
Country

einstein95

Well-Known Member
Member
Joined
Aug 31, 2013
Messages
230
Trophies
0
Age
28
XP
277
Country
New Zealand
Is any way modify Decryptor to working from Gateway (3DS or CIA format) or from Ninjhax? For Gateway because now is not possible decrypt content on SD card, when sysNAND was formatted. And for Ninjhax to decrypt content 3DS with FW above 4.x.
No. The decryptor runs with full kernel access, which it needs. 3DS and CIA format applications run in "userland", without access to things like the AES module, so no decryption can take place that can be controlled via the application.
 

NCDyson

Hello Boys...
Member
Joined
Nov 9, 2009
Messages
278
Trophies
0
XP
308
Country
United States
No. The decryptor runs with full kernel access, which it needs. 3DS and CIA format applications run in "userland", without access to things like the AES module, so no decryption can take place that can be controlled via the application.

I've often wondered how hard it would be to add in a service port that userland apps in cfw could access with the needed functions, but I've never gotten around to actually looking because I have a gateway(so I don't use cfw) and I don't find the need to decrypt things often enough to be bothered. Still, someone should look into it.
 

drwhojan

Well-Known Member
Member
Joined
Jul 14, 2009
Messages
4,196
Trophies
1
Age
44
Location
Where I Am!
XP
1,691
Country
United Kingdom
Counter generation(info from http://3dbrew.org/wiki/Extdata):

First, take the path of the file you want you want to decrypt.
Let's use 'X:/Nintendo 3DS/<ID0>/<ID1>/extdata/00000000/0000008f/00000000/00000001' ('00000001' is the file, it has no extension)
We only need what's after X:/Nintendo 3DS/<ID0>/<ID1>
So, '/extdata/00000000/0000008f/00000000/00000001'
Convert that to UTF16, add two null bytes to the end, then take the SHA256.
The counter is then CTRword = Hashword ^ Hashword[4+i]

For the example file, the counter is {0x24, 0xE2, 0xF7, 0x91, 0x92, 0x6A, 0xDC, 0x96, 0x49, 0x4E, 0x81, 0xA9, 0x7B, 0x3C, 0x90, 0xCF}


This works for anything in 'extdata', 'dbs', 'title', and possibly 'backups'(haven't tested this one)

Tool = ? 'X:/Nintendo 3DS/<ID0>/<ID1>/extdata/00000000/0000008f/00000000/00000001' ('00000001' is the file, it has no extension)
We only need what's after X:/Nintendo 3DS/<ID0>/<ID1>/extdata/00000000/0000008f/00000000/00000001

Missing info what tool was used ?, Tool = ?
 

Huntereb

Well-Known Member
Member
Joined
Sep 1, 2013
Messages
3,235
Trophies
0
Website
lewd.pics
XP
2,434
Country
United States
Hey guys, I created a program to make editing your Mega Evolution Tables easier. Goes great with [user]SciresM[/user]'s Personal editor.

RZaqwZp.png


Just open your decrypted Garc folder at a/1/9/3 (For OR/AS), or a/2/1/6 (For X/Y), make your edits, then click save. A list of item IDs can be found in the program.

Download: https://github.com/Huntereb/MEE/releases

Source: https://github.com/Huntereb/MEE

By the way, the source is kinda messy. This is my first C# project, so that's to be expected I suppose.

Enjoy!
 

Asia81

Yuri Lover ~
Member
Joined
Nov 15, 2014
Messages
6,531
Trophies
3
Age
28
XP
2,804
Country
France
Hey guys, I created a program to make editing your Mega Evolution Tables easier. Goes great with [user]SciresM[/user]'s Personal editor.

rW0bfPB.png


Just open your decrypted Garc folder at a/1/9/3, make your edits, then click save. You can find a list of item ID's here.

Download: https://github.com/Huntereb/MEE/releases

Source: https://github.com/Huntereb/MEE

By the way, the source is kinda messy. This is my first C# project, so that's to be expected I suppose.

Enjoy!

EDIT: Updated with new picture. It now allows for three evolution slots.

It's for XY or ORAS ?
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,672
Trophies
2
XP
8,094
Country
Tuvalu
sbJFn5r and everyone - thanks for all the work, i really like that it is a multi tool and i do not have to switch out launcher.dats for when i want to decrypt eshop/3ds rom stuff!
this has unadulterated nand access right - is it not possible to 'simply' (not sure how simple it really is) - to simply copy the ticket.db from the nand to the sd card?
then those who just want that file do not have to go through the whole process of decrypting their nand, etc etc.
is this possible, would you think about this? i appreciate it.

thank you
 

SciresM

Developer
Developer
Joined
Mar 21, 2014
Messages
965
Trophies
2
Age
32
XP
8,045
Country
United States
[user]HunterEB[/user]

I just made a pull request that vastly improves all of the code in your project. I made it use way more iteration, and rely less on hardcoded stuff. Also, the Species box is sorted alphabetically by Mon Name now. ;)
 

Huntereb

Well-Known Member
Member
Joined
Sep 1, 2013
Messages
3,235
Trophies
0
Website
lewd.pics
XP
2,434
Country
United States
I just made a pull request that vastly improves all of the code in your project. I made it use way more iteration, and rely less on hardcoded stuff. Also, the Species box is sorted alphabetically by Mon Name now. ;)


You just rewrote the whole thing, it can't even be compared to what it was before.

Also, your commit is based on an older build.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Skelletonike @ Skelletonike: 1H left, such a slow week.