-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathFuzzer.py
More file actions
21 lines (21 loc) · 712 Bytes
/
Copy pathFuzzer.py
File metadata and controls
21 lines (21 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
import socket, time, sys
ip = "127.0.0.1" # Add The Target IP here
port = 5555 # Add the Target Port
timeout = 5
prefix = "" # Adjust According to the Input your application is taking in (othervise leave blank).
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 the Target with {} bytes".format(len(string) - len(prefix)))
s.send(bytes(string, "latin-1"))
s.recv(1024)
except:
print("The Fuzzing crashed at {} bytes".format(len(string) - len(prefix)))
sys.exit(0)
string += 100 * "A"
time.sleep(1)