The News‎ > ‎

Kali Linux and its Wireless

posted Jan 31, 2015, 9:41 AM by Leigh Williams   [ updated Jan 31, 2015, 10:57 AM ]
Recently I had some issues getting Kali to detect my WiFi USB adapter. A few things were adding to this issue. I will explain my step by step guide here.
Remember that Kali MUST have a Wireless USB adapter, it cannot use your built in (on-board) USB adapter. 

Install your Kali headers, you might need them along the way:
apt-get install linux-headers-`uname -r` (remember that you must use back ticks, not single quotes. The backtick is next to the 1 on your keyboard)

1.) Virtualbox did not see my newly added Wireless USB Adapter. This was a permissions issue. 
To fix it do: sudo usermod -G vboxusers -a $USER
Check out this URL:

Now it is easy to add a USB filter and select your USB Wireless Adapter

Check out this URL for much more info! 

2.) You must install a compat-wireless driver. Most tutorials on Youtube are old and those drivers don't exist any more. No worries, you can get the latest backport and install it.
To fix it: Download a backport from here: (just click on the download button and select the latest stable release)
Then, copy it to your Kali hom folder (if not downloaded using Kali)
Untar it, tar xvf backport....-3.xxxxx (replace the file name with your file name)
Now CD into the untarred folder
cd compat-wireless-3.xxxxx

3.) Next, you must install a patch for airmon-ng, especially if you are using a Realtek chipset.
To fix it: sudo wget
Then apply the patch sudo patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch (you must be in the untarred compat-wireless folder!)

4.) Now you must install the drivers. You will use make and make install as such.
While in your compat-wireless folder, issue the "make" command.
If it gives you any issues about not having a default config file, just choose your closest one from the list it will show you). Your command will look something like "make defconfig-rtlk" or something.
After your make is done, you must run "make install"
It will let you know once done and ask you to reboot.

5.) After your reboot, issue the command "airmon-ng" and see if it is detecting wlan0. If not, make sure ifconfig and iwconfig shows it. You can also try putting your wlan0 directly into monitor mode by doing the following:
ifconfig wlan0 stop
iwconfig wlan0 mode monitor
ifconfig wlan0 start

if airmon-ng now sees it, put it into monitor mode by issuing the command "airmon-ng start wlan0" Hope this works, otherwise Google a bit more or try another wireless adapter.