Hacking How can I decrypt nand sysdata saves (Mii Maker, Mii Plaza, etc.)

SOGAZG

Member
OP
Newcomer
Joined
Apr 13, 2020
Messages
10
Trophies
0
Age
23
XP
80
Country
Mexico
Hi, I have a nand backup of an old 3ds I had. This 3ds got lost. Thank god I got the backup and now I've recovered everything, from old data, to the sd card encrypted game save data (using movable.sed and other tools).

Now, next, I'm looking to recover my Mii Maker and Mii Plaza save files. Using ninfs, I decrypted my nand.bin, and in the ctrnand_full.img I got to the sysdata folder where this save data is stored. Now, my final goal is to be able to open these saves on citra. On citra I already installed all system cias (system settings, mii plaza, mii maker, etc.) and I got the folder where they store the saves. When I go in the sysdata folder from citra, and enter the game folder, instead of a 00000000 file with no extension, there is a folder with the same name and a "editSaveData.bin" file inside. I suppose this is the decrypted version of the 00000000 file on my Nand sysdata.

Mii Maker:
My Nand Backup:
1681433732366.png


Citra:
1681433663245.png



I want to know if there is a way to decrypt this type of files without having to use the original 3ds (since I no longer have it). I tried using tools like three sd to transfer everything to citra, but I got stuck in the part where I need to execute the threeSDumper.gm9 on the 3ds (because I don't have it).

If you need me to clear something up to help you understand please let me know.

Any help would be appreciated :)
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,473
Country
Canada
When I go in the sysdata folder from citra, and enter the game folder, instead of a 00000000 file with no extension, there is a folder with the same name and a "editSaveData.bin" file inside. I suppose this is the decrypted version of the 00000000 file on my Nand sysdata.
That's a broad assumption.

According to https://www.3dbrew.org/w/index.php?title=Mii_Maker&mobileaction=toggle_view_desktop , if you open editSaveData.bin in Notepad, and it's decrypted, you should see the word "TIDE" right at the start. Does that apply to both your editSaveData.bin and this 00000000 file?

Failing that, do you see the word "DISA" or "DIFF". as per https://www.3dbrew.org/wiki/DISA_and_DIFF ?

You are also probably going to need the information in https://www.reddit.com/r/3dshacks/comments/70gwgu/everything_you_wanted_to_know_about_the_3ds_but/ sooner or later.
 

SOGAZG

Member
OP
Newcomer
Joined
Apr 13, 2020
Messages
10
Trophies
0
Age
23
XP
80
Country
Mexico
That's a broad assumption.

According to https://www.3dbrew.org/w/index.php?title=Mii_Maker&mobileaction=toggle_view_desktop , if you open editSaveData.bin in Notepad, and it's decrypted, you should see the word "TIDE" right at the start. Does that apply to both your editSaveData.bin and this 00000000 file?

Failing that, do you see the word "DISA" or "DIFF". as per https://www.3dbrew.org/wiki/DISA_and_DIFF ?

You are also probably going to need the information in https://www.reddit.com/r/3dshacks/comments/70gwgu/everything_you_wanted_to_know_about_the_3ds_but/ sooner or later.
In the citra one (editSaveData.bin) shows TIDE at the start, and in mine (file 00000000) shows DISA & DIFI.

What does this mean?
 

SOGAZG

Member
OP
Newcomer
Joined
Apr 13, 2020
Messages
10
Trophies
0
Age
23
XP
80
Country
Mexico
I have the program downloaded. Now, I ran the disa-extract.py without arguments and this is what it shows me:
1681706818238.png

Now, for this specific case
1st: Do I need to provide secrets.py?
2nd: Which arguments should I run disa-extract.py with? (I guess in this case is input: my save file 00000000, output: output folder, and -nand)
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,473
Country
Canada
Now, for this specific case
1st: Do I need to provide secrets.py?
2nd: Which arguments should I run disa-extract.py with? (I guess in this case is input: my save file 00000000, output: output folder, and -nand)

There is already a suitable example on the page.
Code:
./disa-extract.py \
    "sdmc/gm9out/00000001.sav" \
    "output/savedata"

This extracts game save data that has been decrypted using GodMode9 (or any other tools) to folder output/savedata.

(The backslashes are unnecessary; you can just enter everything on one line.)
 

SOGAZG

Member
OP
Newcomer
Joined
Apr 13, 2020
Messages
10
Trophies
0
Age
23
XP
80
Country
Mexico
Well no mentioning it still leaved me in blank. In my shoes idk if you do not saw that part, or by not mentioning it, it is not necessary. But no problem, it worked perfectly. Thank You so much for helping me :)
 

Rude_Boy_EEEE

Member
Newcomer
Joined
May 18, 2015
Messages
22
Trophies
0
Age
27
Location
NJ, USA
XP
130
Country
United States
Well no mentioning it still leaved me in blank. In my shoes idk if you do not saw that part, or by not mentioning it, it is not necessary. But no problem, it worked perfectly. Thank You so much for helping me :)
How'd you end up doing it? I can't seem to understand Python well enough to do this...
 

DaniElectra

Member
Newcomer
Joined
Jul 11, 2023
Messages
5
Trophies
0
XP
106
Country
Spain
How'd you end up doing it? I can't seem to understand Python well enough to do this...
Coming almost a year later, but assuming you have Python installed, you can just open a command prompt on the same folder where you download the tool and run:

python3 disa-extract.py input_file output_folder

Where input_file would be the sysdata save and output_folder is the folder where the save data will be extracted. The secrets.py part isn't required
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    I was at the bar for 1 hour and lost $40 playing pool, and said well that's enough for my unlucky day, better quit. Some sharks up there today.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, did you get drunk?
  • BigOnYa @ BigOnYa:
    No I don't drink much when i goto bar, cause I driving, or if/when I do, ill take a uber/cab home. But I'm working on it now tho I'm home, beer n whiskey shots today.
  • K3Nv2 @ K3Nv2:
    He's afraid he might wake up next to ancientboi the next day
    +1
  • BigOnYa @ BigOnYa:
    What a "Scared Straight" moment that would be.
  • BigOnYa @ BigOnYa:
    A friend give me a $35 cigar, and pssf, just as good as a $5 one. But of course gonna have to tell him it was awesome.
  • Psionic Roshambo @ Psionic Roshambo:
    What makes a good Cuban rum soaked cigar is a nice cosmopolitan to go with it.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Used to do that every time I went to Miami on business
  • Psionic Roshambo @ Psionic Roshambo:
    There was this little bar I would stop in have that combo and watch the beach
    +1
  • BigOnYa @ BigOnYa:
    I've never met a girl named cosmopolitan, but cool. And where do you insert the cigar? Mr clinton
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly more than 35 dollars lol but I was making thousands on a job.
  • Psionic Roshambo @ Psionic Roshambo:
    Cosmopolitan is just vodka and cranberry juice lol
  • Psionic Roshambo @ Psionic Roshambo:
    I'm a martini glass
  • K3Nv2 @ K3Nv2:
    My dental assistant is Cuban I'm gonna have to him for cigars and sandwiches now
    +1
  • BigOnYa @ BigOnYa:
    Yea wish I could get Cubans cheap, they are ridiculous priced up here. But they are hard workers.
  • Psionic Roshambo @ Psionic Roshambo:
    I think I was paying like 75 back in the early 90s
  • Psionic Roshambo @ Psionic Roshambo:
    Rolled on the thighs of virgins if the stories are to be believed
  • K3Nv2 @ K3Nv2:
    I don't think we belive any of your stories
  • Psionic Roshambo @ Psionic Roshambo:
    That's honestly for the best lol
  • BigOnYa @ BigOnYa:
    I'd read his autobiography.
  • K3Nv2 @ K3Nv2:
    "If I may have done it."
  • Psionic Roshambo @ Psionic Roshambo:
    I'm deliberately vague about some of the details sure it's been 30 years but some crimes don't have limitations
  • K3Nv2 @ K3Nv2:
    Psis sex life is Dubai
    FB-IMG-1717887564361.jpg
    Psionic Roshambo @ Psionic Roshambo: Lol