When playing CTFs I like to have all the tools ready to rock when needed. This docker image will provide these tools installed on ubuntu:latest image.
The script(s) was forked from praetorian-inc/epictreasure
Similar configurations ctf-tools
git clone https://github.com/boogy/ctfbox.git
cd ctfbox
docker build -t ctfbox .
The image is also present on docker hub
docker pull boogy/ctfbox
Start the image
docker run -it boogy/ctfbox
If you have problems with gdb or gdbserver you can run the container in privileged mode and with the host network.
sudo docker run -it --privileged --net=host boogy/ctfbox
from pwn import *
context(arch = 'i386', os = 'linux')
r = remote('exploitme.example.com', 31337)
# EXPLOIT CODE GOES HERE
r.send(asm(shellcraft.sh()))
r.interactive()