Skip to content

Magic value incorrect (not an ELF?) #7

Open

Description

@tpimh

Trying prxtool with various Sony modules (starting with 0x7E534345), always get the same output:

PRXTool v1.1 : (c) TyRaNiD 2k6
Built: Jul  9 2024 08:49:07
Error: Magic value incorrect (not an ELF?)
Error: Couldn't load prx file structures

Done

For example, audiocodec.prx or libatrac3plus.prx can be used. Not giving direct links to these files, but there's a list of UMD/PSN games from which these files can be legally obtained.

Is this tool not supposed to work with these prx modules?

Activity

  1. artart78 commented on Jul 10, 2024

    @artart78
    Member

    These binaries are encrypted, you can decrypt them using this tool: https://github.com/John-K/pspdecrypt

  2. tpimh commented on Jul 11, 2024

    @tpimh
    Author

    I have now built pspdecrypt, but for every prx I try to decrypt, I get "Unknown input file format!" error. Am I supposed to use some extra options for successful prx decryption? Can't find anything related in the documentation.

  3. tpimh commented on Jul 15, 2024

    @tpimh
    Author

    As discussed in Discord, pspdecrypt doesn't handle the ~SCE header.

    There are two solutions:

    1. Remove the first header up to ~PSP header start: tail -c +65 libsmth.prx > libsmth-psp.prx
    2. Use a fork of pspdecrypt that does this automatically
  4. sharkwouter commented on Jul 15, 2024

    @sharkwouter
    Member

    @tpimh If there are no issues with the fixed up implementation, we should probably merge those changes.

  5. tpimh commented on Jul 16, 2024

    @tpimh
    Author

    prxtool is fine, pspdecrypt is the tool that needed fiddling. Of course, we can fork the original pspdecrypt to pspdev organization, then merge the changes from the fork that can skip the ~SCE header.

  6. sharkwouter commented on Jul 16, 2024

    @sharkwouter
    Member

    Oh, fair. I think John is still active, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions