kesto.de Cheatsheets

gcc

Disable stack-pointer protection

gcc -fno-stack-protector execute.c

Make stack executable

gcc -z execstack execute.c

Compile for 32 bit architecture

gcc -fno-stack-protector -m32 execute.c

Turn off address space randomization (Linux kernel)

echo 0 > /proc/sys/kernel/randomize_va_space