11/24/2021»»Wednesday

Kali Linux Container

You wanna practice and that pesky virtual image is too hard/tiresome/pesky to setup and run on your machine?

Well, what about a Kali Linux docker container that you can use all your tools from and also run GUI apps if you’re so inclined?!

Step - 1: Download & Run the Kali Linux Docker image

Here’s the official link and honestly it covers almost everything: Kali Linux Docker

These containers are similar to virtual machines, but they use the Linux Container functionality of the Linux kernel. Compared to VMs, you can have dozens of system containers on a computer, and they run fast. A few months ago, a Kali developer created a container image for Kali Linux, and it is now available to use. Recon Tainer ⭐ 2. A docker container that will enumerate subdomains and then filters out injection point parameters and much more. Pentest Toolbox ⭐ 2. Offensive cybersecurity toolbox within a container. Secondary Domain Tasks 20 ⭐ 2. Secondary Domain Tasks for the Summer of 2020. Ctf Kali Linux ⭐ 1. A docker image for CTFs.

Step -2: Setup your Kali with meta-packages

Another great official link: Kali meta-packages

Step -3: Allow VPN connections!

We all know how handy and important VPNs are.So adding the following command when running your docker container allows connections to pass through(also allowing ipv6):

Step -4: Allow GUI apps to access X server!

Install xhost package from your distribution package manager (mostly it’s just named xorg-xhost)and run the following command to allow remote hosts to connect to the X server before starting your docker container with:

for the docker GUI X clients we need to add the following arguments to setup the X connection properly:

Tip: Remember to deny remote hosts after closing your docker container! ( just run xhost - for it)

Step -5: Profit!

Here’s the complete command:

Here’s a link for a nifty little script that packages everything (My docker image is named kali_pt): https://github.com/amar-laksh/kali_pt/blob/master/kali.sh

You wanna practice and that pesky virtual image is too hard/tiresome/pesky to setup and run on your machine?

Well, what about a Kali Linux docker container that you can use all your tools from and also run GUI apps if you’re so inclined?!

Step - 1: Download & Run the Kali Linux Docker image

Here’s the official link and honestly it covers almost everything: Kali Linux Docker

Step -2: Setup your Kali with meta-packages

Another great official link: Kali meta-packages

Step -3: Allow VPN connections!

We all know how handy and important VPNs are.So adding the following command when running your docker container allows connections to pass through(also allowing ipv6):

Step -4: Allow GUI apps to access X server!

Install xhost package from your distribution package manager (mostly it’s just named xorg-xhost)and run the following command to allow remote hosts to connect to the X server before starting your docker container with:

for the docker GUI X clients we need to add the following arguments to setup the X connection properly:

Tip: Remember to deny remote hosts after closing your docker container! ( just run xhost - for it)

Step -5: Profit!

Virtualbox

Kali linux container

Kali Linux Container Code

Here’s the complete command:

Kali Linux Container Architecture

Here’s a link for a nifty little script that packages everything (My docker image is named kali_pt): https://github.com/amar-laksh/kali_pt/blob/master/kali.sh

Most Viewed Posts