-
Notifications
You must be signed in to change notification settings - Fork 8
Manual Setup
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_NAMEAlternatively, you can pull the same image from the Github Container Registry instead:
docker pull ghcr.io/deadpackets/pwnbox:TAG_NAMEOr 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)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_NAMENOTE: 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_NAMEAlternatively, you can just edit the docker-compose.yml file included with this repository to suit your use and run docker-compose up -d.
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