Giter Site home page Giter Site logo

3v1ltw1n0x01 / kali-linux-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onemarcfifty/kali-linux-docker

0.0 0.0 0.0 23 KB

Run Kali Linux in a Docker Container

License: GNU Lesser General Public License v2.1

Shell 52.41% Dockerfile 47.59%

kali-linux-docker's Introduction

kali-linux-docker

language License Last Commit FileCount Stars Forks

A Docker solution for running a local, customizable full Kali Linux distribution.

Configure the container with the following options:

  • Exposed ports (vnc, x2go, rdp, ssh)
  • Desktop environment(xfce, kde, gnome, mate, etc.)
  • Remote access software (vnc, x2go, rdp)
  • Kali packages to install (core, default everything, etc.)
  • Network configuration (host, bridge)
  • Build platform (amd64, arm64, etc.)
  • Local Docker image name
  • Docker container name
  • Host directory to mount as volume
  • Container directory for volume mount
  • Container username
  • Container user password

how to build

Download all the files into a subdirectory on Docker host, e.g. /home/marc/kali-linux docker then cd into that directory.

Create a copy of the env_template file, and name it env. Enter the desired configuration for each variable.

Run the build script:

`sudo ./build`

If a variable isn't set in the env file, the build script asks for all the options then:

  1. builds the local Docker image
  2. Creates the container from the created image
  3. Starts the new container

So in a nutshell, the complete command sequence in a Linux shell to install on a Debian or Ubuntu Linux would be:

apt update
apt install git
git clone https://github.com/onemarcfifty/kali-linux-docker.git
cd kali-linux-docker
cp env_template env
[fill_in_env_variables]
sudo ./build

how to use

Connect to the container by launching the software for the configured remote access technique or via SSH. The default ports defined in the script are as follows:

  • RDP on port 13389
  • ssh / x2goserver on port 20022
  • vnc on port 5908 / display :8

All user name and password are configured in the env file or promted by the build script.

more info

Find all details on my youtube channel

You may also want to join THE ONEMARCFIFTY DISCORD SERVER and chat life with me and/or others - cu there ;-)

known issues

  • RDP seems to only work with XFCE desktop
  • Not all combinations of remote access protocols with various desktop environments are working

troubleshooting/tips

  • When using RDP and XFCE, the desktop will take a moment to load the first time (about five seconds or less)

TODO

  • Disable desktop sleep, screenlock, etc.

kali-linux-docker's People

Contributors

onemarcfifty avatar 3v1ltw1n0x01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.