ROM Hack [Release] 3DS_CTR_Decryptor-VOiD

xerpi

Well-Known Member
Member
Joined
Dec 25, 2011
Messages
212
Trophies
1
Age
28
Location
Barcelona
XP
1,331
Country
Seeing that some of you have trouble decrypting roms, I've created a very crappy coded Python script that does most of the command line work for you.
Instructions:
You need ctrKeyGen, ctrtool and padxorer in the folder the script is.
 

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,066
Country
Vietnam
Seeing that some of you have trouble decrypting roms, I've created a very crappy coded Python script that does most of the command line work for you.
Instructions:
You need ctrKeyGen, ctrtool and padxorer in the folder the script is.
Why not just a batch script?
 

Flurry

Well-Known Member
Newcomer
Joined
Sep 1, 2013
Messages
48
Trophies
0
Age
30
XP
184
Country
United States
I did it!
BEOd6Sb.png


Turns out I was right about the format, but I had my locations messed up.
So happy~
And thank you, SciresM, for making me realize this.
 

andibad

Soon™
Member
Joined
Sep 14, 2009
Messages
701
Trophies
0
Location
hospital
XP
247
Country
Indonesia
if is possible and working to repacking , translate HM games is possible (actually is useless XD). my plan is only mining HM data and other game only ... is enough ...

SNAG_0171.png

since i not have any experience on 3D thing format, i hope someone kindly share their tools :3
 
  • Like
Reactions: cearp

Roxas75

Well-Known Member
Member
Joined
Oct 9, 2010
Messages
516
Trophies
0
XP
1,522
Country
Italy
Good so actually rom decryption is going on in the public.
For those who have better infos, how the ctr for the sd file encryption is calculated?
Also, regarding game translations, i always thought about creating custom DLC, so piracy will not be necessary but actually even original games can load custom files instead of their romfs ones.
Also my bad, i don't own a gateway but since it launches homebrews i guess the newest betas spoof the signature checks. If it is true you guys can actually try to edit the game roms, what you just need is to edit the decrypted rom, recalculate the sha256 hashes in the ncch header and xor back the files in the rom with the xorpads.
We can't rebuild IVFC filesystem yet, but simple hexedit is legit i guess.
 

gtaking112

Well-Known Member
Member
Joined
Nov 1, 2013
Messages
105
Trophies
0
Age
29
XP
129
Country
N2dZRX3.png



It't be awesome if we could use a batch script to automate extracting the models from Pokemon :P

Thanks SciresM for the help!
 
  • Like
Reactions: Celice

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,749
Trophies
2
XP
8,613
Country
Tuvalu
Also, regarding game translations, i always thought about creating custom DLC, so piracy will not be necessary but actually even original games can load custom files instead of their romfs ones.

well i doubt every game supports dlc, but i imagine every game is able to receive an update patch. (surely all games could support dlc with an update patch that allows dlc :))
but yes, that is a nice idea, although it would be more trouble than it is worth, at the moment we cannot install custom stuff like that, it would be much more simple just to patch and load the rom, just because a rom is needed does not technically mean piracy has to be involved...
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,978
Trophies
2
XP
30,737
Country
United Kingdom
Also my bad, i don't own a gateway but since it launches homebrews i guess the newest betas spoof the signature checks. If it is true you guys can actually try to edit the game roms, what you just need is to edit the decrypted rom, recalculate the sha256 hashes in the ncch header and xor back the files in the rom with the xorpads.
We can't rebuild IVFC filesystem yet, but simple hexedit is legit i guess.

Yeah I was hoping to try something like this while waiting for the rebuilding to be fixed by some kindly genius. Good tip on the sha256 hash, thanks!
 

Nic333

Well-Known Member
Member
Joined
May 3, 2014
Messages
144
Trophies
0
XP
1,046
Country
Brazil
N2dZRX3.png



It't be awesome if we could use a batch script to automate extracting the models from Pokemon :P

Thanks SciresM for the help!

Well, you can extract the textures too:
Pokemon%2520X%2520Modelo%25203.png

Mewtwo%2520X.png

Just use that tool in PT files (Seek for the 4 bytes in the file, if says as PT are texture, PC are Model, and PF are Eye/Mouth)
 
  • Like
Reactions: gamefan5

pikpol

Well-Known Member
Member
Joined
May 13, 2009
Messages
326
Trophies
1
XP
1,858
Country
Netherlands
Those launchers start at an offset.
They're based off the first padgen posted which was more reliable but it freezes after about an hour.
What you do is generate from the start until it stops, then you can use the launcher for where you made it up to and later merge the results.
If this is a little bit too complicated, I'm sure another padgen will be released soon enough.


With what tool can i merge the files?
Is it done with a Hex editor?
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
Thanks will try that!
just use either the new v2 padgen or this one
Hi, I've refactored/improved the tool. Now it shows a percentage and it's a little bit faster.
Launcher.dat: https://www.dropbox.com/s/g0znm6uyikawy74/Launcher.dat?dl=0
Launcher_noGW.dat: https://www.dropbox.com/s/orxl5befn5adfko/Launcher_noGW.dat?dl=0
Source code: https://bitbucket.org/xerpi/3ds-ctr-decryptor-refactored/src
Code:
Original version by VOiD
Refactored by xerpi
 
Many thanks to Ryanrocks462, planetarian, Vappy and everyone else who helped me testing :P
Also thanks to megazig for the crypto lib.

Hope you like it!

none of my SD cards liked the new padgen, but this one works great, its much faster than the first padgen and there is no freezing so you wont have to mess about merging files
 

pikpol

Well-Known Member
Member
Joined
May 13, 2009
Messages
326
Trophies
1
XP
1,858
Country
Netherlands
just use either the new v2 padgen or this one


none of my SD cards liked the new padgen, but this one works great, its much faster than the first padgen and there is no freezing so you wont have to mess about merging files

That's even better! Thanks!! Will try it right away
 

pikpol

Well-Known Member
Member
Joined
May 13, 2009
Messages
326
Trophies
1
XP
1,858
Country
Netherlands
I managed to get the game data from Pokedex 3D Free
Though the fact is that some files in the game data are .z5
these files are probably the models and textures because the files are called p*number*.z5 and match the numbers of the pokemon of the 5th generation.
I will post the Link here: *removed*
three files are included: p493.z4, p494.z5, p495.z5
so these are probably the textures models and maybe more stuff of snivy, serpine and serperior
 
  • Like
Reactions: cearp

WannyTiggah

Well-Known Member
Member
Joined
Feb 24, 2014
Messages
168
Trophies
0
Age
41
XP
348
Country
Chile
Luckily I managed to download them. Not having a 4.5 3DS sux D;

I'll have to wait for some way to do it on 8.0+ :sleep:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AcuteBulbasaurappears @ AcuteBulbasaurappears: @salazarcosplay Hey, I'm doing good. Today I modded my Wii u quite far but I need some help with...