ProAdmin007 / kali-docker-vnc-novnc

This Kali Linux Docker container offers a full desktop experience by using the x11vnc to provide a VNC connection to the container and novnc for simple VNC access with your browser.
MIT License
3 stars 3 forks source link

Kali Linux latest Docker Container with XFCE Desktop over VNC / noVNC

Did you ever wanted to start a fully-fledged Kali Linux Docker container with a full desktop experience? If so, then this Docker image suits your needs: it provides quick access to all Kali Linux tools via CLI and even a Kali Desktop of your choice – directly from within the Docker container. Therefore, it uses the x11vnc to provide a VNC connection to the container and novnc for simple VNC access with your browser.

IMPORTANT: This image is for testing purposes only. Do not run it on any production systems or for any productive purposes. Feel free to modify it as you like – build instructions are given below.

TO DO

1) Pull

First, pull the image:

docker pull proadmin007/kali-docker-vnc-novnc:default

You can also pull images with preconfigured metapackages: iphoneintosh/kali-docker:default, iphoneintosh/kali-docker:large, or iphoneintosh/kali-docker:top10.

2) Run

Second, start a new container from the previously pulled image. This opens a new shell on your console as well as a Kali Desktop which you can access in your browser on https://localhost:8080/vnc.html.

docker run -itd -p 9020:8080 -p 9021:5900 proadmin007/kali-docker-vnc-novnc:default

The default configuration is set as follows. Feel free to change this as required.

Customization

You can also build a custom image, i.e., if you want to use another Kali Desktop. If so, you can simply pass the Kali Desktop of your choice (i.e., mate, gnome, ...) as build argument. By default, the XFCE Desktop is configured. You may also edit the Dockerfile or entrypoint.sh to install custom packages. Also, you can specify different Kali Linux metapackages, i.e., core, default, light, large, everything, or top10. See https://www.kali.org/news/major-metapackage-makeover/ for more details and metapackages.

git clone https://github.com/ProAdmin007/kali-docker-vnc-novnc
cd kali-docker-vnc-novnc
docker build -t kaligui .
docker run --rm -it -p 9020:8080 -p 9021:5900 kaligui