WSL – Kali Linux – Penetration Testing Tools – xfce4

Imagine picking Kali Linux on Microsoft Store:


Windows store


Two videos:

[arve url= »″ /]

[arve url= »″ /]

Install Kali and Launch


Just create new Kali user:


In our case, jmll


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″
ANSI_COLOR= »1;31″
[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/




Then you can see this:


XFCE login


After logging, you can do whatever you feel like:


screenfetch via WSL

Let’s change name servers:

sudo echo nameserver > /etc/resolv.conf

sudo echo nameserver >> /etc/resolv.conf

Here, we are surfing on our website: via FireFox running on Kali Linux


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




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 😀


La publication a un commentaire

Les commentaires sont fermés.