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

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

W4T4R1

Well-Known Member
Member
Joined
Aug 20, 2014
Messages
463
Trophies
0
XP
1,209
Country
Italy
how do I do that I'm a noob soz.do I put the sd card in pc and add file there.
Download the latest D9 release, take the Decrypt9WIP.bin file and paste it into luma/payloads folder.
If you have Luma3DS 6.6 stable rename the file to start_Decrypt9WIP.bin, or the button you prefer.
If you have one of the latest nightly of Luma3DS, you don't need to rename it since, pressing START at the boot, a chainloader menu will appear, letting you start the payload you want
 

ozzy8143

Well-Known Member
Newcomer
Joined
Jun 5, 2016
Messages
90
Trophies
0
Age
42
XP
48
Country
Download the latest D9 release, take the Decrypt9WIP.bin file and paste it into luma/payloads folder.
If you have Luma3DS 6.6 stable rename the file to start_Decrypt9WIP.bin, or the button you prefer.
If you have one of the latest nightly of Luma3DS, you don't need to rename it since, pressing START at the boot, a chainloader menu will appear, letting you start the payload you want


thank you very much for your help

--------------------- MERGED ---------------------------

one more question .I have a 3ds rom file to convert to cia.how do I find it in decrypt9
 
  • Like
Reactions: W4T4R1

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
It didn't work. It gives the same kind of file as Decrypt9WIP-20170115-230509 version. It says something like update error log. It's a bit broken up, but I can sort of make it out. It says rand seed (random seed I assume), native log, and it goes on... local friend code, secure info, etc.

I tried it on 2 systems. Both with same results. When I use Decrypt9WIP-20161113-135126, it gives me the properly processed enctitlekey.bin.

I'm using N3DS 11.3.0-36U with Luma3DS nightly (92ec2af5) with a9lh (Aurora's 4fc9ad8 from 20161017 with data input v4). It's just on SD, not on CTRNAND. Could that be an issue? I know you updated it to work with CTRNAND.

I assume the date of the dumps, including NAND, is always wrong because a9lh doesn't use the clock and it defaults to some date? Would it be possible to use the system date? I assume it's like a PC where it's set in the BIOS. It's set somewhere. Not sure if it's easy to access on a9lh.
I have an idea what goes wrong there. Expect a new test build shortly.
 
  • Like
Reactions: pixelmasher

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Does nobody have an explanation to my question regarding aeskeydb.bin and the keys?
I would assume @d0k3 knows about this stuff?
The aeskeydb.bin file is a database, it can contain any number of 1 to X keys. You need a good one, and a good one at least contains 0x25keyX, 0x18keyX and 0x1BkeyX. Good stuff if it also contains 0x05keyY, 0x24keyY, 0x11key95 and 0x11key96. Basically everyone has a very good one, because basically everyone installed A9LH using a certain guide (no more hints given). If you search further, I'm pretty sure you will even find aeskeydb.bins that contain all known keys. Not that it'd be any more useful, but certain people are completionists.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
It didn't work. It gives the same kind of file as Decrypt9WIP-20170115-230509 version. It says something like update error log. It's a bit broken up, but I can sort of make it out. It says rand seed (random seed I assume), native log, and it goes on... local friend code, secure info, etc.

I tried it on 2 systems. Both with same results. When I use Decrypt9WIP-20161113-135126, it gives me the properly processed enctitlekey.bin.

I'm using N3DS 11.3.0-36U with Luma3DS nightly (92ec2af5) with a9lh (Aurora's 4fc9ad8 from 20161017 with data input v4). It's just on SD, not on CTRNAND. Could that be an issue? I know you updated it to work with CTRNAND.

I assume the date of the dumps, including NAND, is always wrong because a9lh doesn't use the clock and it defaults to some date? Would it be possible to use the system date? I assume it's like a PC where it's set in the BIOS. It's set somewhere. Not sure if it's easy to access on a9lh.
Can you try this test build and tell me if it is solved for you?
https://transfer.sh/tUtyw/decrypt9wip-20170214-110915.zip

Also, file dates / times - nothing that we can do about this. We don't have access to the real time clock, so there's no way to have proper dates.
 

pixelmasher

Gaming Gamer
Member
Joined
Dec 12, 2016
Messages
1,668
Trophies
0
Location
Near N2DS XL
XP
961
Country
United States

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
image.jpeg

@d0k3 An unknown error on 2DS JPN 11.2.0-35 when processing Auto CTRNAND Transfer Step 5.
Autofix CTRNAND doesn't work either.
Don't know why it happens.
I restore the backup immediately after this error.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
View attachment 78390
@d0k3 An unknown error on 2DS JPN 11.2.0-35 when processing Auto CTRNAND Transfer Step 5.
Autofix CTRNAND doesn't work either.
Don't know why it happens.
I restore the backup immediately after this error.
That will need looking into. Do you still have that console and are you available for some testing? First of all, I'd need to know the contents of the CTRNAND:/data folder (that's 1:/data in GM9).
 

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
That will need looking into. Do you still have that console and are you available for some testing? First of all, I'd need to know the contents of the CTRNAND:/data folder (that's 1:/data in GM9).
I have to operate it on SafeHax/GM9 since it's 11.2.0-35J.
I'll post it 30 mins later.
 

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
@d0k3
CTRNAND:/data has:
- /ID0
- /ID0/extdata
- /ID0/sysdata
and so on.

ID0 is confirmed that the same as SD:/Nintendo 3DS/ID0.

Here is the snapshot (ID0 is partly censored)

snap000.png
 
Last edited by MelonGx,

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
@d0k3
Just checked the 2DS's NAND.BIN on S:/ with GM9 20170217 - It's 1,979,711,488 Bytes (1.84GB).
I chose NAND image options -> Verify file and it said "Header does not belong to device".
But actually it is the genuine NAND of this 2DS.
I verify my New3DS (1.84GB Toshiba NAND) with this option and it says "NAND validation success".
So I think it's a problem that D9 cannot recognize 1.84GB NAND on 2DS properly.
 

Columbo2811

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
1,399
Trophies
0
XP
1,064
Country
@d0k3
Just checked the 2DS's NAND.BIN on S:/ with GM9 20170217 - It's 1,979,711,488 Bytes (1.84GB).
I chose NAND image options -> Verify file and it said "Header does not belong to device".
But actually it is the genuine NAND of this 2DS.
I verify my New3DS (1.84GB Toshiba NAND) with this option and it says "NAND validation success".
So I think it's a problem that D9 cannot recognize 1.84GB NAND on 2DS properly.
2ds don't have 1.84gb nands
 

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
Since @Columbo2811 doubted if I was lying, I uploaded these pictures.
Here is the 2DS.
GodMode9 shows its NAND is 1.84GB.
IMG_5328.JPG
Here are another two consoles.
This O3DS has a 954MB NAND.
IMG_5329.JPG
This N3DSLL has a 1.21GB NAND.
IMG_5330.JPG
This shows that GodMode9 does have the function to judge the ACTUAL NAND size.
 
Last edited by MelonGx,
  • Like
Reactions: Columbo2811

GerbilSoft

Well-Known Member
Member
Joined
Mar 8, 2012
Messages
2,395
Trophies
2
Age
34
XP
4,249
Country
United States
1.84 GB NAND on 2DS is in fact a thing. (They started using New3DS NAND chips on later 2DSes, probably due to running out of Old3DS chips.)

The header specifically refers to the first 512 bytes (NCSD header) and shouldn't have anything to do with the file size.
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
@d0k3
Just checked the 2DS's NAND.BIN on S:/ with GM9 20170217 - It's 1,979,711,488 Bytes (1.84GB).
I chose NAND image options -> Verify file and it said "Header does not belong to device".
But actually it is the genuine NAND of this 2DS.
I verify my New3DS (1.84GB Toshiba NAND) with this option and it says "NAND validation success".
So I think it's a problem that D9 cannot recognize 1.84GB NAND on 2DS properly.
1.84 GB NAND on 2DS is in fact a thing. (They started using New3DS NAND chips on later 2DSes, probably due to running out of Old3DS chips.)

The header specifically refers to the first 512 bytes (NCSD header) and shouldn't have anything to do with the file size.
Agreed. And there is actually almost no way that check can fail... Can you perhaps post the twlmbr.bin file from that 2DS? Don't worry, there's no identifying or unique info in there and it's only ~64 byte.
 

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
I found another O3DS also failed on NAND verification.
But that O3DS's CTRNAND can be autofixed.
So maybe the fixing CMAC problem is not related to NAND verification?

@d0k3
I changed safehaxpayload.bin into D9WIP 20170214.
This time Autofix CTRNAND can be processed, but freezes at processing SeedSave.bin over 10 mins.
image.jpeg
(BTW, Safehax/D9WIP's "EmuNAND options" is displayed as "EmuMyu('Myu' is the greek alphabet)".)
image.jpeg
 
Last edited by MelonGx,

MelonGx

Well-Known Member
Member
Joined
Jan 8, 2009
Messages
1,653
Trophies
1
XP
915
Country
China
@d0k3 2DS problem resolved.
I use Safehax/D9-20161113-release (which ignores that error) to make the CTRNAND transfer successful.

D9WIP 20161113's Autofix CTRNAND never caused any freeze and gave a result of no fixing CMAC errors.
So is the failure possibly from the over-strict of latest D9WIP's new CTRNAND transfer check?
 
Last edited by MelonGx,

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,395
Trophies
1
Location
New York
XP
12,889
Country
United States
@d0k3 Is it possible to select a specific directory when decrypting cia files? When using ciangel to download cia files on 3DS, i have to move it to the files9 folder just to decrypt it which require double size on sd card for the file to copy with fbi installer. So it would be easier to just have option to select directory or even file to decrypt instead of auto decrypt files9 folder.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: Mkay.