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,242
Trophies
3
XP
11,967
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,242
Trophies
3
XP
11,967
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,242
Trophies
3
XP
11,967
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.
  • ZeroT21 @ ZeroT21:
    it wasn't a question, it was fact
  • BigOnYa @ BigOnYa:
    He said he had 3 different doctors apt this week, so he prob there. Something about gerbal extraction, I don't know.
    +1
  • ZeroT21 @ ZeroT21:
    bored, guess i'll spread more democracy
  • LeoTCK @ LeoTCK:
    @K3Nv2 one more time you say such bs to @BakerMan and I'll smack you across the whole planet
  • K3Nv2 @ K3Nv2:
    Make sure you smack my booty daddy
    +1
  • LeoTCK @ LeoTCK:
    telling him that my partner is luke...does he look like someone with such big ne
    eds?
  • LeoTCK @ LeoTCK:
    do you really think I could stand living with someone like luke?
  • LeoTCK @ LeoTCK:
    I suppose luke has "special needs" but he's not my partner, did you just say that to piss me off again?
  • LeoTCK @ LeoTCK:
    besides I had bigger worries today
  • LeoTCK @ LeoTCK:
    but what do you know about that, you won't believe me anyways
  • K3Nv2 @ K3Nv2:
    @BigOnYa can answer that
  • BigOnYa @ BigOnYa:
    BigOnYa already left the chat
  • K3Nv2 @ K3Nv2:
    Biginya
  • BigOnYa @ BigOnYa:
    Auto correct got me, I'm on my tablet, i need to turn that shit off
  • K3Nv2 @ K3Nv2:
    With other tabs open you perv
  • BigOnYa @ BigOnYa:
    I'm actually in my shed, bout to cut 2-3 acres of grass, my back yard.
  • K3Nv2 @ K3Nv2:
    I use to have a guy for that thanks richard
  • BigOnYa @ BigOnYa:
    I use my tablet to stream to a bluetooth speaker when in shed. iHeartRadio, FlyNation
  • K3Nv2 @ K3Nv2:
    While the victims are being buried
  • K3Nv2 @ K3Nv2:
    Grave shovel
  • BigOnYa @ BigOnYa:
    Nuh those goto the edge of the property (maybe just on the other side of)
  • K3Nv2 @ K3Nv2:
    On the neighbors side
    +1
  • BigOnYa @ BigOnYa:
    Yup, by the weird smelly green bushy looking plants.
    K3Nv2 @ K3Nv2: https://www.the-sun.com/news/10907833/self-checkout-complaints-new-target-dollar-general-policies...