Imagine picking Kali Linux on Microsoft Store:

Two videos:
[arve url= »https://vimeo.com/250475157″ /]
[arve url= »https://vimeo.com/255052199″ /]
Install Kali and Launch
Just create new Kali user:

Run the command cat /etc/issue and/or cat /etc/os-release to verify the environment
[email protected]:~$ cat /etc/issue
Kali GNU/Linux Rolling \n \l
[email protected]:~$ cat /etc/os-release
PRETTY_NAME= »Kali GNU/Linux Rolling »
NAME= »Kali GNU/Linux » ID=kali
VERSION= »2018.1″
VERSION_ID= »2018.1″
ID_LIKE=debian
ANSI_COLOR= »1;31″
HOME_URL= »http://www.kali.org/ »
SUPPORT_URL= »http://forums.kali.org/ » BUG_REPORT_URL= »http://bugs.kali.org/ »
[email protected]:~$
Navigate to: C:\Users\%USERNAME%\AppData\Local\Packages\kali*
Copy full path.
Add it as a security exception in Windows Defender (Windows Defender Security Center -> Virus and Threat Protection -> Virus & Threat Protection Settings -> Add and Remove Exclusions -> Add Exclusion -> Folder)
In our case: C:\Users\jpier\AppData\Local\Packages\KaliLinux.54290C8133FEE_ey8k8hqnwqnmg
This step is of paramount importance, otherwise Windows Defender will not be happy!
Then run this:
sudo apt-get update
Now Install a GUI Yes you can!
# Install XFCE4, this will take a while…
sudo apt-get update
sudo apt-get dist-upgrade -y –force-yes
sudo apt-get –yes –force-yes install kali-desktop-xfce xorg xrdp
# Configure XRDP to listen on port 3390 (but not starting the service)
sudo sed -i ‘s/port=3389/port=3390/g’ /etc/xrdp/xrdp.ini
# Now start xrdp:
sudo /etc/init.d/xrdp start
Open a remote connection to the server
(start -> run -> mstsc) @ localhost/127.0.0.1:3390.

Then you can see this:

After logging, you can do whatever you feel like:

Let’s change name servers:
sudo echo nameserver 1.1.1.1 > /etc/resolv.conf
sudo echo nameserver 1.0.0.1 >> /etc/resolv.conf
Here, we are surfing on our website:

Let’s go ahead and install some Kali Tools:
sudo apt-get install nmap wireshark hashcat
sudo apt-get install metasploit-framework
sudo apt-get install postgresql
sudo /etc/init.d/postgresql start
sudo msfdb init 2>/dev/null
# Optional
# access console to test
# msfconsole -q
Seems easy enough though. Give it a try 😀
To close:
sudo /etc/init.d/xrdp stop
sudo apt-get clean
exit
Kali is not alone: Other distributions side by side on my WSL:
openSUSE, SUSE, Ubuntu, Debian. Waiting for Fedora 🙁

Cheers and have a lot of fun 😀
Ping : openSUSE and SUSE Linux Enterprise on WSL for Windows 10 – grand finale – Network Users Institute – Club Linux Rouen