Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magic value incorrect (not an ELF?) #7

Open
tpimh opened this issue Jul 9, 2024 · 6 comments
Open

Magic value incorrect (not an ELF?) #7

tpimh opened this issue Jul 9, 2024 · 6 comments

Comments

@tpimh
Copy link

tpimh commented Jul 9, 2024

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?

@artart78
Copy link
Member

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

@tpimh
Copy link
Author

tpimh commented Jul 11, 2024

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.

@tpimh
Copy link
Author

tpimh commented Jul 15, 2024

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

@sharkwouter
Copy link
Member

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

@tpimh
Copy link
Author

tpimh commented Jul 16, 2024

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.

@sharkwouter
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants