1. win10 Windows App Store 安装kai linux
本机已经启动win10 WSL不需要执行
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
1.1 Windows App Store 搜索kali 直接安装
# cat /etc/apt/sources.list
deb http://http.kali.org/kali kali-rolling main

更改为国内源

# vim.tiny /etc/apt/sources.list

deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
2. 命令安装
lxrun /installgit clone https://github.com/RoliSoft/WSL-Distribution-Switcher.git
cd WSL-Distribution-Switcher

python get-prebuilt.py kalilinux/kali-linux-docker      
报错 python2.7 安装会报错需要安装python3
PS E:\WSL-Distribution-Switcher> python2 get-prebuilt.py kalilinux/kali-linux-docker
Traceback (most recent call last):
  File "get-prebuilt.py", line 7, in <module>
    import urllib.request
ImportError: No module named request
PS E:\WSL-Distribution-Switcher>
PS E:\WSL-Distribution-Switcher> python3 get-prebuilt.py kalilinux/kali-linux-docker
[*] Requesting authorization token...
[*] Fetching manifest info for kalilinux/kali-linux-docker:latest...
[*] Downloading layer sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4...
[*] Downloading layer sha256:789ba1ebcb41d691b60e8de9f5f12a7faf1fb373acd7cac6999be3dbd635538e...
    rootfs_kalilinux_kal... [====================>                              ] 41.71%

参考:
1.Kali Linux在Windows App Store中
2.Win10 系统直接运行 Kali Linux

Logo

更多推荐