Skip to content

WSL

WSL 101

WSL stands for Windows Subsystem for Linux, and it's a powerful way of interacting with a Linux operating system from within a Windows environment. To install WSL, run the following command from an elevated terminal in Windows.

wsl --install

That will install the default WSL system, Ubuntu.

To check which version is installed, run the following command:

wsl -l -v

For more information see the following documenation on the official Microsoft Website

Using WSL

For pentesting purposes the first thing you're going to want to do is force WSL into v2 mode:

wsl --set-default-version 2

This will give us full access to raw sockets and other fun things, which will come in handy for pentesting.

Now we can install a proper distro:

wsl --install kali-linux