Windows10 安装kali linux子系统
admin
2023-02-23 02:40:06
0

先出结论:不建议win 10 子系统安装kali linux, 很多***测试工具会被windows defender直接作为***文件删除。

  1. 打开windows开发人员模式 (搜索 developer mode并选择打开) Windows10 安装kali linux子系统
  2. 打开windows子系统功能,并按照要求重启 Windows10 安装kali linux子系统
  3. Windows应用商店搜索kali 并安装。这是一个漫长长长长长长长长长长的等待过程……
  4. 安装完成后设置用户名为kali,设置密码,至此命令行kali安装完成。
  5. 安装并启用桌面 apt-get install xrdp
    wget https://kali.sh/xfce4.sh #下载有问题的,请参考文章末尾的内容自行创建文件
    sudo sh xfce4.sh
    sudo /etc/init.d/xrdp start

  6. 编辑 /etc/xrdp/xrdp.ini ,将3389更改为3390
  7. 打开win10自带的远程桌面软件,输入127.0.0.1:3390,用户名和密码,停止桌面 sudo /etc/init.d/xrdp stop
  8. 安装完整的***测试工具 1.apt-get update
    2.apt-get install kali-linux-full

对于无法下载x4ce4.sh的同学,请直接创建文件,并加入下列内容:

#!/bin/bash

# A quick BASH script that installs noVNC and sets up an Xfce4 session,
# accessible through a browser on port 5901 TCP. Tested against Kali Linux Xfce4 "full" installations.
# If running this on Azure or other virtual hosting, don't foret to allow ingress TCP 5901 .

# Configure the following parameters if needed:
###############################################
resolution="1280x720x16"
display_number=1
web_vnc_port=5901
###############################################

clear
echo -e "\n[*] Setting up \e[31mKali in a Browser\e[0m, generating ~/start.sh\n"
sleep 2
cat << EOF > ~/start.sh
#!/bin/bash
clear
echo -e "\e[31m\n[*] Starting up noVNC.\e[0m"
export DISPLAY=:$display_number
Xvfb :$display_number -screen 0 $resolution &
sleep 5
# Start up Xfce is available, otherwise assume Gnome
if [ -f /etc/xdg/xfce4/xinitrc ]; then
    startxfce4 2>/dev/null &
fi
x11vnc -display :$display_number -shared -nopw -listen localhost -xkb -bg -ncache_cr -forever
websockify --web /usr/share/novnc $web_vnc_port 127.0.0.1:5900 --cert=self.pem -D
ip="\$(host -t a myip.opendns.com resolver1.opendns.com|tail -1 |cut -d" " -f4)"
echo -e "\e[31m\n[*] Kali in a Browser is set up, you can access https://\$ip:$web_vnc_port\e[0m"
echo -e "[*] Don't forget to open up incoming port TCP $web_vnc_port if you have a firewalled host.".
EOF

chmod 755 ~/start.sh
clear
echo -e "\n[+] Installing pre-requisites, enter sudo password if asked.\n"
sleep 2
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get -y install novnc websockify x11vnc xvfb
sudo apt-get clean
sudo ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
clear

echo -e "\n[+] Generating SSL cert. Please fill in details, then run \e[31m./start.sh\e[0m\n"
sleep 2
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem

相关内容

热门资讯

重磅消息“葫芦三娃.到底有挂吗... 重磅消息“葫芦三娃.到底有挂吗?”其实是有挂您好,葫芦三娃这个游戏其实有挂的,确实是有挂的,需要了解...
玩家最新攻略“极酷牛牛.可以开... 网上科普关于“极酷牛牛有没有挂”话题很是火热,小编也是针对极酷牛牛作*弊开挂的方法以及开挂对应的知识...
玩家攻略科普“新卡农炸金花.有... 玩家攻略科普“新卡农炸金花.有挂吗?”原来真的有挂您好,新卡农炸金花这个游戏其实有挂的,确实是有挂的...
【今日要闻】“么么棋牌.究竟有... 网上科普关于“么么棋牌有没有挂”话题很是火热,小编也是针对么么棋牌作*弊开挂的方法以及开挂对应的知识...
欧尔班质疑谁先挑起俄乌冲突:乌... 【文/观察者网 王恺雯】欧盟本周早些时候批准向乌克兰提供900亿欧元贷款,以对其提供财政援助。匈牙利...
终于了解“博雅地方棋牌.辅助开... 网上科普关于“博雅地方棋牌有没有挂”话题很是火热,小编也是针对博雅地方棋牌作*弊开挂的方法以及开挂对...
【今日要闻】“闽乐茶楼.开挂神... 您好:闽乐茶楼这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...
终于懂了“上海泸乐麻将.开挂器... 您好:上海泸乐麻将这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款...
玩家攻略科普“六六顺牛牛.辅助... 网上科普关于“六六顺牛牛有没有挂”话题很是火热,小编也是针对六六顺牛牛作*弊开挂的方法以及开挂对应的...
事关互联网平台价格,三部门重磅... 图片来源:CFP 据“市说新语”微信公众号12月20日消息,近日,国家发展改革委、市场监管总局、国家...