Hacking Nintendo Switch's encrypted persistent file

Impossible_Igntiz

Well-Known Member
OP
Member
Joined
Nov 16, 2018
Messages
419
Trophies
0
Location
Bonerville
XP
1,169
Country
United States
I'm working on a uncensored mod for the Sakura games that are officially ported to the Nintendo Switch, been having alot of issues getting those titles specifically to work, copying and pasting doesn't work off the bat as their file/folder directory structure is very completely different to the Windows PC version's files... so i'd found out that the Switch's gallery .rpy file match that of the PC version with mention of adult folder and it's related .png files but of course that section goes disabled in-game and by just copying it doesn't work as it crashes the game automatically.

So i'd figure, if i could edit the persistent file from the Switch version and have the flag set it to True maybe then it can read it finally but one single problem is that the file is completely unreadable and i'm guessing it's encrypted somehow in someway....

Please to anybody that's more knowledgeable in this field can unencrypt it? Also if possible, can anyone take a look at ratacommon as well too? Thank You
 

Attachments

  • persistent.rar
    8.8 KB · Views: 32
  • ratacommon.rar
    1.1 KB · Views: 30

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,243
Trophies
3
XP
11,973
Country
Poland
Looking by eye persistent is compressed with zlib. No encryption seems to be in use.

The same with file in ratacommon starting at 0x2E, before that is a header which I assume has compressed and decompressed size included.
 
  • Like
Reactions: Impossible_Igntiz

Impossible_Igntiz

Well-Known Member
OP
Member
Joined
Nov 16, 2018
Messages
419
Trophies
0
Location
Bonerville
XP
1,169
Country
United States
Looking by eye persistent is compressed with zlib. No encryption seems to be in use.

The same with file in ratacommon starting at 0x2E, before that is a header which I assume has compressed and decompressed size included.
oh okay so it does in fact did used zlib compression in someway, would just normal decompression with any of the tools available could crack it open?

For right now, i'm gonna try using the hacBrewPack to re-pack the files with included adult files and see if i could get any sorta success with that.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,243
Trophies
3
XP
11,973
Country
Poland
In case of persistent standard zlib executable should be enough.
With second file issue complicates as you can easily decompress it by just deleting header, but compressing it back requires from you to put updated header to new file.
 
  • Like
Reactions: Impossible_Igntiz

Impossible_Igntiz

Well-Known Member
OP
Member
Joined
Nov 16, 2018
Messages
419
Trophies
0
Location
Bonerville
XP
1,169
Country
United States
In case of persistent standard zlib executable should be enough.
With second file issue complicates as you can easily decompress it by just deleting header, but compressing it back requires from you to put updated header to new file.
alright i'll keep that in mind, thank you very much! btw, re-creating the game via hacBrewPack refuse to boot the game.

is there anything you might know what i did wrong on my end?

this company sure knows what they're doing sheesh! it's not like anyone could easily get access to such files normally compared to the PC original...
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,243
Trophies
3
XP
11,973
Country
Poland
alright i'll keep that in mind, thank you very much! btw, re-creating the game via hacBrewPack refuse to boot the game.

is there anything you might know what i did wrong on my end?

this company sure knows what they're doing sheesh! it's not like anyone could easily get access to such files normally compared to the PC original...
Don't repack game. There is no logical reason (except one I guess which is not legal - make installable patch to reduce mod size) to use it when LayeredFS exists.
 

Impossible_Igntiz

Well-Known Member
OP
Member
Joined
Nov 16, 2018
Messages
419
Trophies
0
Location
Bonerville
XP
1,169
Country
United States
And repacking won't change that. Issue lays elsewhere
it's something they used, i'm completely out of options at the moment.... I guess extensive hacking is required for these ports and since no one seems interested right now i guess i'll have to give up for now 😞

Thank you for helping out regardless, very appreciate it!
 

Impossible_Igntiz

Well-Known Member
OP
Member
Joined
Nov 16, 2018
Messages
419
Trophies
0
Location
Bonerville
XP
1,169
Country
United States
I hink i may know how they're doing the file reading stuff, check this last file out whenever you can.

Every game i have, has this ~INDEX file included in all their releases.

this one is from Sakura MMO
 

Attachments

  • ~INDEX.rar
    7 KB · Views: 20

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    LeoTCK @ LeoTCK: yes for nearly a month i was officially a wanted fugitive, until yesterday when it ended