Skip to content

Commit 873667f

Browse files
committed
Build FTP payload into script, autoedits to PS4's IP
1 parent 93a4ba5 commit 873667f

File tree

2 files changed

+36
-73
lines changed

2 files changed

+36
-73
lines changed

makeftp.py

Lines changed: 14 additions & 59 deletions
Large diffs are not rendered by default.

start.py

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import time
2222

2323
import FakeDns.fakedns as fakedns
24+
from makeftp import make_ftp
2425
except ImportError:
2526
if sys.version_info.major < 3:
2627
print('ERROR: This must be run on Python 3')
@@ -30,6 +31,7 @@
3031
sys.exit()
3132
else:
3233
print('ERROR: Import Error')
34+
print('Download from the releases page or clone with `--recursive`')
3335
try:
3436
input('Press [ENTER] to exit')
3537
finally:
@@ -290,25 +292,31 @@ def payload_brain(ipaddr):
290292
payloads.append(files)
291293
except IOError:
292294
pass
293-
if not payloads:
294-
print('>> No payloads found')
295-
elif AUTOSEND in payloads:
295+
296+
if AUTOSEND in payloads:
296297
with open(os.path.join(PAYLOAD_LOC, AUTOSEND), 'rb') as buf:
297298
print('>> Sending {}...'.format(AUTOSEND))
298299
content = buf.read()
299300
send_payload(ipaddr, 9020, content)
301+
302+
payloads.insert(0, 'Don\'t send a payload')
303+
payloads.insert(1, 'Integrated FTP')
304+
choice = menu('Payload', payloads)
305+
if choice == 1:
306+
print('>> Sending integrated FTP...')
307+
content = make_ftp(ipaddr)
308+
send_payload(ipaddr, 9020, content)
309+
print('>> Connect at {}:1337'.format(ipaddr))
310+
send_another(ipaddr)
311+
elif choice != 0:
312+
path = os.path.join(PAYLOAD_LOC, payloads[choice])
313+
with open(path, 'rb') as buf:
314+
print('>> Sending {}...'.format(payloads[choice]))
315+
content = buf.read()
316+
send_payload(ipaddr, 9020, content)
317+
send_another(ipaddr)
300318
else:
301-
payloads.insert(0, 'Don\'t send a payload')
302-
choice = menu('Payload', payloads)
303-
if choice != 0:
304-
path = os.path.join(PAYLOAD_LOC, payloads[choice])
305-
with open(path, 'rb') as buf:
306-
print('>> Sending {}...'.format(payloads[choice]))
307-
content = buf.read()
308-
send_payload(ipaddr, 9020, content)
309-
send_another(ipaddr)
310-
else:
311-
print('>> No payload sent')
319+
print('>> No payload sent')
312320

313321

314322
def send_another(ipaddr):

0 commit comments

Comments
 (0)