how to install rtl8812au driver

In order for dual-band WiFi adapter with the rtl8812au drive  to be used in the Kali Linux , you need to install the driver.

Although there are few WiFi adapters that can be put into Monitor mode, those that use RealTek's RTL88xxAU chipset are particularly well known as "capable".

however the driver need to be installed in Kali Linux to work and to be able to start monitor mode,
to do so please follow this tutorial step by step..

The wireless network card is a USB interface, and the chip model is Realtek RTL8811AU. If the wireless network card is placed in the Windows environment, it can be plug and play without installing a driver. But if it is placed under Linux, it may involve reloading the driver. At least, it is so under Kali Linux.
The following methods are fully applicable to rtl8812AU, rtl8821AU and rtl8811AU installed in Linux, other USB wireless NIC drivers should be similar, the detailed process is as follows (please use root privileges for the following operations):
You can follow this tutorial video or check the details below  
Install linux headers in Kali linux 
Because the kernel of the Kali Linux system itself is not very complete, some things are reduced. The kernel header file linux-headers is reflected here, which needs to be installed manually. Other operating systems are similar. This file should be used when installing the driver for a while. The following are the commands for the installation.
apt-get update && apt-get upgrade
Before installation may need to update the software source
If the depot inside the child does not correspond to the first document, the next step may not be successful
which means you must to choose a suitable source software for their own
apt-get install linux-headers-$(uname -r)
Through the above steps, we should already have the kernel header file installed.

Download driver source code
To download the source code, you first need to install the git tool on your own linux (kali comes with it), of course, we can also go directly to the online download, but the method is a bit too low, I do not recommend. We can go directly to the official website to download and install, but here is a lazy, use the command:
apt-get install git
Next, what you need to do is clone the source code:
git clone

Install DKMS
DKMS (Dynamic Kernel Module Support) is a tool for automatically compiling and installing kernel modules and managing things such as drivers that directly access kernels
apt-get install dkms
Install DKMS

now to install the driver go to rtl8812au directory
cd rtl8812au
Install the driver In the directory you moved earlier
sudo ./
Uninstall the driver ? In the same directory as before
sudo ./
When driver installation is completed, if you connect the WiFi adapter to the “Kali Linux” VM, the Wi-Fi item will appear in the network connection indicator in the upper right, and you can select the connection destination.
to check if the driver was installed type this command:
dkms status

Now  reboot the operating system and execute the following commands to get the driver to work:
 ## disconnect wifi adapter
 ## reconnect wifi adapter
airmon-ng check kill
rtl8812au kali

Next, let's put the WiFi adapter into monitor mode:
sudo ip link set wlan0 down # disable Wi-Fi interface wlan0
sudo iwconfig wlan0 mode monitor # translate the wlan0 interface into monitoring mode
sudo iwconfig wlan0 txpower 30 # if you need to increase the output power up to 30 dBi
sudo ip link set wlan0 up # turn on wlan0 wifi interface
check for monitor mode
 rtl8812au monitor mode

Let's scan Wi-Fi networks:
airodump-ng wlan0
rtl8812au aircrack
now let's capture handshake
with this command as i'm targeting Kali wifi network
airodump-ng wlan0 --bssid E8:94:F6:FD:95:D0 --channel 7 --write test-ap
rtl8812au capture handshake
As you can see, everything works.

May 11, 2019



Popular Posts

USB WiFi adapters that support monitor mode and wireless injection

usb wifi adapter with monitor mode and wireless injection (100% compatibl…

how to update Kali Linux and Fix update error

Kali Linux one of the best Linux distro for penetration testing it's freq…

Fix Kali Linux sources.list Repositories

Fix default repository First after installing a clean Kali Linux the sou…

Recent Comments

Contact Me