前段时间安装了kali,发现无线网卡驱动没办法自动安装,说是网卡太老了,木得办法只能等等了!
现在有时间来弄了,就尝试了一下,成功了!

环境版本

kali

1. 下载文件

wget可下载多个文件
创建wl.txt文件
把下载的url的放到wl.txt文件中

https://mirrors.aliyun.com/kali/pool/main/g/gcc-9/cpp-9_9.3.0-8_amd64.deb
https://mirrors.aliyun.com/kali/pool/main/g/gcc-9/gcc-9-base_9.3.0-8_amd64.deb
https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-compiler-gcc-9-x86_5.7.6-1kali2_amd64.deb
https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-kbuild-5.7_5.7.6-1kali2_amd64.deb
https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-headers-5.7.0-kali1-common_5.7.6-1kali2_all.deb
https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-headers-5.7.0-kali1-amd64_5.7.6-1kali2_amd64.deb
https://mirrors.aliyun.com/kali/pool/non-free/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-15_all.deb
https://mirrors.aliyun.com/kali/pool/main/d/dkms/dkms_2.8.3-4_all.deb

下载文件

wget -i wl.txt

1. 安装配置

#执行命令
apt-get update
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')


# 如果已经下载了包则不必执行此些语句Download some extra packages, that do the trick for "wl module not found"
wget https://mirrors.aliyun.com/kali/pool/main/g/gcc-9/cpp-9_9.3.0-8_amd64.deb
wget https://mirrors.aliyun.com/kali/pool/main/g/gcc-9/gcc-9-base_9.3.0-8_amd64.deb
wget https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-compiler-gcc-9-x86_5.7.6-1kali2_amd64.deb
wget https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-kbuild-5.7_5.7.6-1kali2_amd64.deb
wget https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-headers-5.7.0-kali1-common_5.7.6-1kali2_all.deb
wget https://mirrors.aliyun.com/kali/pool/main/l/linux/linux-headers-5.7.0-kali1-amd64_5.7.6-1kali2_amd64.deb
wget https://mirrors.aliyun.com/kali/pool/non-free/b/broadcom-sta/broadcom-sta-dkms_6.30.223.271-15_all.deb
wget https://mirrors.aliyun.com/kali/pool/main/d/dkms/dkms_2.8.3-4_all.deb


# 安装deb包-----按照顺序来 Install with correct order
dpkg -i gcc-9-base_9.3.0-8_amd64.deb
dpkg -i cpp-9_9.3.0-8_amd64.deb
dpkg -i linux-compiler-gcc-9-x86_5.7.6-1kali2_amd64.deb
dpkg -i linux-kbuild-5.7_5.7.6-1kali2_amd64.deb
dpkg -i linux-headers-5.7.0-kali1-common_5.7.6-1kali2_all.deb
dpkg -i linux-headers-5.7.0-kali1-amd64_5.7.6-1kali2_amd64.deb
dpkg -i dkms_2.8.3-4_all.deb
dpkg -i broadcom-sta-dkms_6.30.223.271-15_all.deb
 
# Install broadcom drivers
apt-get install broadcom-sta-dkms
 
# Enable modules and disabled unnecessary ones 
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl

执行完毕后即可看到kali已经有无线网卡驱动了,可以正常连接wifi了

转载自:
https://blog.csdn.net/l1028386804/article/details/83338379
https://gist.github.com/speeddragon/2d4ea420a8a53407cb8218fa28c2a74b
http://askubuntu.com/questions/175104/how-do-i-install-bcm43142-wireless-drivers-for-dell-vostro-3460-3560

Q.E.D.


97年强迫症程序猿