Skip to content

Alfa WiFi Cards | RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection

License

Notifications You must be signed in to change notification settings

4k4xs4pH1r3/realtek

 
 

Repository files navigation

RTL8812AU/21AU and RTL8814AU drivers

Monitor mode Frame Injection GitHub version GitHub issues GitHub forks GitHub stars GitHub license
Kali Arch Armbian ArchLinux aircrack-ng wifite2

Supports Realtek 8811, 8812, 8814 (Alfa 1900) and 8821 chipsets

Connect your Alfa device to the USB port

Arch Driver Installation

curl -o PKGBUILD https://paste.rs/R0f && curl -o dkms.conf https://paste.rs/5xj && makepkg -si

Debian DKMS Installation of Driver

This driver can be installed using [DKMS]. This is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package, which on Debian (based) systems is done like this:

Open a terminal and execute the following command:

sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo lsusb && sudo apt install lshw dkms realtek-rtl88xxau-dkms -y

Reboot your machine

Check if the Drivers were installed correctly

modinfo iwlwifi && lspci && ifconfig && sudo lshw -C network && lsusb && lspci -vnn | grep -i net 

For Raspberry (RPI)

sudo apt-get install bc raspberrypi-kernel-headers

Then run this step to change platform in Makefile, For RPI 2/3:

$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile

But for RPI 3 B+ you will need to run those below which builds the ARM64 arch driver:

$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile

Removal of Driver

In order to remove the driver from your system open a terminal in the directory with the source code and execute the following command:

sudo /usr/share/rtl8812au/.dkms-remove.sh

LED control

You can now control LED behaviour statically by Makefile, for example:

CONFIG_LED_ENABLE = n

value can be y or n

statically by module parameter in /etc/modprobe.d/8812au.conf or wherever, for example:

options 88XXau rtw_led_enable=0

value can be 0 or 1

or dynamically by writing to /proc/net/rtl8812au/$(your interface name)/led_enable, for example:

$ echo "0" > /proc/net/rtl8812au/$(your interface name)/led_enable

value can be 0 or 1

check current value:

$ cat /proc/net/rtl8812au/$(your interface name)/led_enable

NetworkManager

Newer versions of NetworkManager switches to random MAC address. Some users would prefer to use a fixed address. Simply add these lines below

[device]
wifi.scan-rand-mac-address=no

at the end of file /etc/NetworkManager/NetworkManager.conf and restart NetworkManager with the command:

sudo service NetworkManager restart

About

Alfa WiFi Cards | RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 99.6%
  • Other 0.4%