Check Virtualbox for information on installing Virtualbox on your respective operating system.
Check VagrantUp for information on installing vagrant.
Run the following command in the VM:
gdb /bin/ls
Expected output:
Loaded 53 commands. Type pwndbg for a list.
Reading symbols from host-share/crackme...(no debugging symbols found)...done.
Only available when running
pwn>
Run the following command in the VM:
r2 /bin/ls
Expected output:
[0x00404890]> aaa
Run the following command in the VM:
python
>>> from pwn import *
>>> elf = ELF('/bin/ls')
[*] '/bin/ls'
Arch: amd64-64-little
RELRO: Partial RELRO
Stack: Canary found
NX: NX enabled
PIE: No PIE
FORTIFY: Enabled
>>> rop = ROP(elf)
[*] Loading gadgets for '/bin/ls'
Run the following commands in the VM:
source ~/angr/bin/activate
python
>>> import angr
>>>
Drop files in the host-share
folder on your host to find them on your VM at /home/vagrant/host-share