Homebrew Official [Download] Decrypt9 - Open Source Decryption Tools (WIP)

  • Thread starter d0k3
  • Start date
  • Views 840,476
  • Replies 4,476
  • Likes 71

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
@bbsniua
你的意思是 我们可以 手工注入 虚拟系统NAND 的 title.db 和 title 文件夹 到真实系统NAND 来升级真实系统?
但你的研究有个前提,就是要能 dump FAT16 XORPAD。我们仍然无法在特定机器(比如N3DS 8.1)上 dump 它。

Do you mean that we can manually inject emuNAND's higher version "title.db" & "title folder" into SysNAND to perform a SysNAND upgrade?
But all your research is based on dumping FAT16 XORPAD. We still can't use it on specific consoles such as N3DS 8.1.0-0J.
 
Last edited by MelonGx,
  • Like
Reactions: Dean_

bbsniua

Member
Newcomer
Joined
Oct 19, 2015
Messages
16
Trophies
0
Age
37
XP
52
Country
Switzerland
@bbsniua
你的意思是 我们可以 手工注入 虚拟系统NAND 的 title.db 和 title 文件夹 到真实系统NAND 来升级真实系统?
但你的研究有个前提,就是要能 dump FAT16 XORPAD。我们仍然无法在特定机器(比如N3DS 8.1)上 dump 它。

Do you mean that we can manually inject emuNAND's higher version "title.db" & "title folder" into SysNAND to perform a SysNAND upgrade?
But all your research is based on dumping FAT16 XORPAD. We still can't use it on specific consoles such as N3DS 8.1.0-0J.
虚拟系统下可以安装themehax,进入虚拟系统时按L可以进HBL菜单,可惜Decrypt9一样无法使用。
 

Dean_

Well-Known Member
Member
Joined
Sep 11, 2014
Messages
684
Trophies
0
XP
712
Country
虚拟系统下可以安装themehax,进入虚拟系统时按L可以进HBL菜单,可惜Decrypt9一样无法使用。
...Well, this forum is English-only. If you are going to use Chinese, talk each other via PM or visit Chinese forum like duowan..
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
This doesn't work, it aborts with an error when i try:
Code:
[CCI ERROR] Failed to decrypt CIA content: 0x00000000
[RESULT] Failed to build CCI
Okay, back to this one. I tried it myself (with the legit EUR CIA of MH4). You need to deep decrypt the CIA, or extract the first content from the shallow decrypted CIA and use NCCH decryptor on that. You could also use the shallow decrypted CIA and decrypt it further using deep decrypt (the shallow decryption is already finished, so that won't be done again). I'm sure it will work. If you want this to process much faster, use my newest sources and compile from there.

And yes, hash verification with CTRtool fails, but that seems to be some problem specific to CTRtool and the file size. The file is actually verified okay.
 
  • Like
Reactions: Dean_

Datalogger

Living the Dream
Member
Joined
Dec 21, 2009
Messages
416
Trophies
1
Location
Maui
XP
709
Country
United States
Hope it's OK to ask this, if not just ignore my question.
My ability to read Chinese is non-existent...

Is part of the idea behind this Decrypt9 enhancement a way to extract the proper xorpads from eShop titles that I purchase while running my emuNAND?
So far I don't see a way to do this once the nands are un-linked and my only access to eShop is via emuNand.
 
Last edited by Datalogger,

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
You can ignore those Chinese articles.
What we discussed has already finished.
We have several researches on injecting emuNAND files to SysNAND but Decrypt9 UI's ROP doesn't support 8.1.0-0J that makes us can't continue the research any further.
So we ended up the discussion.

For dumping installed emuNAND APP's XORPAD, I don't know whether Decrypt9 can do it or not.
How about rxTools?
 
Last edited by MelonGx,

Datalogger

Living the Dream
Member
Joined
Dec 21, 2009
Messages
416
Trophies
1
Location
Maui
XP
709
Country
United States
You can ignore those Chinese articles.
What we discussed has already finished.
We have several researches on injecting emuNAND files to SysNAND but Decrypt9 UI's ROP doesn't support 8.1.0-0J that makes us can't continue the research any further.
So we ended up the discussion.

For dumping installed emuNAND APP's XORPAD, I don't know whether Decrypt9 can do it or not.
How about rxTools?
I figured out a way to stop it in-process while creating the 1099 xorpads for all of my eShop so I could find out if it was working or not and.... it works!!

I created the SDInfo.bin by pointing SDgen.bat to the emuNand's Nintendo 3DS directory on my internal SD card
Launched CN then Decrypt9WIP
Selected emuNAND File Options
Dumped the Tickect_emu.db + moveable.sed + SecureInfo.A and the seedsave.bin (figure all I needed was the moveable.sed, but why not grab everything while I was in there)
backed out to the Main Menu
Selected XORpad Options
SDPadgen .....

It saw the moveable.sed, opened up the SDInfo.bin and created all of the proper XORPads I needed for the emu!
 
Last edited by Datalogger,
  • Like
Reactions: d0k3 and MelonGx

Krude

Well-Known Member
Member
Joined
May 18, 2013
Messages
344
Trophies
0
XP
1,198
Country
Gambia, The
So, for the record, a deep-decrypted CIA still fails with Makerom's -ciatocci option. Same error as the shallow decrypted one.

I'll try ctrtool's content extraction (this makes CXI i think) on the deep-decrypted one now, this should hook me up with the game contents already decrypted, right? Maybe i can finally take a look into that romfs now. Wish me luck.
 
  • Like
Reactions: d0k3

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Hope it's OK to ask this, if not just ignore my question.
My ability to read Chinese is non-existent...

Is part of the idea behind this Decrypt9 enhancement a way to extract the proper xorpads from eShop titles that I purchase while running my emuNAND?
So far I don't see a way to do this once the nands are un-linked and my only access to eShop is via emuNand.
I can't give you full instructions, but yes, this can be used to decrypt eShop titles you bought on EmuNAND. It can even be used to extract the seed, if the title you want to decrypt uses seed crypto. EDIT: Whoops, already solved :).
So, for the record, a deep-decrypted CIA still fails with Makerom's -ciatocci option. Same error as the shallow decrypted one.

I'll try ctrtool's content extraction (this makes CXI i think) on the deep-decrypted one now, this should hook me up with the game contents already decrypted, right? Maybe i can finally take a look into that romfs now. Wish me luck.
Good luck! :) Let me know how it goes.
 
Last edited by d0k3,

Krude

Well-Known Member
Member
Joined
May 18, 2013
Messages
344
Trophies
0
XP
1,198
Country
Gambia, The
Well, successfully (i think) extracted the exheader, exefs and romfs.
There's just the tiny problem of ctrtool crashing when i let it extract the romfs. After 6.397 extracted files (~665 MB of 2592 MB total) it just unceremoniously stops working. Man, i didn't think it would be this difficult to just get at a game's files. :(

Is there any other tool that allows me to browse or extract a romfs?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Well, successfully (i think) extracted the exheader, exefs and romfs.
There's just the tiny problem of ctrtool crashing when i let it extract the romfs. After 6.397 extracted files (~665 MB of 2592 MB total) it just unceremoniously stops working. Man, i didn't think it would be this difficult to just get at a game's files. :(

Is there any other tool that allows me to browse or extract a romfs?
I hope you find an answer to that. You could also open an issue on profi200s Github. I think most of the issues you had concern files above a certain size.

EDIT: And, I repeat it again. If Decrypt9 didn't give you an error when extracting the CIAs, they are guaranteed to be good. The verification routines don't allow anything else (waiting that long has to be good for something ;)). The NCCH decryptor routines also have verification, but these only process some parts of the file.

EDIT2: If the trouble persists, you could also try decrypting the first content via ncchinfo_gen.py, NCCH padgen and xorer.
 
Last edited by d0k3,

Krude

Well-Known Member
Member
Joined
May 18, 2013
Messages
344
Trophies
0
XP
1,198
Country
Gambia, The
I'm p. sure the decryption is all good at this point, i just gotta find a way to actually get at the files in there. I know it has to be possible, seeing how datamined the game already is.

Sadly i can't actually open an issue on profi200's github. The option is just not there for me.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
I'm p. sure the decryption is all good at this point, i just gotta find a way to actually get at the files in there. I know it has to be possible, seeing how datamined the game already is.

Sadly i can't actually open an issue on profi200's github. The option is just not there for me.
Ah, I don't see the issues options either... You could also try making a new thread especially for that (extracting very large romfs), maybe more people will see it then and give helpful advice.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Would it be possible to add dump and/or inject emunand as an option?
It is not in the main release, but can be unlocked via a #define. It is not tested enough now, and the first round of tests by @key1340 didn't go well (corrupted files). You can unlock it yourself, if you #define EXPERIMENTAL in common.h. If you do, and you also test it, could you give me some feedback?
 
  • Like
Reactions: zoogie

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Yeah I wanted to see shards of the titanic
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
    Veho @ Veho: SO POWERLESS