Skip to content

Commit fd531e0

Browse files
committed
Add support for sending multiple payloads with 1 exploit load (Exploit must support this)
1 parent e8d5efa commit fd531e0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

start.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,27 @@ def payload_brain(ipaddr):
251251
print('>> Sending {}...'.format(payloads[choice]))
252252
content = buf.read()
253253
send_payload(ipaddr, 9020, content)
254+
send_another(ipaddr)
254255
else:
255256
print('>> No payload sent')
256257

257258

259+
def send_another(ipaddr):
260+
choice = 0
261+
while choice != 'Y' and choice != 'N':
262+
choice = input('Send another payload? (Y/n): ')
263+
try:
264+
choice = choice.upper()
265+
except (ValueError, NameError):
266+
choice = 0
267+
if choice == 'Y':
268+
thread = threading.Thread(name='Payload_Brain',
269+
target=payload_brain,
270+
args=(ipaddr,),
271+
daemon=True)
272+
thread.start()
273+
274+
258275
def send_payload(hostname, port, content):
259276
"""Netcat implementation"""
260277
soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

0 commit comments

Comments
 (0)