ROM Hack [Release] 3DS_CTR_Decryptor-VOiD

Nic333

Well-Known Member
Member
Joined
May 3, 2014
Messages
144
Trophies
0
XP
1,046
Country
Brazil
They did it some unknown, unreleased way. Dunno why nothing has been released relating to them. It doesn't even have to be proper right now, I just want something that works. :rolleyes:

They did by the rexoring stuff, just a few members figure out how that works....
I Still think as using the PatchRom to rebuild roms is the better way... You can even redirect RomFS to the SD....
 
  • Like
Reactions: Huntereb

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
ah i see. i didnt look into that too much, but i think this should do the trick:

http://rumkin.com/software/tools/padxor.php
the xorpads are generated by the 3ds, they are unique to the title, its the same xorpad used to decrypt the content is reused to encrypt it, its not thats the methods are some secret its just that people struggle with a 2 step bat file to decrypt and rebuild i can only imagine what would happen if i tried to explain the re-xoring method, i would prefer to let someone automate the process if they can to save on the headache :D

but anyone who can figure it out, all the info is there and public
 
  • Like
Reactions: gtaking112

ground

Well-Known Member
Member
Joined
Mar 22, 2007
Messages
907
Trophies
0
XP
597
Country
Netherlands
the xorpads are generated by the 3ds, they are unique to the title, its the same xorpad used to decrypt the content is reused to encrypt it, its not thats the methods are some secret its just that people struggle with a 2 step bat file to decrypt and rebuild i can only imagine what would happen if i tried to explain the re-xoring method, i would prefer to let someone automate the process if they can to save on the headache :D

but anyone who can figure it out, all the info is there and public
i know ;) i wasnt pointing to the creating xorpads, but just using the existing xorpads to encrypt files. but as I said, i didnt look at it ;)

edit:
anyway, i was puzzling witht his for a while. but is it possible to decrypt the nand with this? I lokoed in the source and i know how to change the keyslots but i dont know hoe to create a proper .bin file for it.

if we have an xorpad we can mount it with this script:
http://pastebin.com/Nj9n10y8 (written by smealum)
 

Relys

^(Software | Hardware) Exploit? Development.$
OP
Member
Joined
Jan 5, 2007
Messages
878
Trophies
1
XP
1,239
Country
United States
i know ;) i wasnt pointing to the creating xorpads, but just using the existing xorpads to encrypt files. but as I said, i didnt look at it ;)

edit:
anyway, i was puzzling witht his for a while. but is it possible to decrypt the nand with this? I lokoed in the source and i know how to change the keyslots but i dont know hoe to create a proper .bin file for it.

if we have an xorpad we can mount it with this script:
http://pastebin.com/Nj9n10y8 (written by smealum)


To decrypt NAND you'd have to RE the NAND decryption function in the kernel. You need to know:
1) Which keyslot to select.
2) How to calculate keyY (public key)
3) How to calculate ctr (Initialization Vector)
 
  • Like
Reactions: ground

kyogre123

Mexican Pride
Member
Joined
Sep 23, 2013
Messages
2,920
Trophies
0
Age
34
XP
1,347
Country
Mexico
They did by the rexoring stuff, just a few members figure out how that works....
I Still think as using the PatchRom to rebuild roms is the better way... You can even redirect RomFS to the SD....

So is that actually working for roms of retail games?
 

kyogre123

Mexican Pride
Member
Joined
Sep 23, 2013
Messages
2,920
Trophies
0
Age
34
XP
1,347
Country
Mexico
It was updated 10 days ago so I don't think it has the latest update of Applestash. How come nobody has uploaded screenshots of a mod of a game other than the guys who are hacking Pokemon?
 

cracker

Nyah!
Member
Joined
Aug 24, 2005
Messages
3,619
Trophies
1
XP
2,213
Country
United States
I think the biggest reason why not much has happened in way of rebuilding is the need for hashing and patching by hand before rebuilding. I'm not sure if anyone has created a script or program to do that automatically yet but I was thinking about it if I get time.
 

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 the biggest reason why not much has happened in way of rebuilding is the need for hashing and patching by hand before rebuilding. I'm not sure if anyone has created a script or program to do that automatically yet but I was thinking about it if I get time.
I'm going to try to mess with Pokemon Y some time so I made a simple tool to edit ncchinfo.bin (to quickly change romfs size for a new xorpad, for example) and I guess I'm going to make batch files for the repacking (or use patchrom to redirect reads to the SD card if I figure out how to do it)
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
I was referring to the IVFC header editing to pass the checks.
Well yeah that would be nice if the tool also rebuilt the RomFS separately.
We can only rebuild it through makerom, and it packs it into an NCCH container already.

As it is now it's simpler to make a batch file to rebuild the rom with makerom and then extract the proper romfs.bin with ctrtool. Then generate the new xorpad, xor it and repack it into the rom again.
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,233
Country
Brazil
So it is not possible to repack a rom with the patchrom tools alone after all...
There's not much explanation in patchrom, only "patching code.bin to redirect romfs access to sdcard".
So I suppose we put the romfs files somewhere on the SD card. No idea if it's romfs.bin, a romfs folder or simply the romfs files on the SD card's root though.
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
Tbh it's a toss up between romfs rebuilding and the redirect to Sd, I actually haven't gotten the patch rom to work, I had it decrypt the rom extract the offsets and rebuild the rom, but I'm guessing it needs something more to actually apply the patches....so I think there is a step 2 that I missed out,

As for re-xoring I know how to do it, but I did it all manually without rebuilding the romfs etc, I just edited the romfs, fixed the ivfc hashes, re-xored it and copied the romfs back into the original rom, then.just fix the romfs hash in the rom
 

kaidex

New Member
Newbie
Joined
Sep 28, 2014
Messages
4
Trophies
0
Age
34
XP
52
Country
Switzerland
For those you looking to rebuild the romfs using the source above is a good place to start that along with the information in this thread should be enough to repack the romfs. As for romfs generation I think I am starting to see a pattern with the weird offsets and I will probably look into romfs generation when I am finished coding my tool.

Current update on my tool here is what I have working:
  • RomFS/NCCH/NCSD unpacking and repacking
  • Re-encryption of NCCH using zero keys
  • The ability to decrypt files using the xorpads created by the ctr decryptor
  • Conforms to the same naming format as ctr decryptor
What I have remaining is:

  • Replacing NCCHs in an NCSD without extraction
I am hoping to have it release ready very soon.

If anyone else has any feature requests or any questions please feel free to PM me.

Could you tell me how to fix Romfs hash or repack Romfs?
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
edited my post, is asking anything related such as decrypting and else also against the rules ?
Well sharing any copwritten code is not allowed, the xorpad is kind of part and parcel of the ROM (sort of like a mirror image) if you look around there has been people sharing bits of extracted ROMs on the internet, also if you just wanted to look at something and not any specific game the bigbluebox pokemon VC games don't need xorpads to be extracted
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    The Real Jdbye @ The Real Jdbye: you can fap to your favorite character without it being gay