Skip to content

Instantly share code, notes, and snippets.

@yashodhank
Forked from speeddragon/kali-linux-wl-fix.sh
Last active November 13, 2017 11:43
Show Gist options
  • Save yashodhank/1571e7ab8bb17a2f909aba75ea809003 to your computer and use it in GitHub Desktop.
Save yashodhank/1571e7ab8bb17a2f909aba75ea809003 to your computer and use it in GitHub Desktop.
Kali Linux fix for "modprobe: FATAL: Module wl not found"
# Update and install necessary packages
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 http://http.kali.org/kali/pool/main/l/linux-tools/linux-kbuild-4.3_4.3.1-2kali1_amd64.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.deb
# Install with correct order
dpkg -i linux-kbuild-4.3_4.3.1-2kali1_amd64.deb
dpkg -i linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb
dpkg -i linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.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
# Done :)
echo "WI-FI work now!"
echo "Don't forget to enable network-manager: nano /etc/NetworkManager/NetworkManager.conf to true and restart the service."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment