
Like many others, I bought myself an Alfa AWUS036ACH, only to find its drivers are not set up by default on the latest version of Kali (despite many if its more recent reviews pointing out this fact). I found that there are few guides on how to get this sexy dual-band interface going, so I made a quick shell script to do everything in one shot. A few things to note before we begin:
[keyfile] unmanaged-devices=interface-name:wlan1;interface-name:wlan2
This prevents NetworkManager from trying to resolve the interface using its own stuff when you reboot again (real men keep NetworkManager disabled anyway, but whatever). If your PC already has a wlan0 assigned by default (i.e. is a laptop with built-in wifi), the keyfile above should work fine. Otherwise, just add interface-name:wlan0; before interface-name:wlan1; The reason I also disabled a second, nonexistent wlan2 at the end is because sometimes, if I unplug the interface and replug it into a different USB port, it will be assigned one number up. This measure adds one get-out-of-NetworkManager-free card to your hand, increasing your chance to pass go and collect that sweet $200.
6. Once you have gotten the interface set up, I would recommend using ifconfig to put it into monitor mode, instead of airmon-ng. I’ve found that airmon-ng tends to have issues with manually installed drivers on occasion. In case you don’t know, here is how its done (assuming your Alfa is assigned wlan1):
ifconfig wlan1 down iwconfig wlan1 mode monitor ifconfig wlan1 up
Anyway, here is the script in question. As you probably already know, you can copy it to a text file called coolfilename.sh, set it to executable, and give that baby a run from the terminal. Or you could always just manually run the following commands one at a time.
#!/bin/sh # Shell script to set up drivers for Alfa AWUS036ACH # You must have an internet connection. # update your repositories apt-get update # install dkms if it isn't already apt-get install dkms # change directory to /usr/src cd /usr/src # if you have any other drivers installed,remove them like so: rm -r rtl8812AU-4.3.22/ # get latest driver from github # used to be: git clone https://github.com/aircrack-ng/rtl8812au git clone https://github.com/gordboy/rtl8812au.git # move into downloaded driver folder cd rtl8812au/ # update files in working tree to match files in the index # this step doesn't seem to be necessary anymore, commented out # git checkout --track remotes/origin/v5.2.20 # make drivers make # move into parent directory cd .. # debugging dkms status # rename file for use with dkms mv rtl8812au/ rtl8812au-5.2.20 # dkms add driver dkms add -m rtl8812au -v 5.2.20 # build drivers dkms build -m rtl8812au -v 5.2.20 # install drivers dkms install -m rtl8812au -v 5.2.20 # debugging lsmod # summon new interface from the depths of the kernel modprobe 8812au # wifi interface should now appear. ip link
I have found this text : https://forums.hak5.org/topic/43124-alfa-awus036ach-kali-configuration-guide