본문 바로가기

Tips/Mac

[MAC/TIP] Mac wireless card set up on Kali Linux

1) Making sure these were in /etc/apt/sources.list

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

2) Making sure everything was ready

apt-get update && apt-get dist-upgrade

3) Rebooting the kernel

reboot

4) Finding out my version:

root@kali:~# uname -a
Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux

5) Finding out which network card I had

root@kali:~# lspci | grep Wireless
03:00.0 Network controller: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter (rev 03)

5.1) Download some extra packages, that do the trick for "wl module not found"

Go to this website : http://http.kali.org/kali/pool/main/l/linux, You can find debian packages relevant to your own system.


wget http://http.kali.org/kali/pool/main/l/linux/linux-kbuild-4.6_4.6.4-1kali1_amd64.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.6.0-kali1-common_4.6.4-1kali1_amd64.deb
wget http://http.kali.org/kali/pool/main/l/linux/linux-headers-4.6.0-kali1-amd64_4.6.4-1kali1_amd64.deb

Install with correct order

dpkg -i linux-kbuild-4.6_4.6.4-1kali1_amd64.deb
dpkg -i linux-headers-4.6.0-kali1-common_4.6.4-1kali1_amd64.deb
dpkg -i linux-headers-4.6.0-kali1-amd64_4.6.4-1kali1_amd64.deb

6) Running this:

root@kali:~# apt-get update; apt-get install broadcom-sta-dkms; apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

7) Then:

root@kali:~# modprobe -r b44 b43 b43legacy ssb brcmsmac

and

root@kali:~# sudo modprobe wl

Finally you can check that it's worked by using iwconfig and you should see that now you have wlan0 recognised by Kali Linux. Go to settings and connect to wi-fi.



-REFERENCE-

https://gist.github.com/speeddragon/2d4ea420a8a53407cb8218fa28c2a74b

https://unix.stackexchange.com/questions/307084/internal-wireless-card-setup-mac-dual-boot-2016-kali-linux