
Click on the search, type Linux and hit enter. This will launch Microsoft Store app. To install Kali Linux (or any other GNU/Linux distribution), open Run dialog (Windows key + R), then type ms-windows-store: without quotes and hit enter.
Sometimes when you need to quickly spin up a tool in can be cumbersome to have to boot up the full VM to get it running.Video Notes: Install Kali Linux on Windows 10 in under 5 minutes (full tutorial) using WSL 2. This workflow has been working fine for sometime now, however I have been wanting something that is a bit more natural, quick and easy to use. I am typically on my Surface Pro 4 using Windows 10 and using VMWare Workstation. Like most people I have been running an instance of Kali in a virtual machine. Select Kali Linux and click on.
If they are, delete the symlinks. Enter the installed Kali as root and check if the bin as well as the sbin folders are symlinks. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux.wsl -set-version kali-linux 1.
The Kali for Windows application allows one to install and run the Kali Linux open-source penetration testing distribution natively, from the Windows 10 OS.Recently I have found Docker as a way to containerise a Kali instance. Enter the distro again as root and apply. Wsl -set-version kali-linux 2. Get out of Linux and convert your installation to WSL2.
Activating the Windows Subsystem for Linux. Installing Docker for Windows.Installing Kali Linux on Windows 10 Subsystem 1. This post will take you through setting up and configuring an instance of Kali Linux in Docker on Windows 10.

Kali On Windows10 Download The Docker
For those that are also running VMWare Workstation or VirtualBox this will mean that these Virtual Machine applications will not run. Running DockerWhen you run docker for the first time, if you do not have Hyper-V enabled it will ask you to turn it on. It will see you need to log out of your account and back in, and you will need to make sure you are an administrator to make sure the installation goes smoothly. Using, Win + r, enter ‘optionalfeatures’ to access the ‘Turn Windows Features on or off’ prompt.Tick the box next to Containers and then click ‘Ok’.Browse to Dockers home page and download the Docker for Windows Community Edition.After Downloading, follow the bouncing ball to install Docker.
Or you can install Kali’s meta-packages. You can install the individual tools that you need yourself. The first thing to do, is to update the repositories, upgrade whats there and remove what we dont need: apt update & apt full-upgrade & apt auto-remove & apt auto-cleanYou have a number of options for installing Tools. This allows you to full customise the Kali instance to contain as many tools as you want/need. Once downloaded you can run the container with the following command: docker run -it kalilinux/kali-linux-dockerThe ‘-it’ option allows you to open an interactive session with the container.You will now be presented with the command prompt of your Kali instance.The kali instance you download has no tools installed at all. Installing KaliNow that docker is running, open up your prefered command prompt (cmd.exe, PowerShell, I am using Cmder which is great!) and run the following command: docker pull kalilinux/kali-linux-dockerThis will download the offical Kali Linux Docker image to your computer.
However, if you are like me you will have multiple terminal open at once, which means we need to commit our current container to an image, so that we can load multiple containers off that one image. To view your active container type: docker ps -aNow, we can re-enter our container by typing: docker start a8c6b00c02caNote that - ‘a8c6b00c02ca’ is the container ID, this ID will be specific to your container and will change for every container you create.After re-starting your container, you can enter it by typing: docker attach a8c6b00c02caThis method will work well if you only have to have the one Kali container open. Committing the ImageNow you can exit your container by simplying type ‘exit’. This includes all the things you find in /usr/share/ such as wordlists, password files, directory brute forcing files, Webshells etc, etc. To do this run the following: apt-get install kali-linux-fullNow, there are other options to install the Kali tools such as the Katoolin script, however, using the offical Kali docker image with the metapackages gives you the extra ‘goodies’ that Kali has other than just the tools. If you are not sure, the best option is to simply install the kali-linux-full package as it contains all the tools you would get if you downloaded and installed the.
I will often only omit the ‘–rm’ option when I am making system changes that I want to persist in my Kali Docker image (following the process described above).From here I can spin up as many containers as I need to get my work done. This is beneficial as if we didn’t remove it automatically we could potentially have multiple containers building up on our system chewing up hard disk space and resources. We can view the images we have in Docker by running the following command: docker imagesFrom here, we can now remove our container using the commands: docker rm a8c6b00c02ca Starting Kali ContainersNow that we have our new image, we can start a new container with the following command: docker run -it -rm kaliThe option ‘–rm’ means that our kali container will be removed as soon as we exit it.
I have not been able to get Kali’s GUI applications to run successfully after trying different X-server options such as XMing and Cygwin/X. IssuesUsing Kali in Docker is far from perfect. So, when I set up my reverse listener on a target I want to direct it to the IP address of my host machine, not the IP address of my docker instance. Docker run -it -rm -p 4444:4444 kaliThis maps port 4444 in my docker instance to the port 4444 on my host machine. Therfore, if I know I am going to be using a port in my docker instance I need to enable it when I run docker.
However when doing Vulnhub VM’s, I need to either put the VMs on my ESXI server at home or I need to use my Kali VM. I have found it particularly useful whilst working my through the machines on Hack the Box. It is quick and seemless to open up a Kali command prompt and start hacking away. ConclusionI have become a huge fan of this set up with Docker. This means I either need to find Windows alternatives or boot into my Kali VM to use these devices.
