Pentesting on Arch linux as WSL
This is the second part of the series Pentesting on windows with WSL. If you havenβt checked the first part of the series hereβs the link itβs on Kali Linux WSL2. In this part Iβ will help you to setup Arch Linux on WSL2 instance and install our favorite hacking tools with Yay package manager .
Lets get started. Prerequisite for the tutorial:
* WSL2 and Virtual Machine feature enabled (explained in part one).
* Linux kernel package update (link).
* Latest package for Arch wsl from (link).
Procedure:
Unzip arch.zip and install it with arch.exe
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β Before installing any tools, Setup fakeroot (#most imp).
Remove fakeroot from IgnorePkg and install necessary packages like fakeroot, wget, base-devel
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β Installing Yay (Yet Another Yogurt) for AUR packages
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β βComparing with WSL Arch and Virtual Machine (Arch)
PARAMETERS WSL2 VIRTUAL BOX VMWARE
BOOT TIME: 4sec 15β20 sec 15-20 sec
SIZE: 3 GB 15 GB 15 GB
RAM: .5-1 GB 2 GB 2 GB
SNAPSHOT: NO YES YES
SETUP TIME: 2-5 min 15-20 min 15-18 min
GUI: NO YES YES
Troubleshooting:
The most important part of the tutorial is to remove fakeroot from pacmac.conf. This is done because WSL2 does not necessarily require fakeroot-tcp.