We are going to try to follow this tutorial:
http://blog.techorganic.com/2015/04/10/64-bit-linux-stack-smashing-tutorial-part-1/
-
Install ubuntu 14.10 VM
-
Set apt-get for older releases. See: http://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release
$ sudo sed -i -re 's/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
-
Install tools $ sudo apt-get update $ sudo apt-get install vim git
-
Clone this repo
$ git clone git@github.com:nchong/rop.git
-
Get the python exploit development assistance for gdb
$ git clone https://github.com/longld/peda.git ~/peda $ echo "source ~/peda/peda.py" >> ~/.gdbinit
-
Turn off ASLR
$ su $ echo 0 > /proc/sys/kernel/randomize_va_space $ exit
-
Compile and run classic.c
$ gcc -fno-stack-protector -z execstack classic.c -o classic $ ./classic