ommadawn46 / stack-bof

Stack-based Buffer Overflow - Vulnerable binaries and exploit samples for pwnable beginners

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stack Buffer Overflow - Protection Bypass Techniques

Stack_Buffer_Overflow_Exploit.pdf

Quick Start

docker build -t stack-bof .
docker run \
  --rm \
  -v $(PWD):/stack-bof \
  --cap-add=SYS_PTRACE \
  --security-opt="seccomp=unconfined" \
  -it stack-bof \
  tmux
cd /stack-bof

Write an exploit code from the template

cd ./0_ret2win
cp ../.util/exploit_template.py ./my_exploit.py
vim ./my_exploit.py

Run an exploit with GDB

python3 exploit.py NOASLR GDB

Run tests

python3 -m unittest discover .test/ "*_test.py"

About

Stack-based Buffer Overflow - Vulnerable binaries and exploit samples for pwnable beginners


Languages

Language:Python 75.3%Language:Makefile 14.6%Language:C 6.3%Language:Dockerfile 3.8%