forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible save data key in param.sfo?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
skyfox01_99



Joined: 27 Feb 2005
Posts: 7
Location: UK

PostPosted: Sun Apr 03, 2005 11:29 pm    Post subject: Possible save data key in param.sfo? Reply with quote

Sorry if this has been posted before but I couldnt find any references to it.

There's a function in Ape Escape to change the name you use for the save file name. After a quick look through the SFO I found that the name was stored in the save data file ("sarusave.dat"). So when we use this function the whole save is re-written.
I backed up my save (currently using default name of "File1"), booted up ape escape and changed the name to "File2". I backed this up, booted AE again and changed the name back to "File1". A simple comparison of the param.sfo files of the saves with identical names ("File1") points us to a difference of 16-bytes at address 0x057D.

Possible Key? I don't have much knowledge of AES so I don't know how to go about decrypting the dat file.

Heres a screenshot of the comparison (new file on top, old file below):
Back to top
View user's profile Send private message
mc



Joined: 12 Jan 2005
Posts: 212
Location: Linköping

PostPosted: Mon Apr 04, 2005 12:21 am    Post subject: Reply with quote

It would probably help if you ran gorim's "psfparse" on either of these files and posted the result here...
_________________
Flying at a high speed
Having the courage
Getting over crisis
I rescue the people
Back to top
View user's profile Send private message
annerajb



Joined: 31 Mar 2005
Posts: 40

PostPosted: Mon Apr 04, 2005 7:16 am    Post subject: Reply with quote

you could zip it and post it here
Back to top
View user's profile Send private message MSN Messenger
skyfox01_99



Joined: 27 Feb 2005
Posts: 7
Location: UK

PostPosted: Mon Apr 04, 2005 7:55 am    Post subject: Reply with quote

saves.zip
Back to top
View user's profile Send private message
PSPGalaxy



Joined: 09 Apr 2005
Posts: 7

PostPosted: Sat Apr 09, 2005 9:48 am    Post subject: Reply with quote

skyfox01_99,
Each letter of your save name represents a spot on the hex grid. So, you could go about finding out how the letter A is represented, then B, to Z and so on. Each time doing a diff to see the representation in the file. Anyways, just wanted to give you that tip so you could further those skills you got. Nice work so far.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Sat Apr 09, 2005 10:22 am    Post subject: Reply with quote

> Possible Key? I don't have much knowledge of AES so I don't know how to go about decrypting the dat file.

There are two interesting binary fields in the saves.
As part of the SAVEDATA_FILE_LIST data it includes the filename for the .DAT file, as well as a 16byte value. I agree it looks a lot like an AES key for the separate .DAT file

Also the SAVEDATA_PARAMS data includes 32 bytes that look like a couple of keys or hashes.

(gorim's psfparse doesn't dump that data, but you can figure it out from the file offsets)

NOTE: if you change any byte in the PARAM.SFO file, it will no longer work. My guess is part of the SAVEDATA_PARAMS includes some sort of signing hash to detect that case (one of the two 16 byte values?)

NOTE2: there is no SAVEDATA_PARAMS field in the EBOOT.PBP flash update file - and you *can* tweek the structure of those files (as people have done to change the .PNG or string name)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PSPGalaxy



Joined: 09 Apr 2005
Posts: 7

PostPosted: Sat Apr 09, 2005 10:41 am    Post subject: Reply with quote

AES nice aye, but the .sfo do have plain text. It's very possible that a hash is locking those plain text fields from change too, just have not tried it yet. Guess I'll add it to the long list of thing to look at.. Boy is that list getting long...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PspPet



Joined: 30 Mar 2005
Posts: 210

PostPosted: Sun Apr 10, 2005 2:09 am    Post subject: Reply with quote

> but the .sfo do have plain text. It's very possible that a hash is locking those plain text fields from change too, just have not tried it yet.

They are locked. Try changing any of the strings (even something as simple as "A" -> "a" in one string) and it will report it as corrupted data

I've also tried deleting and moving around the sections - but the validation also flags thes as corrupt (theoretical hash, my guess it is in "SAVEDATA_PARAMS")

Smart thing for them to do.
As mentioned you can play around with strings in the EBOOT.PBP files. I wonder if they will be adding more security once MS downloadable games come out.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Mon Jun 20, 2005 7:22 pm    Post subject: Reply with quote

PspPet wrote:
They are locked. Try changing any of the strings (even something as simple as "A" -> "a" in one string) and it will report it as corrupted data

I've also tried deleting and moving around the sections - but the validation also flags thes as corrupt (theoretical hash, my guess it is in "SAVEDATA_PARAMS")


Now you can change the params and even the data.bin, see http://forums.ps2dev.org/viewtopic.php?t=2218
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group