fork of lukaszlach/kali-desktop using a recent kali-rolling image as base
2.7K
Fork of lukaszlach/kali-desktop
Added an arm64 build to justify using a MacBook :)
Modified because the kali-desktop image that lukaszlach uses and his own image have not been updated in almost 2 years.
Like the original image all dependencies are included. After starting the image you can open your webbrowser at http://localhost:6080/vnc_auto.html and start.
docker run -d \
-p 5900:5900 -p 6080:6080 \
--privileged \
-e RESOLUTION=1280x1024x24 \
-e USER=${USER}\
-e PASSWORD=kali \
-e ROOT_PASSWORD=root \
-v ${HOME}/kali:${HOME} \
--name kali-desktop \
ccharon/kali-desktop:latest
--network host - optional but recommended, use the host network interfaces, if you do not need to use this option you have to manually publish the ports by passing -p 5900:5900 -p 6080:6080--privileged - optional but recommended-e RESOLUTION - optional, set streaming resolution and color depth, default 1280x1024x24-e USER - optional, work as a user with provided name, default root-e PASSWORD - optional, provide a password for USER, default kali-e ROOT_PASSWORD - optional, provide password for root, default root-v /home/kali:/home/kali - optional, if USER was provided it is a good idea to persist user settings, work files and look-and-feel5900/tcp - VNC6080/tcp - noVNC, web browser VNC clientSimple docker compose file without persistent home and without privileged networking
docker build -f Dockerfile -t kali-desktop:latest .
mostly for myself as it took me a while to understand 😁
At first the kali-rolling docker image gets extended by:
Then the S6 init overlay gets installed. There are several scripts controlled by s6 that make this image work.
When launching a container 01-init is executed. This creates the specified user and sets the provided passwords.
After init, some service get started
xvfb - xserver that does not need a graphics card, it provides a virtual framebuffer and has no real input devices
gui starts XFCE the graphical desktop environment
x11vnc VNC Server to connect via noVNC
websockify translate noVNC Websocket to TCP
See all available Docker image tags on Docker Hub.
MIT License
Copyright (c) 2018 Łukasz Lach [email protected]
Copyright (c) 2021 ccharon
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Content type
Image
Digest
Size
1.6 GB
Last updated
over 4 years ago
docker pull ccharon/kali-desktop