• Stars
    star
    126
  • Rank 284,543 (Top 6 %)
  • Language Makefile
  • Created over 6 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐳 Kali Linux desktop running in Docker on any operating system, in your web browser or a VNC client, with Kali top10 tools pre-installed.

lukaszlach / kali-desktop

Docker pulls Docker stars

Kali Desktop provides Docker images with Kali Linux and a VNC server. This project allows you to pick Kali Linux version, favorite desktop environment, and run it on any system - Linux, MacOS or Windows - to access remotely and execute commands using a VNC client or a web browser.

  • Kali Linux 2018.2
    • Xfce - :xfce
    • LXDE - :lxde
    • KDE - :kde
  • Kali Linux 2018.2 with Top10 tools pre-installed
    • Xfce - :xfce-top10

Running

All required services and dependencies are inside the Docker images so only web browser and one command are needed to start kali-desktop:

However the most common case is kali-desktop running with host network in privileged mode, so tools like network sniffing work properly and with full speed without Docker network filtering the traffic. See all available Docker image tags on Docker Hub.

# run on host network
docker run -d --network host --privileged lukaszlach/kali-desktop:xfce

# run on Docker network
docker run -d -p 5900:5900 -p 6080:6080 --privileged lukaszlach/kali-desktop:xfce

After the container is up you can access Kali Linux Desktop under http://localhost:6080, the hostname can differ if you are doing this on a remote server. vnc_auto.html will connect you automatically, vnc.html allows some connection tuning.

Docker for Mac works inside a small virtual machine which IP you must use to access the exposed ports or use service like Dinghy.

If you want to customize the container behavior you can pass additional parameters:

docker run -d \
    --network host --privileged \
    -e RESOLUTION=1280x600x24 \
    -e USER=kali \
    -e PASSWORD=kali \
    -e ROOT_PASSWORD=root \
    -v /home/kali:/home/kali \
    --name kali-desktop \
    lukaszlach/kali-desktop:xfce

Run parameters:

  • --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 1280x600x24
  • -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-feel

Exposed ports:

  • 5900/tcp - VNC
  • 6080/tcp - noVNC, web browser VNC client

Extending

Create Dockerfile.xfce-web and modify the image as desired, below example installs Kali Linux web application assessment tools:

FROM lukaszlach/kali-desktop:xfce

RUN apt-get update && \
    apt-get install -y kali-linux-web \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

Build the image:

docker build \
    -f Dockerfile.xfce-web \
    -t kali-desktop:xfce-web \
    .

Run the image:

docker run --network host --privileged kali-desktop:xfce-web

Licence

MIT License

Copyright (c) 2018 Łukasz Lach [email protected]

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.

More Repositories

1

docker-tc

🐳 🚦 Docker Traffic Control - network rate limiting, emulating delays, losses, duplicates, corrupts and reorders of network packets using only container labels or a command-line interface.
Shell
661
star
2

commando

🐳 Container registry which provides you all the commands you need in a lightweight Alpine image. DevOps and SysOps best friend. https://command-not-found.com
Shell
534
star
3

clip

🐳 Docker Client Plugins Manager - build new plugins, publish them on Docker Hub or just try some plugins from the catalog and install them locally
Shell
131
star
4

satis-server

🐳 Private, self-hosted Composer/Satis repository with unlimited private and open-source packages and support for Git, Mercurial, and Subversion. HTTP API, HTTPs support, webhook handler, scheduled builds, Slack and HipChat integration.
Shell
113
star
5

orca

🐳 Orca | Docker workshop
Go
32
star
6

consul-conf

🐳 Consul.conf provides responsive web interface for managing configuration of your services in Consul key-value storage through beautiful and customizable dashboards, distributed as a lightweight Docker image.
PHP
32
star
7

code-container

🐳 Microsoft Visual Studio Code running in a Docker container, accessible through a web browser and aimed for Docker development.
Shell
27
star
8

magento-docker

🐳 Bootstrap Magento 1.9 / 2.1 installation in Docker with fully integrated Kibana, Grafana, Portainer, cAdvisor, Prometheus, MailCatcher and more
VCL
22
star
9

docker-file

🐳 Parse and validate Dockerfile, docker-compose.yml, .env and .dockerignore files and return their contents in JSON format for further analysis.
Go
19
star
10

docker-movie

🐳 Docker Movie converts a movie file (avi, mp4, mpg, mkv, etc.) into a "playable" Docker image
Shell
6
star
11

gitlab-docker-playground

🐳 Playground for running GitLab and GitLab Runner in Docker
Makefile
3
star
12

libvmod-shell

🐚 Varnish Module (VMOD) for executing long-running shell commands with support of two-way communication and command interface based on one-line request and one-line response, allows you to use any programming language or sh scripting and expose it's features to VCL.
C
3
star
13

varnish-docker-playground

Playground for learning basics of Varnish 6, all set up in Docker with upstreams on PHP 7.2.
VCL
2
star
14

selenium-docker-playground

Selenium Hub and Nodes (Chrome, Firefox) in Docker + Node.js / Jasmine test running in Docker on this stack
JavaScript
2
star
15

lukaszlach

1
star
16

orca-gitlab

🐳 Orca | Docker workshop
Makefile
1
star
17

uw-docker

PHP
1
star