Forum: PS3 Technical Development - Topics relating to Playstation 3 Technical development ONLY! Read and discuss the latest Cobra USB updates, tutorials and explanations or find out about bluray drive bypass firmwares plus much more.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: PS3 Savegame Reverse Engineering
  

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 34
  1. #1 PS2 PS3 Savegame Reverse Engineering 
    KDSBest's Avatar
    KDSBest is offline PS3 Payload Engineer
    Join Date
    Sep 2010
    Posts
    107
    Downloads
    1
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    55
    Hi,

    this weekend i will start reverse engineering the savegame of ps3. My Toolchain is up and everything is working.

    My start idea is an Tool which creates encrypted and non encrypted save game with userdata (user may enter something). I may release the savegames. And try to make en non encrypted save game out of the encrypted and vice versa.

    Hmmm...
    The keys are hardcoded in the games.
    We need to be able to decompile the games to extract their keys, then we were maybe able to let the ps3 decrypt and re-encrypt savegames. Or it has to be possible to hook into a game. I don't know how the hooking should be possible. If anyone has an idea how you can hook into other games tell me (PN would be nice). I guess it is not possible at the moment. I hope the custom firmwares will come soon. Till then sorry i couldn't achieve more at the moment.

    UPDATE 17.09.2010 17:41
    Test program to save some data compiled and pkg created.
    I am not at home. I will test it later and give some feedback.

    UPDATE 18.09.2010 01:51
    Got home and deployed on PS3, failed doing some error in my code or something have to recode it. Shit happens.

    You have to give the save file (each file in the save game can have it's own) a 16 byte size key.
    a) Only Key is used for encryption
    If the Key is the only thing you need to encrypt there can be two theories:

    a.1) Game uses always same keys
    a.2) Key is safed in the PFD file ( I LIKE THIS ONE MOST )

    b) Key and game related like gameId is used for encryption.
    Depending on what game related information is used we can handle it

    Again some theory. Maybe i got one lucky shot someday :P

    If you have the key it is maybe possible to let the ps3 encrypt and decrypt savegames. So we don't have to reverse encryption and so on. Just use the given functions.
    I will be back at sunday with more i guess.

    UPDATE 19.09.2010 01:46
    Added PFD research
    Research is chaotic and did it twice to make sure

    OLD
    The PFD File
    - size is 0x8000 (32768) bytes
    - 8 byte magic start [REST 32760]
    - 8 byte version or sth like that [REST 32752]
    - 80 unkown bytes [REST 32672]
    - 480 bytes of repeating signature [REST 32192]
    - structure for each file is 0x110 (272) bytes
    - file can have 113 secured files 0x7810 (30736) bytes for file structures ;-) matches [REST 1456]
    - last strucure is only zeros size 0x110 (272) bytes [REST 1184]
    - 22 bytes unkown data [REST 1162]
    - repeating 20 byte long data 56 times 0x460 (1120) bytes [REST 42]
    - 42 times 0x00 [0x2A (42) bytes] [REST 0]
    END OLD

    PFD
    => Magic Start (0x000000000050464442) [4 times 0x00 and PFDB]
    => DUMMY (0x00000000000000) [7 times 0x00]
    => Version ?!?! (0x03)
    => unkown (80 bytes)
    => 60 times 8 byte unkown data
    CAN BE
    (0x0000000000000000) [7 times 0x00 and 0x00] OR
    (0x0000000000000001) [7 times 0x00 and 0x01] OR
    (0x0000000000000002) [7 times 0x00 and 0x02] OR
    (0x0000000000000039) [7 times 0x00 and 0x39 (ASCII 9)] OR
    (0x0000000000000072) [7 times 0x00 and 0x72 (ASCII r)]

    NOW comes an intressting structure
    first struct is for the SFO and then 113 reserved for the max possible encrypted files in a save game
    114 times struct sizeof is 272 bytes
    {
    => 8 byte struct start?!?!?! (0x0000000000000072) [7 times 0x00 and 0x72 (ASCII r)]
    => x Byte filename buffer
    => 1 Byte 0x00 (to end the string)
    => 16 Byte repeating data for every File (due to the example mostly same key is used for every file. Maybe its our key)
    => x Byte unkown data
    }
    => Huge number of 0x00 i guess it is a buffer because one save file can have only 113 encrypted files -.- what a sick number in my opinion.

    => 1142 bytes of unkown data

    => 42 times 0x00
    I'M PRETTY SURE THAT:
    THE PFD FILE DON'T HOLD THE KEY. BECAUSE YOU HAVE TO GIVE THE KEY TO YOUR LOAD FUNCTION AND IT WOULDN'T MAKE SENSE IF THE KEY IS ALREADY THERE. AND IN THE PFD FILE IS THE PARAM.SFO LISTED TOO, WITH THE SAME STRUCTURE.


    Stay tuned.

    KDSBest
    Last edited by KDSBest; 09-18-2010 at 09:30 PM.
    Reply With Quote  

  2. #2  
    oliox is offline Banned
    Join Date
    May 2009
    Location
    Portugal
    Posts
    34
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    0
    sounds cool i'll be looking forward to the devolpment of this project
    Reply With Quote  

  3. #3  
    Vegeta's Avatar
    Vegeta is offline Over 9000!
    Join Date
    Nov 2002
    Posts
    759
    Downloads
    9
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I look forward to your work.
    Reply With Quote  

  4. #4  
    KDSBest's Avatar
    KDSBest is offline PS3 Payload Engineer
    Join Date
    Sep 2010
    Posts
    107
    Downloads
    1
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    55
    has someome an idea if there is a way to hook?
    Reply With Quote  

  5. #5  
    medi01 is offline Banned
    Join Date
    Aug 2010
    Posts
    117
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    So you have a goal and a project and very vague plan to achieve it.
    Oh, I'm so excited...
    Reply With Quote  

  6. #6  
    loveps3 is offline Registered User
    Join Date
    Sep 2010
    Posts
    15
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I'm so excited too! Keep it up!
    Reply With Quote  

  7. #7  
    Irvysan's Avatar
    Irvysan is offline Registered $ony Abuser
    Join Date
    Sep 2010
    Posts
    324
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    8
    Likes Received
    2
    Reply With Quote  

  8. #8  
    KDSBest's Avatar
    KDSBest is offline PS3 Payload Engineer
    Join Date
    Sep 2010
    Posts
    107
    Downloads
    1
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    55
    Quote Originally Posted by Irvysan View Post
    I already saw that and that is not in my intrest.
    What i am doing may lead to buffer overflows in games and maybe downgrade firmware (maybe dont exspect too much!!!!!!!!!!!!!!!!!!!). Edit a savegame is more than just trophies in my eyes
    Reply With Quote  

  9. #9  
    smx
    smx is offline Registered User
    Join Date
    Sep 2010
    Posts
    29
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    with games like god of war 3 , they don't let u load other ppl's saves. Can you change that in any way?
    Reply With Quote  

  10. #10  
    KuroiKami is offline Member
    Join Date
    Sep 2010
    Posts
    154
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    well its just matter of editing the information... just have to wait decrypt of the save and edit it ^^ patience people
    Reply With Quote  

Page 1 of 4 1 2 3 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •