Skip to content

Manual Setup

DeadPackets edited this page Apr 1, 2021 · 2 revisions

1. Pull the Image

Use the command below to pull the container from Docker Hub (replace with TAG_NAME with what version you want, as explained above):

docker pull deadpackets/pwnbox:TAG_NAME

Alternatively, you can pull the same image from the Github Container Registry instead:

docker pull ghcr.io/deadpackets/pwnbox:TAG_NAME

Or you can just clone the container to build directly from the source:

git clone https://github.com/deadpackets/pwnbox.git && cd pwnbox && docker build . -t pwnbox:local-build # You can potentially add build arguments here (see below)

2. Run the Container

Use the command below to run the container using the docker command:

docker run -d --name pwnbox --privileged --hostname pwnbox --network host -v $HOME/.pwnbox/home:/root -v $HOME/.pwnbox/external:/mnt/external deadpackets/pwnbox:TAG_NAME

NOTE: If you are not on Linux, --network host will not work. In that case, use the alternative command below (feel free to forward any more ports, but 2222 is needed for ssh):

docker run -d --name pwnbox --privileged --hostname pwnbox -p 2222:2222 -p 9000-9010:9000-9010 -v $HOME/.pwnbox/home:/root -v $HOME/.pwnbox/external:/mnt/external deadpackets/pwnbox:TAG_NAME

Alternatively, you can just edit the docker-compose.yml file included with this repository to suit your use and run docker-compose up -d.

3. Access the Container

You can now access the container using ssh as the user root and the password toor on port 2222:

ssh root@127.0.0.1 -p 2222 # The password is toor when prompted

Clone this wiki locally