docker-pwn

$ docker build -t pwn:latest .
$ alias pwn='docker run --privileged -ti --rm -u user -v ~/vmshare:/pwn -w /pwn -p 2323:2323 pwn bash'
$ cp pwnable ~/vmshare && pwn
user@pwn:/pwn$ socat TCP-LISTEN:2323,reuseaddr,fork EXEC:./pwnable
$ echo AAAA | nc $(docker-machine ip) 2323

edit ~/.gdbinit for pwndbg vs. gef

Includes