sprx decryption

Discussion in 'Homebrew Development' started by Jean_pierre_Jean, Mar 9, 2020.

  1. 27
    3
    32
    Jean_pierre_Jean

    Jean_pierre_Jean Member

    Joined:
    Mar 6, 2020
    Messages:
    27
    Likes Received:
    3
    Trophy Points:
    32
    Gender:
    Male
    Hello, what tool is better to use for sprx deacryption from PS3? 4.85 rogero
    Need to see source code from some of them
     
  2. 13,042
    5,227
    647
    pinky

    pinky Retired Developer

    Joined:
    Mar 8, 2015
    Messages:
    13,042
    Likes Received:
    5,227
    Trophy Points:
    647
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    imo, the best app for decryption/encryption is scetool. however, decryption is very basic, since the firmware needed is in the header. there are a lot of tools to do that. however, specific encryption is best with scetool.
     
    Jean_pierre_Jean likes this.
  3. 40
    4
    32
    Noxillio

    Noxillio Member

    Joined:
    May 6, 2019
    Messages:
    40
    Likes Received:
    4
    Trophy Points:
    32
    Gender:
    Male
    Occupation:
    College student
    Location:
    New York
    Could I use this for a PRX file? I'm trying to view the source code for a mod menu I downloaded.
     
  4. 2,888
    2,756
    372
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    2,888
    Likes Received:
    2,756
    Trophy Points:
    372
    Gender:
    Male
    Location:
    Poland
    Break 'n self.

    You will not see any source code because they are already compiled. Only Sony have src for whole firmware, including PRX modules. You can try disassembling them for some reason.
     
  5. 40
    4
    32
    Noxillio

    Noxillio Member

    Joined:
    May 6, 2019
    Messages:
    40
    Likes Received:
    4
    Trophy Points:
    32
    Gender:
    Male
    Occupation:
    College student
    Location:
    New York
    I'm not sure what you mean. I'm just trying to see the source for a mod menu someone wrote. Is there no way to decompile it?
     
  6. 8,605
    9,692
    797
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    8,605
    Likes Received:
    9,692
    Trophy Points:
    797
    No. You can not get the source from a compiled file. If you knew how to reverse engineer it using IDA and you knew how to code, you could rewrite the source or something close to it in theory, but it would be a lot of work.

    The only way to get the actual source is from the original developer.
     
  7. 2,888
    2,756
    372
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    2,888
    Likes Received:
    2,756
    Trophy Points:
    372
    Gender:
    Male
    Location:
    Poland
    You mentioned about Rogero CFW so I assumed You are talking about build-in firmware modules. But it doesn't matter, from custom modules You also not get source code. :P At least not without laborious and time consuming decompiling. Differences between SPRX and PRX on PS3 is only encryption layer, but both are the same native binary compiled code.
     
  8. 40
    4
    32
    Noxillio

    Noxillio Member

    Joined:
    May 6, 2019
    Messages:
    40
    Likes Received:
    4
    Trophy Points:
    32
    Gender:
    Male
    Occupation:
    College student
    Location:
    New York
    I didn't mention Rogero, that was the OP.

    Thanks for the quick answers, guys :)
     
  9. 3,501
    5,817
    522
    aldostools

    aldostools Developer Developer

    Joined:
    Oct 30, 2014
    Messages:
    3,501
    Likes Received:
    5,817
    Trophy Points:
    522
    As the other members suggested SCETOOL is the recommended tool for decrypt/encrypt EBOOT/SELF/SPRX,

    If you have my PS3 Tools Collection installed properly with the file associations, the encryption/decryption is a piece of cake:
    1. Select the SPRX file and press SHIFT+ENTER to decrypt the file.
    (You will get the decrypted PRX file. Do not touch the original SPRX file, it will be used in step 3)
    2. Double click or just press ENTER on the decrypted PRX file to view/hex edit it with HxD
    (You don't get the source code, but strings and binary values can be found and hex edited easily in the PRX)
    3. Once you're done modding, save it and press CTRL+ENTER on the PRX the file.
    (Your PRX will be encrypted again as SPRX using the same header parameters of your original SPRX.
    The original SPRX will be renamed to .SPRX_ORIGINAL. You can leave it there for future mods or delete it if you don't need it.)

    The same steps can be used on EBOOT.BIN, .SPRX and .SELF files.
     
    STLcardsWS and Algol like this.
  10. 40
    4
    32
    Noxillio

    Noxillio Member

    Joined:
    May 6, 2019
    Messages:
    40
    Likes Received:
    4
    Trophy Points:
    32
    Gender:
    Male
    Occupation:
    College student
    Location:
    New York
    I actually did use your tool to decrypt the SPRX and get the PRX, then opened it in VSC and was able to see certain things. I was just curious if it was possible to do a full decompile, shame it's not possible.
     
  11. 5
    0
    30
    Aius

    Aius Member

    Joined:
    Oct 20, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    30
    Gender:
    Male
    Sorry aldostools, but DEX_Game_Mounter_GUI.exe contains the trojan Wacatac...
     
  12. 992
    395
    97
    Coro

    Coro Member

    Joined:
    May 2, 2019
    Messages:
    992
    Likes Received:
    395
    Trophy Points:
    97
    the thread linked above by aldostools says that the ps3 tools collection may give a "false positive" from some scanners. IIRC the last update has been out for a while so it should have been noticed before now if it was infected.

    if you are sure it is real then you should consider that the file may have been infected by something else on your pc.
     
    STLcardsWS likes this.
  13. 1,490
    1,025
    272
    psykosis

    psykosis Developer Developer

    Joined:
    Dec 7, 2014
    Messages:
    1,490
    Likes Received:
    1,025
    Trophy Points:
    272
    If you are that worried that the application is infected, perhaps running in a virtual machine would alleviate your concerns.
    I seriously doubt anything by aldostools has anything malicious in it. He has been around for a very long time, and contributed many amazing tools that are used everyday in the homebrew scene.

    Another thing to note: Most antivirus will flag software that has zero infection, based off arbitrary code paths. Home based devs tend to learn online, the same way that some virus/trojan/etc writers learn online as well. So yes, there are coding similarities in the process, creating false positive flags. Windows Defender is one of the most notorious for this.
     
  14. 5
    0
    30
    Aius

    Aius Member

    Joined:
    Oct 20, 2018
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    30
    Gender:
    Male
    I know I know, you're right.
    Sorry to question this respectable contributor !
    Thank you for your excellent work, it's just that it is the only file that makes my antivirus panic with such precision.
    A control costs nothing.
    Thanks again !
     

Share This Page