This is a simple GDB server that can be executed on a Playstation 5 that has been jailbroken via the BD-J or the webkit entry points. The server accepts connections on port 2159, and has been tested with gdb-15.
To deploy ps5-payload-gdbsrv, first launch the ps5-payload-elfldr, then load the payload by issuing the following commands:
john@localhost:~$ export PS5_HOST=ps5
john@localhost:~$ wget -q -O - https://github.com/ps5-payload-dev/gdbsrv/releases/latest/download/Payload.zip | gunzip -c -d | nc -q0 $PS5_HOST 9021
Next, launch a new terminal and debug you payload by running the following set of commands:
john@localhost:ps5-payload-dev/gdbsrv$ export PS5_PAYLOAD_SDK=/opt/ps5-payload-sdk
john@localhost:ps5-payload-dev/gdbsrv$ export PS5_HOST=ps5
john@localhost:ps5-payload-dev/gdbsrv$ cd sample
john@localhost:ps5-payload-dev/gdbsrv/sample$ make test
- Symbols from dynamic sony libraries are not loaded correctly at the moment.
- A couble of arguments passed to the ELF is allocated on the heap, so gdb may report errors when trying to resolve the arguments to _start()
If you encounter problems with ps5-payload-gdbsrv, please file a github issue. If you plan on sending pull requests which affect more than a few lines of code, please file an issue before you start to work on you changes. This will allow us to discuss the solution properly before you commit time and effort.
ps5-payload-gdbsrv is licensed under the GPLv3+.