ROM Hack Question Could the files found in /Nintendo/save/ on the microSD card hold any relevance to Switch hacking?

Bug_Checker_

Well-Known Member
Member
Joined
Jun 10, 2006
Messages
950
Trophies
0
XP
664
Country
United States
i took a brand new card placed in the switch i opened the 8000000000000124 file and i found : res/drawable-xxxhdpi-v4/zw02.qmg
vzwpc9.jpg
It appears you have found a pk zip file(starting 0X11B3931 [50 4B 03 04]).
It looks like you need version 1.0 (0x0A) or greater to open the file.
The file zw02.qmg is in res/drawable-xxxhdpi-v4/ .
The file is uncompressed so both file sizes(packed and uncompressed) are 1,286,671 bytes [00 13 A2 0F].
The CRC32 is 9F058259.
The length of the name is 32 bytes (0x20).
The other numbers are time and date.(before the CRC32)
 

studio1b

Well-Known Member
Member
Joined
Mar 14, 2009
Messages
146
Trophies
1
Age
43
Location
NEW YORK CITY
XP
444
Country
United States
only device the card was used on was a win 7 machine to format it and then stuck it in the switch.

file has to be part of the switch as the header of it is the same as all the switch file headers
: NAX0
 
Last edited by studio1b,

Sketchy1

gbatemp's shadiest warez dealer
Member
Joined
Aug 9, 2016
Messages
1,553
Trophies
0
Age
25
XP
651
Country
United States
I have no idea if this would help but what about hooking up a sd card/usb sniffing hardware?
that would tell us nothing more then what it is writing mostly, and at what times because the fact is, the data is still encrypted

but theoretically speaking, it might tell us how it decrypts them when it does it (astronomically slim chance imo though...)
 

dubbz82

Well-Known Member
Member
Joined
Feb 2, 2014
Messages
1,572
Trophies
0
Age
41
XP
1,216
Country
United States
(astronomically slim chance imo though...)

Gotta remember what company we're dealing with. Nintendo couldn't even manage to implement RSA correctly on a console (the 3ds) after having a previous failure in implementing RSA (the wii). It's worth a stab, imo.
 

kylemsguy

Member
Newcomer
Joined
Mar 5, 2017
Messages
7
Trophies
0
Age
28
XP
81
Country
Canada
So I was discussing this issue with a friend, and he has the theory that the cause of other files appearing in the Nintendo Switch's files could be due to the way it implements functionality similar to Linux's ftruncate. ftruncate is a function that truncates a file to a specified length, and the Nintendo Switch could be using this to extend the length of these files. Now, since FAT32 (not sure about exFAT; perhaps someone try this with an SDXC card that was once in a smartphone?) does not support sparse files, the OS has to pre-allocate the space to the files. Normally, the OS should initialize this new space to NULs (0's), but in the interest of speed, perhaps Nintendo omitted that favour for performance in their implementation of this functionality. From what I've seen here, everyone who's tested has done a quick format, which does not wipe the old files' contents. Because of this, there is a high chance that the previous files' data still remain in this new segment of the file.

TL;DR: this data could be left over from a previous format as a result of an implementation detail, and any foreign, recognizable data is probably a red herring.
 
Last edited by kylemsguy,

DerpyEagle

Member
OP
Newcomer
Joined
Jul 4, 2015
Messages
14
Trophies
0
Age
27
XP
125
Country
Canada
So I was discussing this issue with a friend, and he has the theory that the cause of other files appearing in the Nintendo Switch's files could be due to the way it implements functionality similar to Linux's ftruncate. ftruncate is a function that truncates a file to a specified length, and the Nintendo Switch could be using this to extend the length of these files. Now, since FAT32 (not sure about exFAT; perhaps someone try this with an SDXC card that was once in a smartphone?) does not support sparse files, the OS has to pre-allocate the space to the files. Normally, the OS should initialize this new space to NULs (0's), but in the interest of speed, perhaps Nintendo omitted that favour for performance in their implementation of this functionality. From what I've seen here, everyone who's tested has done a quick format, which does not wipe the old files' contents. Because of this, there is a high chance that the previous files' data still remain in this new segment of the file.

TL;DR: this data could be left over from a previous format as a result of an implementation detail, and any foreign, recognizable data is probably a red herring.

Yup, this seems to be the case. I think that your and @Selver 's answers are correct, and I'm just glad that I got my question answered at all. Earlier, when I safe formattted an SD card, there were no out of place strings on it, just encrypted data. It probably just is wonky file allocation.
 

GerbilSoft

Well-Known Member
Member
Joined
Mar 8, 2012
Messages
2,395
Trophies
2
Age
35
XP
4,278
Country
United States
So I put a microSD card in my Switch, and checked the file /Nintendo/save/8000000000000000 :
80 KeyX: loaded, verified, set up
9f Finalizing Initialization...
bd Initialization: success!
d7 You selected "SysNAND Restore".
f7 This feature writes to the SysNAND.
11b Data will be overwriten, keep backups!
143 If you wish to proceed, enter:
162 <Left>, <Up>, <Right>, <Up>, <A>
184 (B to return, START to reboot)
Now, I'm pretty sure the Switch doesn't bundle a copy of Decrypt9WIP or Hourglass9. However, the card in question *did* have copies of those before. So it's fairly obvious what's happening: The Switch OS is allocating space on the card, but it isn't zeroing it out. Everything in that file (except maybe the headers?) is leftover content from previously-deleted files.
 
Last edited by GerbilSoft, , Reason: s/Micro SD/microSD/
  • Like
Reactions: -pm-

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • T @ Texasauras:
    bro have you seen the gfuel instagram
  • BigOnYa @ BigOnYa:
    @Texasauras why did you start a thread, ignored all the answers there, then come here to chat and ask the same thing. You gotta be like 12, bro
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Biker Mice from Mars needed a Sequel, Angry Hamsters from Uranus
  • T @ Texasauras:
    uh bro i was just asking have you seen these, help me look
  • T @ Texasauras:
    its on amazon
  • Psionic Roshambo @ Psionic Roshambo:
    Download Batocera make it your own
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    If you want GC PS2 Wii stuff like that use a PC
    +1
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, i also use my tv stick to watch YouTube and streaming services
    +1
  • BigOnYa @ BigOnYa:
    Psi those play well on the Pi5 now...
  • BigOnYa @ BigOnYa:
    @Xdqwerty yep that's what I use my stick for most anymore, streaming tv shows, movies. or even youtube. Or doing kens mum.
    +1
  • K3Nv2 @ K3Nv2:
    RG Cube is going to be good for ps2 if it's $100
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and since the default emulator is below average i downloaded some "replacements" like snes9x for snes games for example
    +1
  • Xdqwerty @ Xdqwerty:
    And I also have my ps3
    +1
  • BigOnYa @ BigOnYa:
    Yea ps3 is a beast still to today compared to most "sticks"
  • K3Nv2 @ K3Nv2:
    If you just want pi for emulation no point when Anbernic releases new shit every two seconds
    +1
  • BigOnYa @ BigOnYa:
    What's really cool about Pi's tho is you can have multiple SD cards with different OS on each SD card and change from say a gaming machine to a full fledged pc if wanted
  • K3Nv2 @ K3Nv2:
    Plus all bios are set up and usually includes at least 128gbs or 64
  • K3Nv2 @ K3Nv2:
    Yeah but if your main goal is just to play n64 and GameCube you can save about $50 and have the portability option
    +1
  • BigOnYa @ BigOnYa:
    True, but on 2 monitors at 4k. Its just want you want really, to each they own.
  • K3Nv2 @ K3Nv2:
    For a kids aspect Anbernic would be the better option they'd probably melt over the price on a good 4k display
    +1
  • BigOnYa @ BigOnYa:
    For that texasroo guy, I'd recommend the Spell and speak as his first system.
    +1
  • K3Nv2 @ K3Nv2:
    So they buy a pi5 kit for about $150 and say a 28" 4k display probably looking around $400 total
  • K3Nv2 @ K3Nv2:
    They'll be getting in the territory of portable Pcs anyway
  • BigOnYa @ BigOnYa:
    Again you get what you pay for, its like buying a S series for $300 but its only 1440p native, if you want true 4k, gotta get the X model for $500. But yea you right, when moms buying it anyways, you gotta stay cheap.
    BigOnYa @ BigOnYa: Again you get what you pay for, its like buying a S series for $300 but its only 1440p native...