Instantly share code, notes, and snippets.

@Al-Azif /README.md Secret
Last active Nov 23, 2018

Embed
What would you like to do?
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

This comment has been minimized.

bluemeanie23 commented Feb 19, 2018

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

This comment has been minimized.

bluemeanie23 commented Feb 22, 2018

Thanks mate works great your a champion

@LeakingCustard

This comment has been minimized.

LeakingCustard commented Feb 24, 2018

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

This comment has been minimized.

Owner

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

This comment has been minimized.

Kisifrot commented Mar 18, 2018

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

@virago111111

This comment has been minimized.

virago111111 commented Apr 4, 2018

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

@usb2

This comment has been minimized.

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

This comment has been minimized.

tonyyoyo commented May 2, 2018

You going to update this to 0.4.2?

@Vadammt

This comment has been minimized.

Vadammt 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

This comment has been minimized.

tonyyoyo commented Jun 11, 2018

Can you please make a script to update previous installations?

Fresh install + system updates are killing my bandwidth!

@MarcoLooy

This comment has been minimized.

MarcoLooy commented Nov 23, 2018

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