Just a Dockerfile with some tools I use for CTFs.
You can easily use the image by running:
docker run --rm -it mdval/kali-docker bash
However, this is how I usually start the container:
docker run --name kali --rm -it -p 1123-1133:1123-1133 --mount src=kali-docker-root,dst=/root --mount src=kali-docker-postgres,dst=/var/lib/postgresql mdval/kali-docker bash
-p 1123-1133:1123-1133
: This will publish ports for 1123 to 1133, so we can usenc -lvnp 1123
from the container, for example--mount src=kali-docker-root,dst=/root
: This will save the home directory in a volume, to make it persistent--mount src=kali-docker-postgres,dst=/var/lib/postgresql
: This will save Postgres databases in a volume, to make it persistent
By using --name kali
, you can easily get a new connection to the container by running:
docker exec -it kali bash
make build