Kali Linux developers as well as Offensive Security squad is ever trying to notice novel ideas as well as amend ways to run Kali Linux. With the recent introduction of Windows Subsystem for Linux (WSL) inwards Windows 10, it opened a novel agency to run Kali Linux. Tell me, produce you lot play games? Sure. Do you lot purpose Windows to a greater extent than than Kali Linux? NVM, you lot don’t to respond that. But the indicate is, if you lot remove Windows as well as Kali Linux, would you lot similar to install Kali Linux equally a Windows Subsystem within Windows 10 (like a software inwards Windows!). With the Windows Subsystem for Linux Distribution Switcher utility instantly it’s possible to install Kali Linux on Windows Subsystem for Linux, only similar Ubuntu.
Kali on the Windows Subsystem for Linux
This setup of Kali on Windows is non optimal due to diverse environmental restrictions (such equally the lack of raw sockets as well as lack of customised Kali kernel), in that place are however many situations where having Kali Linux with your Windows 10 automobile tin live on beneficial. One instance that comes to hear is consolidation of workspaces, peculiarly if Windows is your master copy working environment. Other useful situations that crossed our minds were standardizing tools as well as scripts to run into multiple environments, quick porting of Linux penetration testing ascendency trouble tools to Windows, etc. For example, below is a screenshot of running the Metasploit Framework from Kali Linux, over WSL.
Setting upward the Environment
While the setup is described good over at the WSL Distribution Switcher README file, we’ve made a quick 4-minute video to walk you lot through the setup as well as installation process. For an easier re-create / glue operation, these are the basic steps taken:
1. Update your Windows 10 machine. Open an administrative PowerShell window as well as install the Windows Subsystem with this one-liner. Influenza A virus subtype H5N1 reboot volition live on required 1 time finished.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
2. Once rebooted, opened upward a ascendency trouble trounce as well as run the next commands to install the default Ubuntu environment. This volition lay downwards the foundations for our Kali install.
lxrun /install
3. Setup as well as install the WSL Switcher, download a Kali base, as well as extract it to disk:
git clone https://github.com/RoliSoft/WSL-Distribution-Switcher.git
cd WSL-Distribution-Switcher
python get-prebuilt.py kalilinux/kali-linux-docker
python install.py rootfs_kalilinux_kali-linux-docker_latest.tar.gz
lxrun /setdefaultuser root
4. Now that Kali is ready on your Windows 10 machine, you lot tin interact with it past times running the “bash” command:
bash
5. At this point, you’re within Kali as well as you lot tin purpose it equally you lot usually do–install packages, purpose tools, etc. We strongly recommend commencement running an update as well as upgrade:
export LANG=C
apt-get update
apt-get dist-upgrade
Without farther ado, here’s the video demonstration of the setup described above:
Source: Kali on the Windows Subsystem for Linux