Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerarldlee/b332f54143edc9463a430e4f4399bc33 to your computer and use it in GitHub Desktop.
Save gerarldlee/b332f54143edc9463a430e4f4399bc33 to your computer and use it in GitHub Desktop.
Installing Kali Linux as a Windows 10 Subsystem for Linux
Installing Kali Linux as a Windows 10 Subsystem for Linux
Powershell (Admin)
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
lxrun /install
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
bash
export LANG=C && cd
cat /etc/issue # verify that "Kali GNU/Linux Rolling \n \1" is the output
echo nameserver 8.8.8.8 > /etc/resolv.conf # change the nameserver to that we can update
apt update
apt-get update && apt-get dist-upgrade
apt-get install metasploit-framework postgresql
/etc/init.d/postgresql start
msfdb init 2>/dev/null # to create the database for metasploit
msfconsole -q
@sinamostaghim
Copy link

Installing Kali Linux as a Windows 10 Subsystem for Linux

Powershell (Admin)
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

lxrun /install

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

bash

export LANG=C && cd
cat /etc/issue # verify that "Kali GNU/Linux Rolling \n \1" is the output
echo nameserver 8.8.8.8 > /etc/resolv.conf # change the nameserver to that we can update
apt update
apt-get update && apt-get dist-upgrade

apt-get install metasploit-framework postgresql
/etc/init.d/postgresql start
msfdb init 2>/dev/null # to create the database for metasploit
msfconsole -q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment