Skip to content
KitploitKITPLOIT
工具博客
Log in
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
rtl8812au — 用于RTL8812AU/21AU和RTL8814AU芯片组的Linux/Android内核驱动程序,支持监控模式和帧注入,用于无线安全测试。 | Kitploit
工具/GitHubGitHub/aircrack-ng/rtl8812au
Wi-Fi审计网络映射无线安全渗透测试红队
GitHubaircrack-ng/rtl8812au

rtl8812au

用于RTL8812AU/21AU和RTL8814AU芯片组的Linux/Android内核驱动程序,支持监控模式和帧注入,用于无线安全测试。

查看仓库
4.0k839236个月前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

RTL8812AU/21AU 与 RTL8814AU 无线驱动

仅适用于 Linux 和 Android

这些驱动已弃用。

请使用 mac80211 驱动,地址为 https://github.com/lwfinger/rtw88

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

重要说明!

* 使用 "ip" 和 "iw" 代替 "ifconfig" 和 "iwconfig"
     详细说明见下文,请阅读 README!

注意:TP-Link AC600 及其他设备存在回归问题。目前的临时解决方案是从之前的提交中拉取代码。请参阅 此评论。

IPERF3 基准测试

[设备] Alfa Networks AWUS036ACH
[芯片组] 88XXau (rtl8812au)
[分支] v5.6.4.1
[距离] 10米 无障碍直视

[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  11.6 MBytes  97.4 Mbits/sec    0   96.2 KBytes
[  5]   1.00-2.00   sec  11.2 MBytes  93.8 Mbits/sec    0    100 KBytes
[  5]   2.00-3.00   sec  11.2 MBytes  93.8 Mbits/sec    0    100 KBytes
[  5]   3.00-4.00   sec  11.2 MBytes  93.8 Mbits/sec    0    100 KBytes
[  5]   4.00-5.00   sec  11.2 MBytes  93.8 Mbits/sec    0    100 KBytes
[  5]   5.00-6.00   sec  11.4 MBytes  95.9 Mbits/sec    0    105 KBytes
[  5]   6.00-7.00   sec  11.2 MBytes  93.8 Mbits/sec    0    105 KBytes
[  5]   7.00-8.00   sec  11.3 MBytes  94.9 Mbits/sec    0    157 KBytes
[  5]   8.00-9.00   sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
[  5]   9.00-10.00  sec  11.2 MBytes  94.3 Mbits/sec    0    157 KBytes
[  5]  10.00-11.00  sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
[  5]  11.00-12.00  sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
[  5]  12.00-13.00  sec  11.2 MBytes  94.4 Mbits/sec    0    157 KBytes
[  5]  13.00-14.00  sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
[  5]  14.00-15.00  sec  11.2 MBytes  94.4 Mbits/sec    0    157 KBytes
[  5]  15.00-16.00  sec  10.9 MBytes  91.7 Mbits/sec    0    157 KBytes
[  5]  16.00-17.00  sec  11.2 MBytes  94.4 Mbits/sec    0    157 KBytes
[  5]  17.00-18.00  sec  11.2 MBytes  94.4 Mbits/sec    0    157 KBytes
[  5]  18.00-19.00  sec  11.2 MBytes  94.4 Mbits/sec    0    157 KBytes
[  5]  19.00-20.00  sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
[  5]  20.00-21.00  sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
[  5]  21.00-22.00  sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
[  5]  22.00-23.00  sec  11.2 MBytes  93.8 Mbits/sec    0    157 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-23.15  sec   260 MBytes  94.2 Mbits/sec    0             sender
[  5]   0.00-23.15  sec  0.00 Bytes  0.00 bits/sec                  receiver

DKMS

此驱动可通过 [DKMS] 安装。这是一个系统,它会在新内核安装或更新时自动重新编译并安装内核模块。要使用 DKMS,请安装 dkms 包,在 Debian(及其衍生)系统上操作如下:

$ sudo apt-get install dkms

下载

$ git clone -b v5.6.4.2 https://github.com/aircrack-ng/rtl8812au.git
cd rtl*

安装驱动

要安装驱动,请在源代码目录中打开终端并执行以下命令:

$ sudo make dkms_install

卸载驱动

要从系统中移除驱动,请在源代码目录中打开终端并执行以下命令:

$ sudo make dkms_remove

使用 make 构建

使用 'make' 构建并安装驱动,请运行:

$ make && make install

包/构建依赖(Kali)

$ sudo apt-get update
$ sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-`uname -r`

针对 Proxmox 虚拟环境 (PVE)

包/构建依赖

$ sudo apt-get update
$ sudo apt-get install bc mokutil build-essential libelf-dev pve-headers-`uname -r`

针对 Raspberry (RPI)

$ sudo apt-get install raspberrypi-kernel-headers

然后更改 Makefile 中的平台为 32 位 ARM 架构(RPi 1/2/3/ & 0/Zero):

$ 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

或者,对于 ARM64(RPI 3B+、4B 和 Zero2),需要运行:

$ 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

此外,如果收到关于 unrecognized command line option ‘-mgeneral-regs-only’ 的错误消息(例如在 Raspbian Buster 上),则需要针对 ARM 架构运行以下命令,然后重新尝试构建和安装:

$ export ARCH=arm
$ sed -i 's/^MAKE="/MAKE="ARCH=arm\ /' dkms.conf

或者,对于 ARM64,在重新构建之前运行:

$ export ARCH=arm64
$ sed -i 's/^MAKE="/MAKE="ARCH=arm64\ /' dkms.conf

在某些 Raspberry Pi 上,编译驱动可能会超出 RAM 限制,导致出现 gcc: fatal error: Killed signal terminated program cc1 错误。可以通过 /etc/dphys-swapfile 增加交换空间,例如设为 2000 兆字节,然后执行 /etc/init.d/dphys-swapfile restart。但基于交换分区编译速度很慢。

设置监控模式:

  1. 修复监控模式中的问题性干扰。
$ airmon-ng check kill

你也可以在 nm-connection-editor 中取消勾选“当网络可用时自动连接”。这仅在你有已保存的 WiFi 连接时有效。

  1. 关闭接口
$ sudo ip link set wlan0 down
  1. 设置监控模式
$ sudo iw dev wlan0 set type monitor
  1. 开启接口
$ sudo ip link set wlan0 up

设置发射功率:

$ sudo iw wlan0 set txpower fixed 3000

LED 控制

通过模块参数静态配置,在 /etc/modprobe.d/8812au.conf 或类似文件中,例如:

options 88XXau rtw_led_ctrl=0

值可为 0 或 1

或通过写入 /proc/net/rtl8812au/$(你的接口名称)/led_ctrl 动态控制,例如:

$ echo "0" > /proc/net/rtl8812au/$(你的接口名称)/led_ctrl

值可为 0 或 1

查看当前值:

$ cat /proc/net/rtl8812au/$(你的接口名称)/led_ctrl

USB 模式切换

0:不切换,1:从 USB 2.0 切换到 USB 3.0,2:从 USB 3.0 切换到 USB 2.0

$ rmmod 88XXau
$ modprobe 88XXau rtw_switch_usb_mode=int (0: 不切换 1: 从 usb2 切换到 usb3 2: 从 usb3 切换到 usb2)

NetworkManager

较新版本的 NetworkManager 会切换为随机 MAC 地址。一些用户可能更倾向于使用固定地址。只需在文件 /etc/NetworkManager/NetworkManager.conf 末尾添加以下内容:

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

然后使用以下命令重启 NetworkManager:

$ sudo service NetworkManager restart

致谢/贡献者

Alfa Networks - https://www.alfa.com.tw/
Realtek.      - https://www.realtek.com
aircrack-ng   - https://www.aircrack-ng.org

astsam        - https://github.com/astsam
evilphish     - https://github.com/evilphish
fariouche     - https://github.com/fariouche
CGarces       - https://github.com/CGarces
ZerBea        - https://github.com/ZerBea
lwfinger      - https://github.com/lwfinger
Ulli-Kroll.   - https://github.com/Ulli-Kroll
下载工具