PSX-SCENE Forum Discussion for Sony PlayStation/PsOne/PS2/PS3/PSP/PS VITA
  • SDAT Creator by oakhead69

    Oakhead69 one of the latest Developers to join PSX-Scene Developers Team has released a handy PC application called the "SDAT Creator". This tool will create a V3 SDAT file from decrypted data. Instructions are also include on how to decrypt V4 SDATs on a 4.xx CFW PS3. This program is also useful for modifying the contents of SDAT file for language conversions. The source code is provided in the download below.






    Instructions:
    • You first need to decrypt the original V4 SDAT file.
    • You can use extttdpk coded by asmodean asmodean's reverse engineering page - news and updates to decrypt it.
    • This needs to be done on a PS3 with >3.56. e.g 4.21.
    • There are compiled versions of this on the web for example link
    • You need to modify the file decrsdat.lst with a list of SDATs to be decrypted e.g.


    Code:
    # input_file output_file
    /dev_hdd0/model_shader_pack.SDAT /dev_hdd0/model_shader_pack.dat
    There is code available that can decode V3 SDATs on the PC, but we can not decode the V4 SDATs as we do not have the EDATKEY1 that has a SHA-1 of 6ECDFEC0A11890C1F2A689062D3EFE562317B2FB. Once we have this key V4 SDATscan be decrypted on a PC.

    This program is also useful for modifying the contents of SDAT file for language conversions etc. I know that this has been requested by people in the past. Now we can do it.


    To use the SDAT Creator:

    1) Provide the decrypted data as input to the SDAT creator.
    2) Specify the output SDAT file.
    3) Optionally provide the original V4 SDAT file and it will then use the hashes etc from this file otherwise it just uses some default values..
    4) Press the 'Create SDAT' button and that's it.

    The code I have provided is based on KDSBest's C# port of the Java code written by JuanNadie. Any keys used in the code are already publicly available on the internet.

    Most of the information I used to create this program was gained from this post NPDRM Self algorithm.
    Big thanks to JuanNadie, KDSBest and others that posted on this thread.

    I have used it to create successful patches for
    Test Drive: Ferrari Racing Legends (BLUS30842)
    Ice Age 4: Continental Drift (BLES01686).

    For Sports Champions 2.BCES01598 there are other issues with the EBOOT.BIN that I can not fix.
    For Air Conflicts Pacific Carriers.BLES01604 the V3 SDAT files to not work even on 4.21. I think this is because they contain elf files and V3 SDATs do not support executable content.
    Men.In.Black.Alien.Crisis.BLES01549. This should work but it has a 4gig+ sdat file, but I have tested my creator can handle files of this size.
    Disney.Epic.Mickey.2.The.Power.of.Two I have noticed that this has sdat files but I have not had any time to look at them.

    Download: Download SDAT Creator.rar



    LIKE/VOTE
    for this Entry in this month's Contest!
    Comments 28 Comments
    1. Tubifex90's Avatar
      Tubifex90 -
      Hi. Thanks a lot for this!

      There is code available that can decode V3 SDATs on the PC,
      Can you please explain how to decode V3 SDATs on PC?

      Thanks.
    1. oakhead69's Avatar
      oakhead69 -
      Hi Guys,

      Since a number of people have asked for this, I have added support for decryption of V3 and lower SDATs. Still no V4 decryption, need the latest EDAT keys.

      GUI interface is I hope self explanatory.

      Options for CLI are:

      Now has additional first parameter of E (Encrypt) or D (Decrypt)

      1) No parameters launches the GUI as normal. If run from a command window it will minimise the window and restore it after it closes.

      2) 3 or 4 parameters and it assumes a single command i.e. "SDAT Creator CLI" E/D InputFile OutputFile (Optional SDAT reference file)
      e.g.
      "SDAT Creator Decryter CLI" E Input.dat Output.sdat original.sdat
      or
      "SDAT Creator Decryter CLI" E Input.dat Output.sdat
      or
      "SDAT Creator Decryter CLI" D InputV3.sdat Output.dat

      3) 1 parameter and it assumes that it is a file containing a list of command lines for multi file handling.
      e.g.
      "SDAT Creator Decryter CLI" filelist.txt

      Contents of filelist.txt is now
      Code:
      E input.dat "output file.sdat" ref.sdat
      E "input file.dat" "output file.sdat" "ref file.sdat"
      E "input file.dat" "output file.sdat"
      D "input file.sdat" output.dat
      I have tested it, I think in all case. Any problem you find just let me know.

      Download SDAT Decrypter Creator CLI.rar from Sendspace.com - send big files the easy way
    1. oakhead69's Avatar
      oakhead69 -
      Another release V1.1

      This time I have added support for specifying the block size, some games use 8K blocks rather than 16K blocks. You can specify the block size using the API or it will read it from the original SDAT if provided.

      The CLI change is a little dirty at the moment will clean it up when I get more time. For now just add the block size next to the 'E' e.g. E8 or E16. Same applies for the filelist see below.

      Code:
      E input.dat "output file.sdat" ref.sdat
      E8 input.dat "output file.sdat" ref8.sdat
      E16 input.dat "output file.sdat" ref16.sdat
      E "input file.dat" "output file.sdat" "ref file.sdat"
      E "input file.dat" "output file.sdat"
      D "input file.sdat" output.dat
      Also added a bug fix to the V3 decryption, there was an issue with the handling of 'BigNumbers'. Thanks to catalinnc for sending me the SDAT so that I could find and fix this issue.

      Download SDAT Decrypter Creator CLI v1.1.rar from Sendspace.com - send big files the easy way
    1. catalinnc's Avatar
      catalinnc -
      thanks a lot...
    1. rocknard's Avatar
      rocknard -
      Edat can be decrypted??? or it's only for sdats?
    1. rocknard's Avatar
      rocknard -
      Can decrypt it .edat ????
    1. JH1187's Avatar
      JH1187 -
      DECRSDAT doesnt work for me on cfw rogero 4.30 can someone port that for me ?
    1. eustolio's Avatar
      eustolio -
      Under this method, you can create edat_decrypter_creator?
      Thanks for u work oakhead69!
  • Daily Digest


    Want to receive the latest PSX info in your email?

    Sign up for our Daily Digest!



    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!

  • Recent Threads

    Berabouman

    Black screen when loading Resident Evil Revelations

    Thread Starter: Berabouman

    I get through the Verifying Data part just fine, and the game appears on the XMB, but when I actually load the game, all I get is a black screen. I've

    Last Post By: Berabouman Today, 12:59 PM Go to last post
    simbin

    URGENT PSP buying advice for noob

    Thread Starter: simbin

    I'm getting ready to purchase a PSP from a local seller but have some concerns.

    Several games were downloaded from PSN and are stored on

    Last Post By: LKJHGFDSA Today, 11:56 AM Go to last post
    smokie1313

    serious issue here PLZ HELP

    Thread Starter: smokie1313

    okay here it goes
    i got 4 ps3 cech-3001a/b that shut off 2 secs after trying to power up
    red green then no lights at all

    Last Post By: No0bZiLLa Today, 07:44 AM Go to last post
    sparker781

    Sleeping Dogs Add-Ons

    Thread Starter: sparker781

    Hey All

    Thanks for stopping by. Essentially I can get the add-ons with no problem...But am not sure if I am doing something wrong cause

    Last Post By: sparker781 Today, 10:36 AM Go to last post
    rvuy9645

    Looking for: PS2 network adapter [EUR]

    Thread Starter: rvuy9645

    Hello,

    Looking for a network adaptor in Europe.
    I'm living in Belgium.
    Want to upgrade my fat PS2 with a HDD.
    Anybody

    Last Post By: rvuy9645 Yesterday, 06:18 PM Go to last post
    SonyUSA

    iPod Touch 5th Gen Digitizer Replacement Guide !

    Thread Starter: SonyUSA

    Welcome to SonyUSA's Totally Amazing Digitizer Only iPod Touch 5th Generation Replacement Guide! V. 1.2!
    *trumpets!*

    Guide made for

    Last Post By: wartutor Today, 12:32 AM Go to last post
  • Recent Comments

    barelynotlegal

    Brunolee Updates TMC Themes For multiMAN - Releases Theme Control Tool

    yep, crashes on win8, win7, vista, all compatibility options is a crash Go to last post

    barelynotlegal Today 12:37 PM
    barelynotlegal

    Some Updates To PS3 Tools Collection

    WOO HOO.
    "TIP: After you resign and replace your trophies, it is required to Rebuild Database... Go to last post

    barelynotlegal Today 12:31 PM
    der Warst

    Release: PS2 Linux Live DVD Version 3

    Hey,

    Do you have any idea if it's possible to run the ps2 port of effectv with it?
    I'm not... Go to last post

    der Warst Today 12:25 PM
    afehst

    Some Updates To PS3 Tools Collection

    oohw, thanks, i allready was waiting for a update.... Go to last post

    afehst Today 12:12 PM
    fatattack

    3K3Y -- PS3 Blu Ray ODD Emulator

    which is a stupid way in the first place.
    use the xkey controller and you're safe since this does... Go to last post

    fatattack Today 11:08 AM
    XxUnkn0wnxX

    Brunolee Updates TMC Themes For multiMAN - Releases Theme Control Tool

    this tool wont even start in windows 8 - it say multiman theme controll.exe has stopped working Go to last post

    XxUnkn0wnxX Today 11:04 AM
    ONEDEADLYVENOM

    New Multiman Themes by hcode123

    Hi hcode123, I just wanna say a gracious thank you to you!

    I'm loving the themes that you... Go to last post

    ONEDEADLYVENOM Today 09:46 AM
    alzaabi

    BwE NOR Validator v1.30

    thank you very much but does this really patch Nor Dumps ?
    or just validate it ? Go to last post

    alzaabi Today 04:03 AM
    TheShadowRunner

    PS2 Controller Remapper v1.00 - by pelvicthrustman

    Woah totally awesome app, pelvicthrustman!
    A suggestion, could you extend the functionality for... Go to last post

    TheShadowRunner Today 02:32 AM
    coldlm

    PS2 Controller Remapper v1.00 - by pelvicthrustman

    how about making the PS2 controller vibrate on PS3! Go to last post

    coldlm Today 12:43 AM