Hacking Nintendo Switch's encrypted persistent file

Impossible_Igntiz

Well-Known Member
OP
Member
Joined
Nov 16, 2018
Messages
421
Trophies
0
Location
Bonerville
XP
1,180
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: 36
  • ratacommon.rar
    1.1 KB · Views: 34

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,297
Trophies
3
XP
12,077
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
421
Trophies
0
Location
Bonerville
XP
1,180
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,297
Trophies
3
XP
12,077
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
421
Trophies
0
Location
Bonerville
XP
1,180
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,297
Trophies
3
XP
12,077
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
421
Trophies
0
Location
Bonerville
XP
1,180
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
421
Trophies
0
Location
Bonerville
XP
1,180
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: 23

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • HiradeGirl @ HiradeGirl:
    That's a lot of money.
  • HiradeGirl @ HiradeGirl:
    I can pay it, but I'd rather eat better.
  • K3Nv2 @ K3Nv2:
    Nah just eat floor crumbs
  • HiradeGirl @ HiradeGirl:
    Juan's floor crumbs were always rat fur
    +1
  • BigOnYa @ BigOnYa:
    Change from real cheese, to government cheese, you'll save some money.
    +1
  • K3Nv2 @ K3Nv2:
    Gotta get that government cheese one new laptop a year
    +1
  • K3Nv2 @ K3Nv2:
    Fucking Biden making us pay full internet prices
    +1
  • BigOnYa @ BigOnYa:
    Of course there is always, OnlyFans, or a GoFundMe, to raise some money.
  • HiradeGirl @ HiradeGirl:
    @BigOnYa are you on OnlyFans?
  • K3Nv2 @ K3Nv2:
    He gets his ramming funds from onlyfans
  • BigOnYa @ BigOnYa:
    Yea but my total income is negative, lol
  • HiradeGirl @ HiradeGirl:
    I would pay for watching someone eat food from the floor.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, stop spending the videos' budget on food
  • BigOnYa @ BigOnYa:
    No I've never even been to the site(honestly) but have heard of it
  • K3Nv2 @ K3Nv2:
    I'm half way at my savings for a new move
  • BigOnYa @ BigOnYa:
    Like a karate move? The flying dragon is cool.
  • HiradeGirl @ HiradeGirl:
    @BigOnYa if you've never been to the site how do you know about its contents?
  • Xdqwerty @ Xdqwerty:
    Can he do a shoryuken?
  • Xdqwerty @ Xdqwerty:
    @HiradeGirl, cuz of people mentioning it everywhere
    +1
  • HiradeGirl @ HiradeGirl:
    Someone here introduced me to it. Not gonna say who.
  • BigOnYa @ BigOnYa:
    Everybody knows what that site about, and you can't read normal news anymore without hearing about it
  • HiradeGirl @ HiradeGirl:
    But it's degrading and disgusting.
  • Xdqwerty @ Xdqwerty:
    @HiradeGirl, was it Juan?
  • HiradeGirl @ HiradeGirl:
    Juan who?
  • BigOnYa @ BigOnYa:
    Its just seductive pics right? I mean they don't show nudity, do they?
    BigOnYa @ BigOnYa: Its just seductive pics right? I mean they don't show nudity, do they?