Buffer Overflow
A buffer overflow occurs when a program writes more data to a buffer than it can hold, overwriting adjacent memory such as return addresses.
By carefully crafting input, you can redirect execution flow to arbitrary code.
- Buffer overflow pattern generator: Web utility for 32‑bit & 64‑bit patterns
- Pwntools:
cyclic(n)-> generate pattern /cyclic_find(offset)-> find crash offset
Example (64‑bit pattern):
from pwn import *
pattern = cyclic(200)
print(pattern)