Skip to content

homework

Software security / memory safety

Verify QEMU

qemu-system-x86_64 –version

Go to Downloads

cd ~/Downloads

Boot Protostar

qemu-system-x86_64 -boot d -cdrom exploit-exercises-protostar-2.iso -m 512

Navigate to exercises

cd /opt/protostar/bin

List challenges

ls

Run first challenge

./stack0

View source

cd /opt/protostar/source cat stack0.c

Test buffer overflow

python3 -c “print(‘A’*100)” | /opt/protostar/bin/stack0

Optional debugging

gdb /opt/protostar/bin/stack0