Created
January 21, 2018 01:15
-
-
Save gerarldlee/b332f54143edc9463a430e4f4399bc33 to your computer and use it in GitHub Desktop.
Installing Kali Linux as a Windows 10 Subsystem for Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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