溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

Windows10 安裝kali linux子系統(tǒng)

發(fā)布時(shí)間:2020-07-16 13:17:26 來(lái)源:網(wǎng)絡(luò) 閱讀:499 作者:wyr80 欄目:系統(tǒng)運(yùn)維

先出結(jié)論:不建議win 10 子系統(tǒng)安裝kali linux, 很多***測(cè)試工具會(huì)被windows defender直接作為***文件刪除。

  1. 打開(kāi)windows開(kāi)發(fā)人員模式 (搜索 developer mode并選擇打開(kāi)) Windows10 安裝kali linux子系統(tǒng)
  2. 打開(kāi)windows子系統(tǒng)功能,并按照要求重啟 Windows10 安裝kali linux子系統(tǒng)
  3. Windows應(yīng)用商店搜索kali 并安裝。這是一個(gè)漫長(zhǎng)長(zhǎng)長(zhǎng)長(zhǎng)長(zhǎng)長(zhǎng)長(zhǎng)長(zhǎng)長(zhǎng)長(zhǎng)的等待過(guò)程……
  4. 安裝完成后設(shè)置用戶名為kali,設(shè)置密碼,至此命令行kali安裝完成。
  5. 安裝并啟用桌面 apt-get install xrdp<br/>wget https://kali.sh/xfce4.sh #下載有問(wèn)題的,請(qǐng)參考文章末尾的內(nèi)容自行創(chuàng)建文件<br/>sudo sh xfce4.sh<br/>sudo /etc/init.d/xrdp start

  6. 編輯 /etc/xrdp/xrdp.ini ,將3389更改為3390
  7. 打開(kāi)win10自帶的遠(yuǎn)程桌面軟件,輸入127.0.0.1:3390,用戶名和密碼,停止桌面 sudo /etc/init.d/xrdp stop
  8. 安裝完整的***測(cè)試工具 1.apt-get update<br/>2.apt-get install kali-linux-full

對(duì)于無(wú)法下載x4ce4.sh的同學(xué),請(qǐng)直接創(chuàng)建文件,并加入下列內(nèi)容:

#!/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
向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI