Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.67 KB

File metadata and controls

29 lines (21 loc) · 1.67 KB

pwn_docker_example

Example pwnable CTF challenge hosted with docker. We used this code to run a challenge in a server setup with docker, and then use a docker container as a CTF OS to write and run the exploit.

Related Binary Exploitation Resources:

There is also a whole playlist using challenges from https://exploit.education. Later episodes explore some 64bit challenges and goes over various pitfalls:

More Docker Videos

Improvement

Build the ctf container(s), and start with docker run --rm -it -v `pwd`:/home/pwntools pwn tmux (Credits for the great and simple Dockerfile, tmux config and geff for pwn: https://github.com/Z6543/hackersuli_pwntools) If you run the containers on remote vps, you can use code-server to edit the code in you browser: docker run -it --rm --name code-server -d -p 8081:8080 \ -v "`pwd`/.vs-config:/root/.config" \ -v "`pwd`:/home/coder/project" \ -u "$(id -u):$(id -g)" \ -e "DOCKER_USER=$USER" \ codercom/code-server:latest