Skip to content

Instantly share code, notes, and snippets.

@Al-Azif
Last active October 13, 2023 14:02
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save Al-Azif/fe2ae67a2fb06cc136580b1e923c7aac to your computer and use it in GitHub Desktop.
Save Al-Azif/fe2ae67a2fb06cc136580b1e923c7aac to your computer and use it in GitHub Desktop.
Standalone RPi installer fr ps4-exploit-host (No router, no switch)
  1. Have a fresh install of Raspiban Lite on your RPi

  2. Connect you RPi to a network with internet access

  3. Run this command on you RPi:

     `curl -L https://git.io/vh1hU | sudo bash -s`
    
  4. Your device will restart automatically

  5. Run an ethernet cord directly between RPi and PS4

  6. In the network settings setup your PS4 to use LAN (Use easy mode, not custom)

  7. Load the User's Manual

#!/bin/bash
apt-get update
apt-get -y upgrade
curl -L https://github.com/Al-Azif/ps4-exploit-host/releases/download/v0.4.5/ps4-exploit-host-linux.arm-v0.4.5.zip --output /opt/ps4-exploit-host-linux.arm.zip
apt-get -y install dnsmasq
systemctl stop dhcpcd
systemctl stop dnsmasq
cat << 'EOF' >> /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.1.1/24
denyinterfaces eth0
EOF
cat << 'EOF' > /etc/dnsmasq.conf
# Disable DNS (We're using this for DHCP only)
port=0
# Disable resolv.conf and hosts File
no-resolv
no-hosts
# Filter Local Queries
domain-needed
bogus-priv
# Bind to eth0
interface=eth0
bind-interfaces
# Set Default Gateway for DHCP
dhcp-option=3,192.168.1.1
# Set Default DNS for DHCP
dhcp-option=6,192.168.1.1,192.168.1.1
# Specify IP Range
dhcp-range=192.168.1.2,192.168.1.254,255.255.255.0,2h
# Set Authoritative Mode
dhcp-authoritative
EOF
unzip -d /opt/ /opt/ps4-exploit-host-linux.arm.zip
rm /opt/ps4-exploit-host-linux.arm.zip
sed -i -- 's/"Interface_IP": ""/"Interface_IP": "192.168.1.1"/g' /opt/ps4-exploit-host/settings.json
cat << 'EOF' >> /opt/ps4-exploit-host/ps4-exploit-host.service
[Unit]
Description=PS4 Exploit Host
Wants=multi-user.target
[Service]
Type=simple
Restart=always
RestartSec=10
User=root
Group=root
WorkingDirectory=/opt/ps4-exploit-host
ExecStart=/opt/ps4-exploit-host/ps4-exploit-host
KillMode=process
[Install]
WantedBy=multi-user.target
EOF
chmod +x /opt/ps4-exploit-host/ps4-exploit-host
ln -f /opt/ps4-exploit-host/ps4-exploit-host.service /lib/systemd/system/ps4-exploit-host.service
systemctl enable ssh
systemctl enable dhcpcd
systemctl enable dnsmasq
systemctl enable ps4-exploit-host
reboot
@bluemeanie23
Copy link

Hi mate any chance u could update the payloads to the latest available. I love the rpi script it works perfectly it just would be great to have the latest version of the dumper thank you in advance for your work mate

@bluemeanie23
Copy link

Thanks mate works great your a champion

@LeakingCustard
Copy link

I connected my rpi3 to the internet with wifi to run the curl command.
Everything downloads and runs correctly from what i can see however when the pi reboots it says systemend Executable path is not absolute,ignoring ifconfig eth0 7.7.7.7 or something along those lines. any ideas ?

@Al-Azif
Copy link
Author

Al-Azif commented Feb 24, 2018

@LeakingCustard Try using there whereis command to find the absolute locations of ifconfig and route. Edit the service file to point to the absolute path. Ex:

     ExecStartPre=/sbin/ifconfig
     ExecStartPre=/sbin/route

Drop me a PM on Twitter or Discord if it doesn't work. Gists comments don't send me notifications and they're easy to miss.

@Kisifrot
Copy link

Looks to install fine on rasp pi, cant get it to connect through ethernet on ps4 now since 0.4.1

@virago111111
Copy link

Hi, great work! Thanks a lot! Can you tell me how to apdate it when new payloadas appears?

@usb2
Copy link

usb2 commented Apr 20, 2018

Hello,
Not working for me on RPi 2, everything works fine on the Pi, but the ps4 can't connect through ethernet.
What can i try to make it work ?
Thx in advance.

@tonyyoyo
Copy link

tonyyoyo commented May 2, 2018

You going to update this to 0.4.2?

@suhrmann
Copy link

suhrmann commented May 12, 2018

I get the Error Unable to find LAN IP (when running it as stand-alone)
I'm using Raspbian Stretch Lite on a Raspberry Pi 1st generation.

pi@raspberrypi:~ $ sudo /opt/ps4-exploit-host/ps4-exploit-host
##########################################################
#  Exploit Host                               by Al Azif #
##########################################################
ERROR: Unable to check Github repo to check for updates
ERROR: Unable to find LAN IP
Press any key to exit...

Is this a bug in ps4-exploit-host or am I missing something?
Must I never unplug the RPi from power supply during the process (I have to change location after changing Internet access -> PS4)?


Update:

I created an issue on the repo-page (with more debug-info): ps4-exploit-host#83

Update 2: Fix and Update to v0.4.2

I created an updated gist here

After the v0.4.1 Update there was Redirect_IP unset:

{
...
    "DNS_Rules": {
        "Redirect_IP": "192.168.1.1",   <- IP was missing !
        ...
}

so in the script rpi.sh there was this line missing (after the sed -i -- 's/"Interface_IP" ...):

sed -i -- 's/"Redirect_IP": ""/"Redirect_IP": "192.168.1.1"/g' /opt/ps4-exploit-host/settings.json

@tonyyoyo
Copy link

Can you please make a script to update previous installations?

Fresh install + system updates are killing my bandwidth!

@MarcoLooy
Copy link

Awesome, the Raspberry Pi setup works for me. Thanks!
The only issue I ran into was that i had to manually configure the network settings on the PS4.

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