xct's notes
Search…
Binary Exploitation

Pwn Docker

The idea is to use the system libraries of ubuntu installations since these are often used in ctf challenges.
1
sudo docker run --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v `pwd`:/pwn -it ubuntu:19.04 /bin/bash
2
sudo docker cp sources.list 5ddb017b6340:/etc/apt/sources.list
3
In docker:
4
apt-get install nano python3 python3-pip gdb libc6-dbg patchelf ruby tmux
5
python3 -m pip install pwn
6
cd pwndbg; ./setup.sh
7
patchelf --set-rpath /lib/x86_64-linux-gnu/ <binary>
8
gem install one_gadget
Copied!
Last modified 1yr ago
Copy link