仅适用于 Linux 和 Android
* 使用 "ip" 和 "iw" 代替 "ifconfig" 和 "iwconfig"
详细说明见下文,请阅读 README!
注意:TP-Link AC600 及其他设备存在回归问题。目前的临时解决方案是从之前的提交中拉取代码。请参阅 此评论。
[设备] 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 包,在 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 install
包/构建依赖(Kali)
$ sudo apt-get update
$ sudo apt-get install bc mokutil build-essential libelf-dev linux-headers-`uname -r`
包/构建依赖
$ sudo apt-get update
$ sudo apt-get install bc mokutil build-essential libelf-dev pve-headers-`uname -r`
$ 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。但基于交换分区编译速度很慢。
设置监控模式:
$ airmon-ng check kill
你也可以在 nm-connection-editor 中取消勾选“当网络可用时自动连接”。这仅在你有已保存的 WiFi 连接时有效。
$ sudo ip link set wlan0 down
$ sudo iw dev wlan0 set type monitor
$ sudo ip link set wlan0 up
设置发射功率:
$ sudo iw wlan0 set txpower fixed 3000
options 88XXau rtw_led_ctrl=0
值可为 0 或 1
$ echo "0" > /proc/net/rtl8812au/$(你的接口名称)/led_ctrl
值可为 0 或 1
$ cat /proc/net/rtl8812au/$(你的接口名称)/led_ctrl
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 会切换为随机 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