A Docker-based Kali Linux lab for pentesting, CTFs, and bug bounty hunting.
You will need to download and install Docker Desktop prior to using this lab.
The first time setup will take around 20+ minutes to complete.
- Clone this repository.
./install.sh
ssh hacklab
See theDockerfile
for the default root password.- Change root's password:
passwd
.
Build and start container:
docker compose up -d
Start already built container:
docker compose start hacklab
Stop container:
docker compose stop hacklab
Destroy container:
docker compose down
ssh hacklab
Set the SOCKS proxy settings (localhost:1337
) under the "User options" tab of Burp Suite to proxy traffic from the host through the lab. This requires having an active SSH connection to the lab with dynamic port forwarding enabled to work.
It is also possible that a host key has just been changed.
If you see this error after a complete rebuild (meaning the root volume was deleted and recreated), you will need to delete the lab's host key from your ~/.ssh/known_hosts
file. It will start with something like this: [localhost]:2222 ecdsa-sha2-nistp256
.
[] Replace install of kali-linux-headless
metapackage with handpicked tools to get build size and time down.
[] Incorporate dotfiles.