Skip to content

Instantly share code, notes, and snippets.

@Al-Azif
Last active July 15, 2024 15:45
Show Gist options
  • 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
@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