Al Azif's ps4 exploit host on ASUS router running Asuswrt Merlin - YouEbr/ps4-exploit-host-on-Asuswrt-Merlin GitHub Wiki
Why not other already available guides?
This method is different than other methods out there.
- All the other methods that I checked, were done on tomato/ddwrt.
- All the other methods, change http port of router's GUI to something different than 80 (e.g 8080, 7777, ...). Therefore one needs to have that port entered into browser whenever they need to access the GUI of router.
- Asuswer-Merlin firmware does not let port change for main GUI; apparently only 443 (https) works in some cases.
- This guide aims to do minimum change on main settings of router.
Before we start:
This tutorial has been done on Asus RT-AC68U Router running Asuswrt-Merlin Version 384.19
Throughou, I will be using following IPs:
- Router IP: 192.168.1.1
- PS4 Static IP: 192.168.1.50
In addition, you will need a USB stick, formatted to ext2/3/4. I used EaseUS partition manager to format it to ext3. Here is simple guide on how to format a USB stick to ext3.
The name of my USB drive is "2G". This is important since when you connect the USB drive to the router, it gets mounted under /mnt/NAMEOFUSBDRIVE. With that, mine gets mounted in /mnt/2G. The path (/mnt/2G) is used in this tutorial.
Note: All files are under "Code" tab. Top of the page, left side.
GUI Step:
In this step, we setup the basics of what we need on router.
Setting Static IP for PS4:
Goto LAN -> DHCP Server (http://192.168.1.1/Advanced_DHCP_Content.asp
- Under "Manual Assignment" click on "Yes"
See that here --> https://imgur.com/a/zHpB9RO
- Under "Manually Assigned IP around the DHCP list", from "MAC address" column select MAC address of your PS4. Under "IP Address" enter an IP address for your PS4 (e.g. 192.168.1.50). "Hostname" selection is optional, though you can add "PS4" there. Now it is time to click on PLUS sign (+) to add your entry to the list.
See that here --> https://imgur.com/a/uKVl9iQ
- Go all the way down on the page and click on "Apply" to save the changes.
Enabling JFFS and SSH
- Go to "Administration->System" (http://192.168.1.1/Advanced_System_Content.asp) and enable enable "JFFS"
See that here --> https://imgur.com/a/oVH2i2F
- Under Services, enable SSH.
See that here --> https://imgur.com/a/5XEvp0m
- Click Apply to save the changes.
Command line step:
This section covers what needs to be done while ssh-ed into router.
Install Entware:
Here you can find the guide from "asuswrt-merlin.ng". Simply said, you need to log into your router (ssh) and then run "amtm" command and from the menu initiate the Entware installation.
Install Python
Execute following commands to install python3
opkg update
opkg install python3
python3 -m compileall
Transfer couple of files into your router:
You can download the files from "Code" section. You either can scp them into your router OR create them on your router and copy&paste the contents into them.
nat-start
scp nat-start
[email protected]:/jffs/scripts/nat-start`
or
vi /jffs/scripts/nat-start
Then paste the content of nat-start file into it
Either way, you need to run following command on nat-start file to make it executable.
chmod 755 /jffs/scripts/nat-start
Downloading ps4-exploit-host and setting it up
Download it
Navigate into your usb stick drive
cd /mnt/2G
Execute following command to download ps4-exploit-host_c58ad2f.zip (replace the *.zip file name with ps4-exploit-host_c58ad2f_WithGoldHEN.zip if you want to have GoldHEN.)
wget https://github.com/YouEbr/ps4-exploit-host-on-Asuswrt-Merlin/blob/master/ps4-exploit-host_7eb9542.zip
extract it
unzip ps4-exploit-host_7eb9542.zip
Change the settings
After extracting the zip file, you will have a new directory like ps4-exploit-host_c58ad2f (depends on which zip file you downloaded earlier). There is a file named "settings.json" under it. We will need to change 4 settings in setting.json.
1. Change "DNS_Interface_IP": "", to "DNS_Interface_IP": "192.168.1.1",
2. Change "DNS_Port": "53", to "DNS_Port": 53053,
3. Change "HTTP_Interface_IP": "", to "HTTP_Interface_IP": "192.168.1.1",
4. Change "HTTP_Port": 80 to "HTTP_Port": 8080,
As an alternative, you can download "settings.json" from "Code" section and scp it into /mnt/2G/ps4-exploit-host_c58ad2f/setting.json.
Make it run
Open up file services-start
vi /jffs/scripts/post-mount
then, at the end of the file add following line
python3 /mnt/2G/ps4-exploit-host_c58ad2f/start.py &
Save the file, and exit.
NOTE: you may not have post-mount file (in case you have not used amtm). Instead you may have services-start file. If that is the case, add the one line code to the end of services-start.
NOTE: Make sure the path to start.py is correct depending on what zip file you downloaded, and where it has been extracted.
Reboot
You will need to reboot your router for all the changes to take effect.
PS4 Setup:
While setting up your PS4's network setting, select Manual, but just keep choosing automatic option. You do not need to setup DNS. Your router will take care of everything.