ROM Hack [Release] 3DS_CTR_Decryptor-VOiD

kyogre123

Mexican Pride
Member
Joined
Sep 23, 2013
Messages
2,920
Trophies
0
Age
34
XP
1,347
Country
Mexico
Something looks worong ith it.
I tried with the NCCH extracted from a DevMenu.cia and it generated 2 files named DevMenu (second overwrites the first one) and 1MB big, haha

The tool behaves awkwardly with stuff encrypted with zero keys, however they can simply be extracted without xorpads with ctrtool.
 

kyogre123

Mexican Pride
Member
Joined
Sep 23, 2013
Messages
2,920
Trophies
0
Age
34
XP
1,347
Country
Mexico
So, summarising, these are the steps to edit dumps of retail games:

1. Create a xorpad of the original 3DS ROM with the modified CTR_Keygen.
2. Decrypt the whole rom, then extract the contents of romfs.
3. Edit whatever you want in the folder that contains the extracted files of romfs.
4. Recompile a whole (temporary) ROM with makerom doing the proper modifications to a rsf file in order to rebuild the romfs folder.
5. Extract romfs of this new temporary ROM.
6. Replace the romfs of the decrypted ROM with the one extracted in step 5.
7. Rexor with original xorpad.

What about that rexoring part? What if the new romfs is bigger than the original?
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
I think you could just edit your ncchinfo.bin to reflect the new RomFS size and generate a new xorpad.
Couldn't you then you xor it back after having the hashes fixed and reinsert the encrypted romfs.bin with makerom?
I don't get the purpose of this NCCH ctrkeygen for romfs modding.
 

kyogre123

Mexican Pride
Member
Joined
Sep 23, 2013
Messages
2,920
Trophies
0
Age
34
XP
1,347
Country
Mexico
I think you could just edit your ncchinfo.bin to reflect the new RomFS size and generate a new xorpad.
Couldn't you then you xor it back after having the hashes fixed and reinsert the encrypted romfs.bin with makerom?
I don't get the purpose of this NCCH ctrkeygen for romfs modding.

The purpose is to get a single xorpad as I can understand, instead of one for every partition contained in the NCSD
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
The modded keygen still generates multiple xorpads, only it uses a NCCH container (CXI, CFA, or content extracted from NCSD) instead of a NCSD (CCI, CSU, 3DS rom).
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
OK, then according to you (because I haven't tried myself) the modified CTR_Keygen generates a single xorpad for a NCCH partition or is still divided in romfs, exefs and exheader; or both?
Still multiple xorpads. Only it was weird for that devmenu content, generated exefs and exheader as 'devmenu' and both were 1MB big. Probably the file used a diferent encryption.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: I think the Mister is cool and all, but honestly I have seen some video's exploring the...