add the pwnenv
command to your .bashrc for quick pwn environment:
pwnenv() { docker run -it --rm --security-opt seccomp=unconfined --cap-add SYS_PTRACE -v .:/pwn pepsipu/pwn; }
you're done!
you can also add this to an existing docker file (or use the command seperately to setup pwn tooling):
# note that you need curl! RUN apt update && apt install curl
RUN bash -c "$(curl -fsSL https://sh.pepsi.pw/)"
if you prefer docker compose, you can start a pwn container with:
# PWN_DIR specifies the shared directory between the docker and host
PWN_DIR=~/ctf docker compose run pwn
typically, you will need to change the FROM
at the top of the Dockerfile to match the distribution of a ctf challenge
then, rebuild with tag pepsipu/pwn (so that it overwrites the remote tag pepsipu/pwn)
docker build . --file Dockerfile --tag pepsipu/pwn:latest
add pwninit