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

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

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
emunand: the NCSD header (first 0x200 bytes of nand) is moved to about 1 GB (3BA00000 old3ds physical offset) in the sdmc card.
the rest of the nand (offset 0x200 and beyond) starts at sdmc physical offset 0x200 and continues uninterrupted to the end of the nand

With rednand, the entire nand is contiguous, essentially idenical to the sysnand image. It is placed anywhere in the unallocated sdmc region.

Ahh there you go then, was hoping someone would clear that up because i couldn't really remember. haha :)
 

zoogie

playing around in the end of life
Developer
Joined
Nov 30, 2014
Messages
8,560
Trophies
2
XP
15,000
Country
Micronesia, Federated States of
Ahh there you go then, was hoping someone would clear that up because i couldn't really remember. haha :)
I would just add that the NCSD offset in emunand can sometimes be at 3AF00000, which is likely the source of some of the emunand detection problems I hear about. The offset is also different for n3ds of course, but the same general structure applies.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Alright, finally a new release.
And, for the tinkerers:
As for the hidden NAND_SWITCH feature - that enables switching between EmuNAND and SysNAND. According to previous tests, EmuNAND access is unreliable and needs more testing. As long as you don't write to EmuNAND, nothing bad will happen though. Also, be careful with stuff dumped from EmuNAND and don't use anything on EmuNAND if you don't have an EmuNAND installed on your SD card.

In short: NAND_SWITCH is not dangerous in itself, but accessing EmuNAND is unreliable, while DANGER_ZONE (on SysNAND) is reliable, but dangerous if the user makes an error. Hope that makes sense.

@Shadowtrance :
If you want to include NAND_SWITCH in the GUI version, you hace some work ahead of you. You'll need to edit DrawSplashLogo() to also display the current NAND, and you have to make the new SetNand() function work in the menu. Maybe it's better to wait until it is better tested? I will come up with a cleaner implementation later.
Cool. :) Got that partly done already as seen in the pic below, think i got the placement alright.
And I'll look at the rest when it isn't 4am, unless you beat me to it. haha :P
m7TRveT.jpg
 
  • Like
Reactions: d0k3

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
emunand: the NCSD header (first 0x200 bytes of nand) is moved to about 1 GB (3BA00000 old3ds physical offset) in the sdmc card.
the rest of the nand (offset 0x200 and beyond) starts at sdmc physical offset 0x200 and continues uninterrupted to the end of the nand, stopping just short of the NCSD header.

With rednand, the entire nand is contiguous, essentially idenical to the sysnand image. It is placed anywhere in the unallocated sdmc region.
Alright, didn't know that. Everyone enabling the NAND_SWITCH option hast to be careful. What @zoogie wrote means that NAND backup and NAND restore will not work properly for EmuNAND yet. There won't be any trouble with anything else, though.

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

I would just add that the NCSD offset in emunand can sometimes be at 3AF00000, which is likely the source of some of the emunand detection problems I hear about. The offset is also different for n3ds of course, but the same general structure applies.
So, any way to detect where the NCSD offset actually is at?
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
Well i give up... i can't get the switching to work cause I'm a noob. :( lol

Also, not sure how you got your latest version to compile without including fatfs/sdmmc.h in decryptor.c because it errors out and fails if it isn't included. :P
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
Well i give up... i can't get the switching to work cause I'm a noob. :( lol

Also, not sure how you got your latest version to compile without including fatfs/sdmmc.h in decryptor.c because it errors out and fails if it isn't included. :P
I'll take a look later, alright? Keep in mind that it doesn't work properly yet (no NAND backup / restore, and everything else unreliable according to the last round of tests).
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
I'll take a look later, alright? Keep in mind that it doesn't work properly yet (no NAND backup / restore, and everything else unreliable according to the last round of tests).
Yeah cool. I was just trying to add it myself, but clearly I'm missing something (as I've said many times, I'm not the code guy lol still figuring things out as i go), I'm the graphics and hardware guy. :)
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
hah! nice pics :) Wish i could get my hands on capture card that doesn't cost what a new console does...

@d0k3 Messing with minimizing the drawstring text on main menu top screen.... most of it is actually in the image.

Thoughts? not the best pic (camera flat, phone camera not great).

NsEjwt2.jpg
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
hah! nice pics :) Wish i could get my hands on capture card that doesn't cost what a new console does...

@d0k3 Messing with minimizing the drawstring text on main menu top screen.... most of it is actually in the image.

Thoughts? not the best pic (camera flat, phone camera not great).

NsEjwt2.jpg

The placement and the mix of fonts looks a little... off. If the placement was better, it could work, though. The (X) should be in the "current NAND" font, btw. I think there is little use in mimizing the DrawString text, though. And the UI will be less flexible this way.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
The placement and the mix of fonts looks a little... off. If the placement was better, it could work, though. The (X) should be in the "current NAND" font, btw. I think there is little use in mimizing the DrawString text, though. And the UI will be less flexible this way.

Yeah true, was just an idea i was toying with that isn't that great anyway lol and yeah i guess it would make it less flexible too.
I'll just find a nice spot for the nand switch and maybe use the new font color that matches the image text.


Edit: Anyway, new version(s) here with current changes (nand switch gone) but there is 2 separate versions and they display which version you're using on the top screen and also for the emunand version i made a change so that when you dump your ticket.db it will be called ticket_emu.db. Most people only want that part emunand compatible anyway, so thought I'd add that.

READ THE README.txt! :P

https://mega.nz/#!PZIygJiZ!1NCnQ6aOWQCyBxgh24-OO4RGHlwRQG63p4Iprql5pQY
 
Last edited by Shadowtrance,

pakrett

Well-Known Member
Member
Joined
Apr 6, 2015
Messages
1,519
Trophies
0
Age
34
XP
1,351
Country
France
I really want to know the way to decrypt an encrypted native-firm.bin or .cia like rxTools (2.6 & 3.0) does in the "installation data suite".
I tried the "dump system titles" option in the rxtools menu and after that it asked me if I want to decrypt them but the result files are not in the same format that the files into rxTools\data\ ...
I don't really undertand, so I need help. Can I do it with decrypt9 ?
I already posted my question here : https://gbatemp.net/threads/how-can...s-and-more-specifically-a-native-firm.395880/
 

k8099

Well-Known Member
Newcomer
Joined
Dec 15, 2014
Messages
59
Trophies
0
Age
36
XP
102
Country
Switzerland
Yeah true, was just an idea i was toying with that isn't that great anyway lol and yeah i guess it would make it less flexible too.
I'll just find a nice spot for the nand switch and maybe use the new font color that matches the image text.


Edit: Anyway, new version(s) here with current changes (nand switch gone) but there is 2 separate versions and they display which version you're using on the top screen and also for the emunand version i made a change so that when you dump your ticket.db it will be called ticket_emu.db. Most people only want that part emunand compatible anyway, so thought I'd add that.

READ THE README.txt! :P

https://mega.nz/#!PZIygJiZ!1NCnQ6aOWQCyBxgh24-OO4RGHlwRQG63p4Iprql5pQY

i want to know,is this version can backup&restore eumnand?(i mean if i use the emunand version)

when i try to backup eumnand,i get the nand.bin,i do not sure it is right thing.if it is eumnand backup,can you rename it with "emu" when decrypt9 creat it.
 

Shadowtrance

Well-Known Member
Member
Joined
May 9, 2014
Messages
2,493
Trophies
0
Location
Hervey Bay, Queensland
XP
1,807
Country
i want to know,is this version can backup&restore eumnand?(i mean if i use the emunand version)

when i try to backup eumnand,i get the nand.bin,i do not sure it is right thing.if it is eumnand backup,can you rename it with "emu" when decrypt9 creat it.
The emunand version is mainly for ticket.db dumping that people wanted.
For emunand backup/restore you're better off using the pc tool for that at the moment.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Sorry I sat on them when they were open
  • AncientBoi @ AncientBoi:
    eeewww
  • K3Nv2 @ K3Nv2:
    I thought it was the toilet
  • AncientBoi @ AncientBoi:
    okies. Time to go watch YT paranormal ghost things. L8er my luvs :D
    +1
  • K3Nv2 @ K3Nv2:
    I got a massive clue
  • BakerMan @ BakerMan:
    this mf def ain't watching ghost shit, he boutta beat his meat fr
    +1
  • K3Nv2 @ K3Nv2:
    Nah he's about to be the ghost in your bedroom
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, and leave ectoplasm all over the place
  • BakerMan @ BakerMan:

    this is him being described
    +2
  • Xdqwerty @ Xdqwerty:
    Sigh
  • Xdqwerty @ Xdqwerty:
    Yawn
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I dislike the kind of drm where you have to play single player games online all the time bc of some verification bs
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Don't use games that have Easy Anti-Cheat as its been exploited many times.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, my PC can't run most AAA games so i wont
    +1
  • Xdqwerty @ Xdqwerty:
    Most of the modern AAA games
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also heard one of the Prince of Persia games was so unfinished that it required the "24/7 online" drm so a puzzle could be done and the game could be finished. And that when the Ubisoft servers were closed the (cracked) game was impossible to finish or something like that
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's extra scummy. Ubisoft nowadays ship out incomplete games like Skull and Bones which was being worked on for nearly a decade now.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i think they have been doing that since late 2000s
    +1
  • Xdqwerty @ Xdqwerty:
    Either that or their old games were unfinished aswell but we can't notice it
  • Psionic Roshambo @ Psionic Roshambo:
    I like that games can be fixed after the fact, hate that it's being abused via beta tests... And DLC... I was a 7800 owner back in the day and loved Impossible Mission, turns out I couldn't beat it because it was actually impossible lol
  • Psionic Roshambo @ Psionic Roshambo:
    I never knew about it at the time but a fixed version was available but you had to mail in your broken copy lol
  • Psionic Roshambo @ Psionic Roshambo:
    So that version is semi rare
    Psionic Roshambo @ Psionic Roshambo: So that version is semi rare