Skip to content

Commit

Permalink
Build FTP payload into script, autoedits to PS4's IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Azif committed Jan 4, 2018
1 parent 93a4ba5 commit 873667f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 73 deletions.
73 changes: 14 additions & 59 deletions makeftp.py

Large diffs are not rendered by default.

36 changes: 22 additions & 14 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import time

import FakeDns.fakedns as fakedns
from makeftp import make_ftp
except ImportError:
if sys.version_info.major < 3:
print('ERROR: This must be run on Python 3')
Expand All @@ -30,6 +31,7 @@
sys.exit()
else:
print('ERROR: Import Error')
print('Download from the releases page or clone with `--recursive`')
try:
input('Press [ENTER] to exit')
finally:
Expand Down Expand Up @@ -290,25 +292,31 @@ def payload_brain(ipaddr):
payloads.append(files)
except IOError:
pass
if not payloads:
print('>> No payloads found')
elif AUTOSEND in payloads:

if AUTOSEND in payloads:
with open(os.path.join(PAYLOAD_LOC, AUTOSEND), 'rb') as buf:
print('>> Sending {}...'.format(AUTOSEND))
content = buf.read()
send_payload(ipaddr, 9020, content)

payloads.insert(0, 'Don\'t send a payload')
payloads.insert(1, 'Integrated FTP')
choice = menu('Payload', payloads)
if choice == 1:
print('>> Sending integrated FTP...')
content = make_ftp(ipaddr)
send_payload(ipaddr, 9020, content)
print('>> Connect at {}:1337'.format(ipaddr))
send_another(ipaddr)
elif choice != 0:
path = os.path.join(PAYLOAD_LOC, payloads[choice])
with open(path, 'rb') as buf:
print('>> Sending {}...'.format(payloads[choice]))
content = buf.read()
send_payload(ipaddr, 9020, content)
send_another(ipaddr)
else:
payloads.insert(0, 'Don\'t send a payload')
choice = menu('Payload', payloads)
if choice != 0:
path = os.path.join(PAYLOAD_LOC, payloads[choice])
with open(path, 'rb') as buf:
print('>> Sending {}...'.format(payloads[choice]))
content = buf.read()
send_payload(ipaddr, 9020, content)
send_another(ipaddr)
else:
print('>> No payload sent')
print('>> No payload sent')


def send_another(ipaddr):
Expand Down

0 comments on commit 873667f

Please sign in to comment.