+4 votes
338 views
How to install and use Kali Linux Windows 10

in Security by (552k points)
reopened | 338 views

1 Answer

+5 votes
Best answer

1. Install Python and Git on Windows 10
2. Install WSL on Windows 10
3. Install Kali Linux using Windows Store on Windows 10
4. Install Kali Linux using the terminal in Windows 10
5. Use Kali Linux in Windows 10
6. Add Kali Linux as an exception in Windows 10
7. Install Kali Linux tools on Windows 10

There are operating systems for all types of users, from systems focused on science, others focused on players, others for network administrators but there is a special operating system that is focused on security. Specifically against numerous utilities and tools that are responsible for determining the integrity, security and operation of a website, we can not be oblivious to the latent threats that we find on the network every day and that seek to gain unauthorized access to the equipment and subtract the information to perform anything appreciable..

We know that there are many security measures, passwords, fingerprints, biometric recognition, in short, but with a special operating system it will be much better to define where the failures are in a technical, professional and complete way and we are not talking about another system other than Kali Linux

Kali Linux is based on Debian and its user approach is those who love to perform advanced and complete security penetration and auditing tests for an organization or user who wants to really verify how vulnerable their system is.

Security tools
These objectives are achieved thanks to the tools integrated in the system, all of them security such as:
  • Penetration tests.
  • Computer forensics.
  • Security Investigation
  • Reverse engineering and more.

To give us an idea that everything Kali has is security, it is developed and has support from Offensive Security which is a company specializing in security issues..

Kali Linux features
To encourage you to try Kali these are just some of its features:
  • It is totally free.
  • It has more than 600 penetration and vulnerability test tools.
  • It is compatible with FHS which simplifies the search for binary files, support files, libraries and other system components.
  • It is totally open source.
  • It offers compatibility with wireless devices which are growing in use.
  • Integrate a custom kernel.
  • All of its packages and repositories are signed by GPG which gives more security.
  • It has support for ARMEL and ARMHF.
  • Available in multiple languages.

Now, everything sounds spectacular right? And if TechnoWikis tells you that you can use Kali Linux on your Windows 10 , would you be encouraged to use it? If you think it is not possible to use both systems, then you are wrong, thanks to the new updates of Windows 10 we have received a new feature called Windows Subsystem Linux- Linux Subsystem for Windows (WSL) which allows us as users of Windows 10 to use the command line, utilities and applications of various distributions directly in Windows 10 without having You buy an exclusive equipment for it.

Advantages of using WSL
When using WSL it will be possible:
  • Run Bash shell scripts and command line applications such as vim, emacs, tmux and more
  • Use programming languages ​​such as Javascript / node.js, Ruby, Python, C / C ++, C # & F #, Rust, Go and more.
  • Execute orders like rep, sed, awk.
  • Invoke Windows applications from the terminal.
  • Invoke Linux applications on Windows and more.
WSL compatible distributions
With WSL we can execute distributions such as:
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • OpenSUSE Leap 15
  • OpenSUSE Leap 42
  • SUSE Linux Enterprise Server 12
  • SUSE Linux Enterprise Server 15
  • Kali Linux
  • Debian GNU / Linux
  • Fedora Remix for WSL
  • Pengwin
  • Pengwin Enterprise
  • Alpine WSL

TechnoWikis will explain in detail how you will be able to use Kali Linux on your Windows 10 without problems..


1. Install Python and Git on Windows 10

Step 1

For everything to work as expected we require two components such as Python and Git, for this we will go to the following link to download the latest version of Python:
Python

image

Step 2

There we click directly on the download button and proceed with the installation of Python 3.7:

image

Step 3

There we click on the “Customize installation” option and we will see the following:

image

Step 4

There we leave all the values ​​as is and click Next and in the next window we must activate the “Add Python to environment variables” box:

image

Step 5

Click on Install to run the Python installation on Windows 10:

image

Step 6

Now we will go to the following link to download Git:
Git

image

Step 7

There we execute the downloaded file and follow the steps of the wizard:

image

Step 8

Click Next and go to the “Configuring extra options” window and there we must deactivate the “Enable Git Credential Manager” box. Click on Next and continue with the installation of Git on Windows 10.

image


2. Install WSL on Windows 10


Now, Windows 10 allows us two methods to install the Linux subsystem and TechnoWikis will explain both.
Step 1

First, we can go directly to the system features using the following key combination and execute the appwiz.cpl command:

+ R

image

Step 2

This will display the following: image
Step 3

There we select the line "Activate or deactivate the Windows features" and in the window displayed we activate the "Windows subsystem for Linux" box. We click OK and wait for the system to load the respective files and then we must restart the system.

image

Step 4

The other method that Windows 10 offers us is to use Windows PowerShell for this purpose, so we must enter as administrators by right clicking on the Start menu and selecting the appropriate option:

image

Step 5

Now, in the PowerShell console we will run:
 Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 
image
Step 6

Once the process is complete we must enter the letter Y to restart the system: image
Step 7

When this is finished we can check the Python and Git version by running:
 python -V git 
image

3. Install Kali Linux using Windows Store on Windows 10

There are two methods to carry out this process and you will learn them so that everything is complete.

Step 1

The first method is a little simpler since it will be done almost automatically, for this we go to the Windows 10 store and there we look for Kali: image
Step 2

Click on the "Get" button and see that the download process begins: image
Step 3

All distribution checks are performed: image
Step 4

It will give way to the local installation: image
Step 5

Once this is finished we will be ready to run Kali on Windows 10. Here we just have to click on Start to start the Kali user experience but we will see it later. image

4. Install Kali Linux using the terminal in Windows 10

Step 1

For this method the first step to take will be to install the Ubuntu system by default and for this we execute the following line at the command prompt:
 lxrun / install 
image
Step 2

If you find this quiet error that TechnoWikis will help you, for hair you must activate the programmer mode and for this we go to the route
  • Start
  • Configuration
  • Update and security
  • For programmers
image
Step 3

There we activate the “Programmer Mode” box and the following message will be displayed:

image

Step 4

We click Yes and wait for all packages to be installed and we will be ready for use: image
Step 5

Now, when running lxrun / install again we will see the following: image
Step 6

Enter the letter y to confirm and the system installation process will begin: image
Step 7

After this we will clone the WSL Switcher by running:
 git clone https://github.com/RoliSoft/WSL-Distribution-Switcher.git 
image
Step 8

We access the directory:
 cd WSL-Distribution-Switcher 
Step 9

There we execute the following to install Kali:
 python get-prebuilt.py kalilinux / kali-linux-docker python install.py rootfs_kalilinux_kali-linux-docker_latest.tar.gz 
image
Step 10

Once finished, if we want to assign password to the root user, just run the following line:
 lxrun / setdefaultuser root 

5. Use Kali Linux in Windows 10

Step 1

Once installed we can access from the Start menu and on the first use we will see the following: image
Step 2

There we wait a while for everything to be configured and then we must assign the desired username and password: image
Step 3

As we see the process is over and we are already in the Kali Linux console, if we wish we can execute traditional commands such as:
 sudo apt-get update sudo apt-get dist-upgrade 
image
Note
To free disk space we can execute the following command:
 sudo apt-get clean 

6. Add Kali Linux as an exception in Windows 10

Step 1

Due to the security standards of Windows 10 it is possible that Windows Defender blocks Kali's repositories when detecting them as a threat so we must add them as an exclusion, for this we go to the Windows Security Center: image
Step 2

There we select the category "Anti-virus and threat protection" and then click on the "Manage settings" line: image
Step 3

We will go to the bottom and find the "Exclusions" section: image
Step 4

Before this we must know the path of the folder to exclude, Kali Linux is hosted in the following path of Windows 10:
 C: \ Users \ user \ AppData \ Local \ Packages \ 
image
Step 5

When accessing the folder this will be its content: image
Step 6

Back in the Windows 10 Security Center, we click on “Add or remove exclusions” and then click on “Add exclusion”: image
Step 7

Now we select “folder” and we will go to the mentioned route: image

7. Install Kali Linux tools on Windows 10

Step 1

These are the soul of the system since they will help us to perform the tests, for this, we go to Kali on Windows 10 and execute the following:
 sudo apt-get install metasploit-framework 
image
Step 2

Enter the letter Y to begin the installation of the tools: image

We are ready to improve the security of those who need it and without having to use external equipment but everything within our Windows 10.


by (3.5m points)
edited

Related questions

+3 votes
1 answer
asked Aug 12, 2020 in Security by backtothefuture (552k points) | 671 views
+3 votes
3 answers
asked Feb 26, 2020 in Security by backtothefuture (552k points) | 44.6k views
+5 votes
1 answer
+3 votes
1 answer
+4 votes
1 answer
asked Feb 1, 2020 in Security by backtothefuture (552k points) | 2.3k views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users