Note
This project is largely based on the automatic-lua-loader project which is the PS5's equivalent.
This is an installer script that loads the PS4 Lapse Exploit and the bin_loader from the Lua savegame automatically whenever the game is ready. You can install it natively (eg. on a Raspberry Pi) or in a Docker container. You can find the Lua exploit right here: Remote Lua Loader. Supports PS4 firmware up to version 12.02.
How it works:
- Your device checks if port 9026 is open to determine whether the game is ready.
- It sends the Lapse exploit followed by the bin_loader.
- (Optional) sends a Killgame Payload. All of the Lua games should be supported.
- It waits until the FTP server (port 2121) is closed to start the process all over again OR your server will shut down.
Important
Activate GoldHEN's FTP server so that it can track the status better.
If you are using a Raspberry Pi, it's recommended to connect it to one of the PS4's USB power ports. Now the Raspberry Pi will automatically turn on whenever your PS4 boots up.
- Install the remote_lua_loader on your PS4 like this.
- Download hen-vtx from EchoStretch's releases and use one of the
.binthat matches your PS4 version and rename it topayload.bin - Copy
payload.binto the root dir of your USB drive - Plug the USB drive into your PS4 and run the game, it will do the exploit and copy the payload to the internal HDD (it only needs to be copied once)
- Copy the new HEN and rename it to
payload.binand paste it to the USB drive's root, then run the game to update the payload on the internal HDD.
-ps4_ip=10.0.0.2
- Define your PS4 IP.
-killgame=on|off
- default = off
- When enabled: The server automatically sends a Payload to the PS4, which kills the game process.
-continue=shutdown|ping
- default = ping
- Here you can decide what your server will do after the exploit is loaded. You can choose between shutdown and ping. When ping is selected your server will wait until the GoldHEN's FTP server isn't running anymore and then start the jailbreak process again.
You can just copy and paste the following command into your terminal (eg., via SSH). You can also use this command to update the Lapse & bin_loader payloads. It should be compatible with all Debian-based OSs; it was tested on Ubuntu and on the Raspberry Pi OS.
Here is the command syntax, [] = optional:
./install.sh -ps4_ip=YOURPS4IP [-killgame=on|off] [-continue=shutdown|ping]
And here is an example install command:
sudo apt update
sudo apt install -y bash git wget python3
wget https://raw.githubusercontent.com/BenNoxXD/PS4-lua-loader/refs/heads/main/install.sh
sudo chmod +x install.sh
sudo ./install.sh -ps4_ip=10.0.0.2 -killgame=on -continue=pingsystemctl stop ps4lualoader
systemctl disable ps4lualoader
rm /etc/systemd/system/ps4lualoader.service
rm -r /opt/PS4-lua-loaderMake sure you have Docker installed. You can check it like this: docker -v.
Now you can download this Dockerfile:
wget https://raw.githubusercontent.com/BenNoxXD/PS4-lua-loader/refs/heads/main/DockerfileThen run the following commands to build the image and deploy the container.
docker build \
--build-arg ps4_ip=10.0.0.2 \
--build-arg killgame=on \
--build-arg continue=ping \
-t ps4-lua-loader .
docker run -d -t --name PS4-Lua-Loader --restart always ps4-lua-loaderThanks to everyone involved in the scene who made all of this possible:
- Gezine, null_ptr & shahrilnet - remote_lua_loader
- 0x1iii1ii - ps4_autoLL which USB code code is also used in this project
- flatz
- specter
- ChendoChap
- Al-Azif
- everyone else who shared their knowledge with the community