A Dockerize Kali Linux environment with XFCE desktop accessible via VNC — offering a lightweight (compared to VirtualBox), powerful, and isolated setup for penetration testing.
- Kali Linux (rolling)
- XFCE4 desktop environment
- VNC server on port 5901
- Pre-configured user:
kali/ password:kali - Root password:
root - Easy setup and start/stop aliases
- Docker should be installed on your system
git clone https://github.com/hexadivine/kali-vnc.git
cd kali-vnc
./install.shstartkalistartkali is an alias to sudo docker start kali-vnc. Execute command startkali to start the VNC Server on port 5901. Use this command if GUI access is necessary.
runkalirunkali is an alias to sudo docker exec -it kali-vnc /bin/zsh. This provides CLI to execute kali-tools from host terminal.
Note: Use tmux inside Kali CLI for multitasking.
stopkalistopkali is an alias to sudo docker stop kali-vnc. Use this command to stop the container.
git clone https://github.com/hexadivine/kali-vnc.git
cd kali-vnc
./uninstall.sh