ROM Hack Can someone tell me how to decrypt 3ds backups on(N3DS only)

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,576
Country
United States
Ok so i am having a hard time decrypting 3ds backups on my n3ds ver 9.0.
there are a bunch og confusing guides that explain on how to decrypt on a O3ds and a n3ds in one guide and they keep cross referencing to things that saying skip this if you new or old 3ds and do this but not if your 7.x+ or such

this dosent help and dosent work
https://github.com/citra-emu/citra/wiki/Decryption

can someone tell me how do i go about this for ONLY a n3ds with a sysnand of 9.0

heres where i am now, i have downloaded a decrypt9 from in here
https://gbatemp.net/threads/release-3ds_ctr_decryptor-void.370684/
(https://mega.nz/#!7dIGgJKL!RL1rkYMlpz1gV-EDQZSRc5WGWYU-r86iD_3GwONSQvg)
but idk if that version works for me.

i made a ncchinfo.bin and rom backup on on the root.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
If you just want to decrypt roms to try and run on Citra (i assume that's what you wanna do seeing as you linked to citra related stuff, correct me if I'm wrong).
You can just use Decrypt9's rom decryption feature. (don't believe this is in archshift's version yet).
So use this one https://github.com/Shadowtrance/Decrypt9/releases/tag/v2.1

If you need any help, just let me know where you run into trouble and I'll try help. :)
 

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,576
Country
United States
If you just want to decrypt roms to try and run on Citra (i assume that's what you wanna do seeing as you linked to citra related stuff, correct me if I'm wrong).
You can just use Decrypt9's rom decryption feature. (don't believe this is in archshift's version yet).
So use this one https://github.com/Shadowtrance/Decrypt9/releases/tag/v2.1

If you need any help, just let me know where you run into trouble and I'll try help. :)
well im decrypting 1 because im just curious about the contents of roms, maybe rom edits and 2 i may convert my .3ds files to cia one day.

i had this version of decrypt9 before, it gives a error with ncchinfo.bin saying wrong version.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
well im decrypting 1 because im just curious about the contents of roms, maybe rom edits and 2 i may convert my .3ds files to cia one day.

i had this version of decrypt9 before, it gives a error with ncchinfo.bin saying wrong version.
It shouldn't give that error if you use the ncchinfo_gen script that comes with it.
 

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,576
Country
United States
it still does, it says wrong version ncchinfo.bin
NCCH Padgen failed (with old ncchinfo)

the ncchinfo_gen.py that came with the app can't generate a ncchinfo it gives a error

Code:
Parsing NCSD in file "Tomodachi Life[C2].3ds":
  Parsing Main NCCH
    NCCH Offset: 00004000
    Product code: CTR-P-EC6E
    Partition number: 0
    KeyY: 39BA9A2F7DCF1533D32466E83970079E
    Title ID: 000400000008C300
    Format version: 2
    Uses 7.x NCCH crypto

Traceback (most recent call last):
  File "C:\Users\xdark\Downloads\decrypt9\scripts\ncchinfo_gen.py", line 282, in <module>
    result = parseNCSD(fh)
  File "C:\Users\xdark\Downloads\decrypt9\scripts\ncchinfo_gen.py", line 138, in parseNCSD
    result = parseNCCH(fh, header.offset_sizeTable[i].offset * mediaUnitSize, i, reverseCtypeArray(header.titleId), 0)
  File "C:\Users\xdark\Downloads\decrypt9\scripts\ncchinfo_gen.py", line 183, in parseNCCH
    data = data + parseNCCHSection(header, ncchSection.exheader, 0, 0, 1, tab)
  File "C:\Users\xdark\Downloads\decrypt9\scripts\ncchinfo_gen.py", line 225, in parseNCCHSection
    titleId = struct.unpack('<Q',(bytearray(header.programId[:8])))[0]
struct.error: unpack requires a string argument of length 8
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
it still does, it says wrong version ncchinfo.bin
NCCH Padgen failed (with old ncchinfo)

the ncchinfo_gen.py that came with the app can't generate a ncchinfo it gives a error
Yeah it will fail if you're using an old version of the script with a newer version of decrypt9. That's normal.
As for the other issue, I've no idea what the cause is. What python version do you have installed?
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Anyone know what that error means? That is what's stopping me from decrypting roms.
Also is there a way to skip or generate ncchinfo on the system itself?
No idea what the deal is with that error. the script works fine for me.
But you can skip the whole xorpad (ncchinfo) thing if you want to and just decrypt the rom directly with the "rom decryption" option in decrypt9.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
that gives a (could not open work directory) error
wheres the work directory? it says working directory is /decrypt9 but i already have that folder there..
Should be /Decrypt9 on sd root, then inside that should be /D9titles roms go in there for the rom decryption option.

Read the README.txt!! -.-
 
  • Like
Reactions: xdarkmario

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
thanks, looks like its working! its at
decrypting RomFS 18%

readme didnt say anything about that, btw im using the MSET methoid
Ah my bad, thought I'd put that in the readme. guess i didn't.
Yeah it takes a little while depending on game size.
Once it's done it won't look like anything has happened but it is decrypted and then you can extract it on pc (try the tool in the 2nd link in my sig).
 

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,576
Country
United States
Ah my bad, thought I'd put that in the readme. guess i didn't.
Yeah it takes a little while depending on game size.
Once it's done it won't look like anything has happened but it is decrypted and then you can extract it on pc (try the tool in the 2nd link in my sig).
ok its done, but how do i tell its decrypted? perhaps by the way that all timestamps are gone?
and in your 3ds rom tools how do i extract the files of that .3ds file into windows readable files
clicking the 3 buttons do nothing, makes one folder with the name of the rom and inside that are 3 folders

decrypted
encrypted
unpacked

and inside of those are always empty even after i click
extract exheadder, extractexefs and extract romfs
the buttons do nothing. i even ran as administrator and as windows 8 and windows 7 compatibility
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
ok its done, but how do i tell its decrypted? perhaps by the way that all timestamps are gone?
and in your 3ds rom tools how do i extract the files of that .3ds file into windows readable files
clicking the 3 buttons do nothing, makes one folder with the name of the rom and inside that are 3 folders

decrypted
encrypted
unpacked

and inside of those are always empty even after i click
extract exheadder, extractexefs and extract romfs
the buttons do nothing. i even ran as administrator and as windows 8 and windows 7 compatibility
hmm... yeah i think the timestamps disappear after it's decrypted on the 3ds.
As for extracting it, it should be as simple as opening the rom with the browse button, then pressing each extract button, then each unpack button after that.
Then all the extrtacted files will be in the unpacked sub folder of the game folder.

Some people have had issues with that version of ctrtool not working for them for some reason (not sure why) and apparently this version worked for them. https://gbatemp.net/attachments/ctrtool-rar.10457/ so maybe try replacing ctrtool.exe with that one and see how you go.
 
  • Like
Reactions: xdarkmario

xdarkmario

Philosopher
OP
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,576
Country
United States
hmm... yeah i think the timestamps disappear after it's decrypted on the 3ds.
As for extracting it, it should be as simple as opening the rom with the browse button, then pressing each extract button, then each unpack button after that.
Then all the extrtacted files will be in the unpacked sub folder of the game folder.

Some people have had issues with that version of ctrtool not working for them for some reason (not sure why) and apparently this version worked for them. https://gbatemp.net/attachments/ctrtool-rar.10457/ so maybe try replacing ctrtool.exe with that one and see how you go.
yep that fixed it.
and for future references how would i recompile it back to a .3ds or .cia?
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
  • Like
Reactions: xdarkmario

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    The Real Jdbye @ The Real Jdbye: @K3Nv2 you mean the bricker?