Skip to content

Instantly share code, notes, and snippets.

@sl4v
Last active April 18, 2017 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sl4v/7bb097ac596a8bcf3797441c4db5b8b0 to your computer and use it in GitHub Desktop.
Save sl4v/7bb097ac596a8bcf3797441c4db5b8b0 to your computer and use it in GitHub Desktop.
apt install execstack
gcc -m64 -fno-stack-protector -z execstack -o bof bof-gets.c
echo 0 > /proc/sys/kernel/randomize_va_space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment