Run kali on windows 10

This is one method of trying out Kali linux directly on Windows 10 – it is an interesting idea but this setup of Kali on Windows is not optimal due to various environmental restrictions such as the lack of raw sockets therefore tools such as Nmap won’t work. Still, its a useful little testing ground if you do not want to try something like virtualbox, a live usb version or even it installed on a Raspberry Pi

STEP 1: Install Windows Subsystem for Linux

If you have already enabled the Windows Subsystem for Linux in your Windows, then you can skip to the step 2.

You have 2 ways you can do this, method 1

Navigate to Control Panel and go to “Apps and features”
Select “Programs and Features” from the right panel
Click the “Turn Windows features on or off” from the left menu
Select the “Windows Subsystem for Linux” and save it
Reboot your system

Or the powershell option which is method 2

Press the WINDOWS + X buttons and select the “Windows PowerShell (Admin) option in the menu that appears.
Enter this command to activate the WSL feature:

Enable -WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Press the Enter button.
Wait for the loading to complete.
When prompted to restart the computer, press “Y” and then “Enter” to reboot.

install wsl
install wsl

STEP 2: Install the official Kali Linux Application

Search for “Store” in the start menu and open it. You will probably have the Store already pinned somewhere on your PC
Look for “Kali Linux” in the Microsoft Store or you can visit https://www.microsoft.com/en-us/p/kali-linux/9pkr34tncv07?activetab=pivot:overviewtab
Click the “Get” button to begin the installation procedure.
Pin the Kali Linux to task bar by clicking the “…” button.

STEP 3 : Windows Defender update

Windows Defender may detect that Kali tools are malware or viruses and might block them from installing or running. To stop this you want to whitelist Kali by adding it to the Exclusion list of Windows Defender.

First of all, find the installation folder. It should be something like this

C:\Users\username\AppData\Local\Packages\

Replace the username with your username.

Look for the Kali Linux folder and copy its location. The name of the folder will begin KaliLinux
Search for and open the Windows Defender Security Center in the Start Menu.
Enter the Virus and Threat Protection section.
Click on the + icon under the exclusions section.
In the address bar of the popup, paste the copied address.
Select the folder and click on the Exclude the Folder button.

STEP 4 : installing tools

 

For example, for Metasploit framework, enter the folowing on the command line

sudo apt-get install metasploit-framework

Notes

Kali Linux on Windows base image does not contain any tools, or a graphical interface in order to keep the image small, however these can be installed via apt commands very easily

It should be noted that your Antivirus application or Windows defender can trigger false-positive warning for hacking tools and exploits, but you need not worry about it.