Repository navigation
Expand file tree
/
Copy pathps4rootkit.py
More file actions
237 lines (216 loc) · 12.8 KB
/
Copy pathps4rootkit.py
File metadata and controls
237 lines (216 loc) · 12.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
import os
import time
from colorama import Fore
import requests
banner = '''
██████╗ ███████╗██╗ ██╗██████╗ ██████╗ ██████╗ ████████╗██╗ ██╗██╗████████╗
██╔══██╗██╔════╝██║ ██║██╔══██╗██╔═══██╗██╔═══██╗╚══██╔══╝██║ ██╔╝██║╚══██╔══╝
██████╔╝███████╗███████║██████╔╝██║ ██║██║ ██║ ██║ █████╔╝ ██║ ██║
██╔═══╝ ╚════██║╚════██║██╔══██╗██║ ██║██║ ██║ ██║ ██╔═██╗ ██║ ██║
██║ ███████║ ██║██║ ██║╚██████╔╝╚██████╔╝ ██║ ██║ ██╗██║ ██║
╚═╝ ╚══════╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝
PS4Rootkit by Crafttino21/WeepingAngel | Exploit by TheFlow
» Easy to Use Toolkit for the PPPwn Exploit for PS4 «
Supported Versions: 9.00-11.00 (More on test!)
'''
menu = '''
[1] First Run (Setup and Installer)
[2] Launch Exploit (Not Recommend for first time!)
[3] Install LightMods PPPwn (Debug Settings)
[4] Run LightMods PPPwn (Debug Settings)
[5] Install SiSTR0's PPPwn (GoldHEN Loader)
[6] Run SiSTR0's PPPwn (GoldHEN Loader)
'''
remi = '''
REMINDER!
Your PC LAN-Cable need to be plugged into your PS4!
Go to Settings and then Network
Select Set Up Internet connection and choose Use a LAN Cable
Choose Custom setup and choose PPPoE for IP Address Settings
Enter anything for PPPoE User ID and PPPoE Password
Choose Automatic for DNS Settings and MTU Settings
Choose Do Not Use for Proxy Server
Click Test Internet Connection to communicate with your computer
'''
warning1 = '''
██╗ ██╗ █████╗ ██████╗ ███╗ ██╗██╗███╗ ██╗ ██████╗
██║ ██║██╔══██╗██╔══██╗████╗ ██║██║████╗ ██║██╔════╝
██║ █╗ ██║███████║██████╔╝██╔██╗ ██║██║██╔██╗ ██║██║ ███╗
██║███╗██║██╔══██║██╔══██╗██║╚██╗██║██║██║╚██╗██║██║ ██║
╚███╔███╔╝██║ ██║██║ ██║██║ ╚████║██║██║ ╚████║╚██████╔╝
╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═══╝ ╚═════╝
Put the GoldHEN.bin on the root of your exFAT Formated USB Stick!
After That put your USB into your PS4!
Write "DONE" if you have done this!
Official GoldHEN Payload: https://github.com/GoldHEN/GoldHEN/releases/tag/2.4b17
'''
warning2 = '''
██╗ ██╗ █████╗ ██████╗ ███╗ ██╗██╗███╗ ██╗ ██████╗
██║ ██║██╔══██╗██╔══██╗████╗ ██║██║████╗ ██║██╔════╝
██║ █╗ ██║███████║██████╔╝██╔██╗ ██║██║██╔██╗ ██║██║ ███╗
██║███╗██║██╔══██║██╔══██╗██║╚██╗██║██║██║╚██╗██║██║ ██║
╚███╔███╔╝██║ ██║██║ ██║██║ ╚████║██║██║ ╚████║╚██████╔╝
╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═══╝ ╚═════╝
This Payload is ONLY for 11.00 AND 9.00! NOT FOR BETWEEN!
Running this on a newer or Older Firmware can course Damage
like soft- or hardware bricks!
Normally PS4ROOTKIT Only use the 11.00 Version!!!
to use at 9.00 you need to change the stage2 payload with the 9.00
one from official site!
'''
ghbanner = '''
██████╗ ██████╗ ██╗ ██████╗ ██╗ ██╗███████╗███╗ ██╗
██╔════╝ ██╔═══██╗██║ ██╔══██╗██║ ██║██╔════╝████╗ ██║
██║ ███╗██║ ██║██║ ██║ ██║███████║█████╗ ██╔██╗ ██║
██║ ██║██║ ██║██║ ██║ ██║██╔══██║██╔══╝ ██║╚██╗██║
╚██████╔╝╚██████╔╝███████╗██████╔╝██║ ██║███████╗██║ ╚████║
╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═══╝
Launching GoldHEN Loader by SiSTR0
Working on 11.00 and 9.00 | Support SiSTR0 :)
'''
class methods():
def first_run(): # "Run first" methods that installs PPPwn
print(f"[+] Update Distru and APT...")
os.system("sudo apt update && sudo apt upgrade")
print(f"[+] Install needed Linux Packages...")
os.system(
"sudo apt install python3 && sudo apt install python3-pip && sudo apt install gcc && sudo apt install net-tools")
print(f"[+] Clone PPPwn Official Respo...")
os.system("git clone --recursive https://github.com/TheOfficialFloW/PPPwn")
os.system("clear")
print(f"[+] Install Python Libarys...")
os.system("sudo pip install -r requirements.txt")
os.system("sudo apt install python3-scapy")
print(f"{green}[+] Finished Part 1/2")
print(f"{blue}[+] What Firmware do you use?")
fwr = input("FW [e.x 9.00 = 900, 11.0 = 1100] > ")
print(f"{magenta}[+] Compiling Payloads...")
os.system(f"cd PPPwn && make -C stage1 FW={fwr} clean && make -C stage1 FW={fwr}")
os.system(f"cd PPPwn && make -C stage2 FW={fwr} clean && make -C stage2 FW={fwr}")
print(f"{green} Instalattion Successfully!")
print("Now connect a LAN-Cable to your PS4! If you use a VM Set your Network from NAT to Network Bridge!")
print("Rerun the Script if you finished!")
time.sleep(8)
exit()
def exploit(): # Load the exploit by TheFlow
print(f"{magenta} [+] Configuration")
pat = input("[+] Path of PPPwn > ")
os.system("ifconfig")
print(remi)
adp = input("[+] Input your Network adapter name [e.x enp0s3] > ")
fwr2 = input("[+] Firmware Version [e.x 9.00 = 900, 11.0 = 1100] > ")
print(f"{green} [*] Launch Exploit..")
os.system(f"cd {pat} && sudo python3 pppwn.py --interface={adp} --fw={fwr2}")
def install_lm_loader(): # Install LightningMods Loader
print(f"[+] Update Distru and APT...")
os.system("sudo apt update && sudo apt upgrade")
print(f"[+] Install needed Linux Packages...")
os.system(
"sudo apt install python3 && sudo apt install python3-pip && sudo apt install gcc && sudo apt install net-tools && sudo apt install wget")
print(f"[+] Clone PPPwn Official Respo...")
os.system("git clone --recursive https://github.com/TheOfficialFloW/PPPwn")
os.system("clear")
print(f"[+] Install Python Libarys...")
os.system("sudo pip install -r requirements.txt")
os.system("sudo apt install python3-scapy")
print(f"{green}[+] Finished Part 1/2")
print(f"{blue}[+] What Firmware do you use?")
fwr = input("FW [e.x 9.00 = 900, 11.0 = 1100] > ")
print(f"{magenta}[+] Compiling Payloads...")
os.system(f"cd PPPwn && make -C stage1 FW={fwr} clean && make -C stage1 FW={fwr}")
os.system(f"cd PPPwn && make -C stage2 FW={fwr} clean && make -C stage2 FW={fwr}")
os.system("clear")
print(f"{blue}[+] Installing Lightmods Payload for debug settings..")
os.system(
"wget https://github.com/LightningMods/PPPwn/releases/download/0/stage2.bin && mv -f stage2.bin PPPwn/stage2 && clear")
print(f"{green}[+] Instalattion Successfully!")
print("Now connect a LAN-Cable to your PS4! If you use a VM Set your Network from NAT to Network Bridge!")
print("Rerun the Script if you finished!")
time.sleep(8)
exit()
def run_lm_loader(): # Run LightningMods Loader
print(f"{magenta} [+] Configuration")
pat = input("[+] Path of PPPwn > ")
os.system("ifconfig")
print(remi)
adp = input("[+] Input your Network adapter name [e.x enp0s3] > ")
fwr2 = input("[+] Firmware Version [e.x 9.00 = 900, 11.0 = 1100] > ")
print(
f"{magenta}[!] REMINDER: If you get the corrupted data failed.. please try again Run this script here again!")
print(f"{green}[*] Launch Exploit..")
os.system(f"cd {pat} && sudo python3 pppwn.py --interface={adp} --fw={fwr2}")
def install_goldhen(): # Install GoldHEN
print(f"[+] Update Distru and APT...")
os.system("sudo apt update && sudo apt upgrade")
print(f"[+] Install needed Linux Packages...")
os.system(
"sudo apt install python3 && sudo apt install python3-pip && sudo apt install gcc && sudo apt install net-tools && sudo apt install wget")
print(f"[+] Clone PPPwn Official Respo...")
os.system("git clone --recursive https://github.com/SiSTR0/PPPwn")
os.system("clear")
print(f"[+] Install Python Libarys...")
os.system("sudo pip install -r requirements.txt")
os.system("sudo apt install python3-scapy")
print(f"{green}[+] Finished Part 1/2")
print(f"{blue}[+] What Firmware do you use?")
fwr = input("FW [e.x 9.00 = 900, 11.0 = 1100] > ")
print(f"{magenta}[+] Compiling Payloads...")
os.system(f"cd PPPwn && make -C stage1 FW={fwr} clean && make -C stage1 FW={fwr}")
os.system(
"wget https://github.com/Crafttino21/PS4Rootkit/raw/main/ingnore/stage2.zip && unzip stage2.zip && mv -f stage2/stage2.bin PPPwn/stage2 && clear")
os.system("rm -rf stage2.zip && rm -rf stage2")
os.system("clear")
print(red + warning1)
rtz = input(" > ")
if rtz == "DONE":
os.system("clear")
print(
f"{green}Now connect a LAN-Cable to your PS4! If you use a VM Set your Network from NAT to Network Bridge!")
print("After doing that, Please restart the script and press '6'!")
time.sleep(8)
exit()
else:
print("please type 'DONE'!")
time.sleep(8)
exit()
def run_goldhen(): # Run GoldHEN
print(red + warning2)
elsa = input("Write 'DONE' to Continue! > ")
if elsa == "DONE":
print(f"{magenta} [+] Configuration")
pat = input("[+] Path of PPPwn > ")
os.system("ifconfig")
print(remi)
adp = input("[+] Input your Network adapter name [e.x enp0s3] > ")
fwr2 = input("[+] Firmware Version [e.x 9.00 = 900, 11.0 = 1100] > ")
print(
f"{magenta}[!] REMINDER: If you get the corrupted data failed.. please try again Run this script here again!")
time.sleep(5)
print(f"{green}[*] Launch Exploit..")
print(gold + ghbanner)
os.system(f"cd {pat} && sudo python3 pppwn.py --interface={adp} --fw={fwr2}")
else:
print("Please Accept the Warning!")
red = Fore.RED
magenta = Fore.MAGENTA
blue = Fore.BLUE
green = Fore.GREEN
gold = Fore.YELLOW
print(red + banner)
print(f"{magenta}Do you wanna Prepare the first run or Just rerun the exploit?")
print(menu)
xddr = input(" > ")
if xddr == "1":
methods.first_run()
elif xddr == "2":
methods.exploit()
elif xddr == "3":
methods.install_lm_loader()
elif xddr == "4":
methods.run_lm_loader()
elif xddr == "5":
methods.install_goldhen()
elif xddr == "6":
methods.run_goldhen()
else:
print(f"{red}Invalid Input")