Author: Andreas Nilsen / @adde88
Date: April 23, 2025
This gist contains a small collection of two customized driver-options, as well as a helper script to switch between the two config files on a Raspberry Pi 3 B+.
Designed for Kali Linux (arm64) with Nexmon patches, specifically for the TP-Link Archer-T4U (RTL 8812AU).
One config file focuses on monitor mode and packet injections, with additional optimizations.
The second config file has more focus on acting as either a real or fake access-point, with full optimizations, and power improvements, to make sure it targets as many devices as physically possible.
- Purpose:
- Monitor/Injection profile: Enables dual-band monitor mode, full-power transmit (no power-save), warning-level logs, and standard USB2 mode.
- AP/Fake-AP profile: Forces 80 MHz VHT for high throughput, SU beamformer, FCC DFS channels, and full-power transmit.
- Why a Gist?
- Easily shareable and updatable as a single bundle of files (not a full repo).
βββ 88x2bu-profiles/
βββ 88x2bu-profiles/88x2bu.monitor.conf
βββ 88x2bu-profiles/88x2bu.ap.conf
βββ setup-rtl88x2bu
βββ README.md
- '88x2bu-profiles' directory holds the two config files, one focusing on monitor-mode and injection support, and one for AP mode with correct optimizatons for that mode, tring to reach as many client as physically possible, both also further optimized for the device and other usage.
setup-rtl88x2bu
symlinks the chosen profile as/etc/modprobe.d/88x2bu.conf
and reloads the driver.
- Clone or download this Gist to your Raspberry Pi 3B+, running Kali Linux 2025.1a. (My current linux version now as of today is 'Linux rpi3 6.6.74+rpt-rpi-v8' (with Nexmon patches)
- Move profiles into
/etc/modprobe.d/88x2bu-profiles/
and the setup-script to:/usr/local/bin/setup-rtl88x2bu
:mkdir ~/gits && cd ~/gits sudo git clone --recursive https://github.com/morrownr/88x2bu-20210702 && cd 88x2bu-20210702 sudo mkdir -p /etc/modprobe.d/88x2bu-profiles sudo cp 88x2bu-profiles/*.conf /etc/modprobe.d/88x2bu-profiles/ sudo cp setup-rtl88x2bu /usr/local/bin/ sudo chmod +x /usr/local/bin/setup-rtl88x2bu
sudo setup-rtl88x2bu monitor # for monitor/injection mode
sudo setup-rtl88x2bu ap # for AP/fake-AP mode