Archive of https://github.com/Gezine/sdk — An SDK for PS5 payloads that uses dynamic linking https://github.com/Gezine/sdk
  • C 97.7%
  • C++ 0.9%
  • RPC 0.9%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-03 00:59:08 +09:00
.github/workflows samples: add hello_argv 2026-02-13 19:02:29 +01:00
crt add support for firmware 13.60 2026-08-03 00:59:08 +09:00
host cosmetics 2026-06-21 22:13:14 +02:00
include crt: add kernel procio functions that operate on pmap entries when mdbg is unavailable 2026-07-01 21:14:36 +02:00
libc cosmetics 2026-06-28 17:28:26 +02:00
libufs cosmetics 2026-06-21 22:06:19 +02:00
samples kernel: change prototype for kernel_<get/set>_ucred_attrs so more attrs are exposed via api 2026-06-25 18:49:49 +02:00
sce_stubs cosmetics 2026-06-21 22:06:19 +02:00
.gitignore prospero-nid: implement in python to simplify binary distribution 2026-02-02 23:00:01 +01:00
ci.sh samples: add example for relocatable linking 2026-04-17 18:53:19 +02:00
libcxx.sh libcxx: bump to version 18.1.8 2025-10-17 21:40:55 +02:00
LICENSE add license 2024-04-10 00:08:43 +02:00
Makefile cosmetics 2026-06-21 22:06:19 +02:00
Makefile.inc add support for llvm-22 2026-06-21 22:13:14 +02:00
README.md improve deps 2026-06-28 17:33:42 +02:00

ps5-payload-sdk

This is an SDK for developing payloads targeted at exploited PS5s. ELF loaders known to work include:

Several artifacts in this repository originate from the PS5SDK project.

Prerequisites

On Debian-flavored operating systems, you can invoke the following commands to install dependencies used by the SDK.

john@localhost:ps5-payload-dev/sdk$ sudo apt-get update && sudo apt-get upgrade # optional
john@localhost:ps5-payload-dev/sdk$ sudo apt-get install bash clang-18 lld-18 wget # required
john@localhost:ps5-payload-dev/sdk$ sudo apt-get install socat cmake meson pkg-config python3 python3-pyelftools # optional

If you are using Fedora, you can install dependencies as follows (tested with version 41):

john@localhost:ps5-payload-dev/sdk$ sudo dnf install bash llvm-devel clang lld wget # required
john@localhost:ps5-payload-dev/sdk$ sudo dnf install socat cmake meson pkg-config python3 python3-pyelftools # optional

If you are using macOS, you can install them using the Homebrew Package Manager (tested with macOS Sequoia):

john@localhost:ps5-payload-dev/sdk$ brew install llvm@18 wget # required
john@localhost:ps5-payload-dev/sdk$ export LLVM_CONFIG=/opt/homebrew/opt/llvm@18/bin/llvm-config # required
john@localhost:ps5-payload-dev/sdk$ brew install socat cmake meson python && pip3 install pyelftools # optional

Quick-start

You can download a binary distribution of the SDK from the latest release page, then install it to your local storage, e.g,

john@localhost:tmp$ wget https://github.com/ps5-payload-dev/sdk/releases/latest/download/ps5-payload-sdk.zip
john@localhost:tmp$ sudo unzip -d /opt ps5-payload-sdk.zip

Assuming you have all the prerequisites and you are on a POSIX system, the binary distribution should work regardless of CPU architecture, e.g., x86_64, aarch64.

Usage

john@localhost:ps5-payload-dev/sdk$ export PS5_PAYLOAD_SDK=/opt/ps5-payload-sdk
john@localhost:ps5-payload-dev/sdk$ make -C samples/hello_world
john@localhost:ps5-payload-dev/sdk$ export PS5_HOST=ps5; export PS5_PORT=9021
john@localhost:ps5-payload-dev/sdk$ make -C samples/hello_world test

Building the SDK

john@localhost:ps5-payload-dev/sdk$ sudo make DESTDIR=/opt/ps5-payload-sdk install
john@localhost:ps5-payload-dev/sdk$ export PS5_PAYLOAD_SDK=/opt/ps5-payload-sdk
john@localhost:ps5-payload-dev/sdk$ sudo -E ./libcxx.sh # fetch, build, and install libcxx

Adding new SCE Libs

If you have decrypted sprx files that you would like to interact with, you can build stubs for them as follows (Make sure you have already installed the optional dependencies for your OS):

john@localhost:ps5-payload-dev/sdk$ ln -s /path/to/sprx/libSceXYZ.sprx sce_stubs/libSceXYZ.sprx
john@localhost:ps5-payload-dev/sdk$ make -C sce_stubs stubs
john@localhost:ps5-payload-dev/sdk$ sudo make DESTDIR=/opt/ps5-payload-sdk install

Reporting Bugs

If you encounter problems with the SDK, 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.

License

Files in the folder include/freebsd are licenced under BSD licences. Unless otherwhise explicitly stated inside a file, the rest are licensed under the GPLv3+.