Windows Subsystem for Linux (WSL)

Windows Subsystem for Linux (WSL) allows to run a GNU/Linux environment (including most command-line tools) directly on Windows.

Table of Contents

Installation

Enable Windows Subsystem for Linux

Run a command prompt as administrator:

powershell -c "Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux"

Answer “Y” to reboot the computer

Install Kali Linux

  • Go on the Microsoft Store
  • Search Kali Linux and install
  • Click on Open
  • Create a regular user, enter username & password.

Fix Windows not supporting seccomp

sudo nano /etc/apt/apt.conf.d/999seccomp
# Add:
apt::sandbox::seccomp "false";

Configure proxy (if needed)

sudo nano /etc/apt/apt.conf
Acquire::http::proxy "http://user:pass@proxy.domain.com:8080";

Update source repository

sudo nano /etc/apt/sources.list
deb https://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
sudo apt update && sudo apt -y full-upgrade

Shared folders

You can access your Windows files from Linux, for C:

cd /mnt/c

Reference