虚拟机中kali 没有网卡无法运行WiFite
1、打开wifite报错无法正常运行
2、输入iwconfig查看没有找到 wlan0网卡
3、输入su root 输入自己的密码 进入root界面
再次输入
┌──(root㉿kali)-[~]
└─# wget https://mirror2.openwrt.org/sources/compat-wireless-2010-06-28.tar.bz2
--2024-02-02 18:54:15-- https://mirror2.openwrt.org/sources/compat-wireless-2010-06-28.tar.bz2
正在解析主机 mirror2.openwrt.org (mirror2.openwrt.org)... 2a01:4f8:221:3d45::2, 46.4.11.11
正在连接 mirror2.openwrt.org (mirror2.openwrt.org)|2a01:4f8:221:3d45::2|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2596324 (2.5M) [application/octet-stream]
正在保存至: “compat-wireless-2010-06-28.tar.bz2”
compat-wireless-2010-06-28.tar.bz2 100%[=====================================================================================================================>] 2.48M 1.83MB/s 用时 1.4s
2024-02-02 18:54:18 (1.83 MB/s) - 已保存 “compat-wireless-2010-06-28.tar.bz2” [2596324/2596324])
4、下载完成后输入下方命令进行解压
tar -xjvf compat-wireless-2010-06-28.tar.bz2
5、解压很快会在几秒内完成
接下来我们需要进入到解压后的文件目录下面去执行配置编译安装命令
┌──(root㉿kali)-[~] └─# cd compat-wireless-2010-06-28 ┌──(root㉿kali)-[~/compat-wireless-2010-06-28] └─# make unload ┌──(root㉿kali)-[~/compat-wireless-2010-06-28] └─# make load
6、在kali 中 输入 iwconfig 可以看到出现了新增的WLAN
┌──(root㉿kali)-[~/compat-wireless-2010-06-28] └─# iwconfig lo no wireless extensions. eth0 no wireless extensions. wlan0 IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry short limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off wlan1 IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry short limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off hwsim0 no wireless extensions.