Not all Kali Linux tools are easy or possible to install on another operating system, so it is common to use a bootable USB or a VM to use them, but there is another solution such as using the official Kali Linux container for Docker.
To install, I recommend reading the following official docker instructions.
After having docker installed, the next step is to download the official image of Kali Linux.
To do this we execute the following:
We will proceed by creating the container with the following parameters:
–name this parameter names the container.
–net=”host” this parameter is used to make the programs inside the Docker container look like they are running on the host itself, from the perspective of the network. It allows the container greater network access than it can normally get.
–privileged along with –net It allows you to place the network interface in monitor mode and use the host content hardware such as bluetooth.
-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix these two parameters allow applications that require a graphic server to be run using the host’s.
-it This parameter allows the container to run in interactive mode in the current tty.
Kali Linux only provides a base image of Docker so it is necessary to install the rest of the packages using apt.
The complete reference as well as the download sizes of the metapackages is available on the Kali Linux site.
For example, to install the Kali-Linux metapackage we must execute the following:
Docker is an alternative not to depend on a USB memory, dual boot or a VM to use Kali Linux, in addition this form of installation allows you to use the tools as if they were part of the host where the container is located, similar to how they work applications with Snap.