Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
rtw89-monitor-injection — Realtek RTL8852AE / rtw89 Monitor Mode and Packet Injection (Raw TX) patch for Linux / Kali Linux | Kitploit
Tools/GitHubGitHub/ph4ntom-rev/rtw89-monitor-injection
Packet Sniffing & AnalysisWi-Fi AuditingReverse EngineeringNetwork SecurityWireless SecurityPenetration TestingHardware Security
GitHubph4ntom-rev/rtw89-monitor-injection

rtw89-monitor-injection

Realtek RTL8852AE / rtw89 Monitor Mode and Packet Injection (Raw TX) patch for Linux / Kali Linux

View Repository
121673 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    903
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    726
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    437
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    410
  • 5

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    404
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    357

Explore all tools

Browse our collection of tools

View all tools →
Share

rtw89: monitor mode and raw frame injection fixes (PATCH v8)

CI License: GPL-2.0 OR BSD-3-Clause

English | Русский | Architecture | Validation & Evidence

Patches for the mainline Linux rtw89 driver (Realtek RTL8851B/8852A/8852B/8852C/8922A) that fix monitor mode reception across scan/ROC/MAC restores, enable raw 802.11 frame injection (aireplay-ng, radiotap TX, DATA_RETRIES, NO_ACK) on standalone and MONITOR_FLAG_ACTIVE monitor interfaces, and restore the operating channel when leaving idle across monitor restarts. Firmware is not modified.

Status

Current seriespatches/v8/, 5 patches ([PATCH rtw-next v8], +42/-4; all 5/5 Acked-by: Ping-Ke Shih, patch 3 Reviewed-by: Zong-Zhe Yang), base pkshih/rtw.git rtw-next 0bdc579dbfc2 (Linux 7.4-rc1)
Mailing list[PATCH rtw-next v8 0/5] posted on linux-wireless (2026-11-19; final 5/5 Acked-by); supersedes v7 and v6.
Build & static checksEach patch builds on its own; W=1 and sparse (C=1) with CONFIG_PROVE_LOCKING=y show 0 new warnings; checkpatch.pl --strict reports 0 errors/warnings/checks; patch_rtw89.py verified across v6.1, v6.6, v6.12 (Gen 1), v6.15, v6.18 (Gen 2), and v7.4-rc1 with Kbuild make W=1 C=1 modules on LTS v6.6, v6.12, v6.18, and v7.4-rc1 in CI.
Runtime & FW verificationRTL8852AE (10ec:8852, firmware rtw89/rtw8852a_fw-1.bin 0.13.36.2, Linux 7.1.5+kali-amd64) — verified in IDA Pro 9.5 and live-tested via tracefs/kprobes + verify_hardware.py (PASS), see validation & screenshots.
Not runtime-testedRTL8852B/C/BT, RTL8851B, RTL8922A/D (Wi-Fi 7), USB devices, DBCC.

The v8 series

#PatchKind
1wifi: rtw89: avoid NULL vif dereference in rtw89_ops_tx()fix (vif_to_rtwvif_safe()), Fixes: + Cc: stable
2wifi: rtw89: handle negative rate index for injected framesfix (max_t(s8, ..., 0)), Fixes: + Cc: stable
3wifi: rtw89: restore channel when leaving idle on non-chanctx devicesfix (rtwdev->support_chanctx + CONF_CHANGE_CHANNEL)
4wifi: rtw89: avoid reading seq_ctrl on control framesfix (ieee80211_is_ctl())
5wifi: rtw89: honor ASSIGN_SEQ, retries, and NO_ACK for injected framesinjection (!ASSIGN_SEQ, NO_ACK, max_rate_tries = 63)

Details of every patch and the rtw89_mon out-of-tree layer are in docs/ARCHITECTURE.md, the cover letter, and docs/PREFLIGHT_VALIDATION.md.

End-to-End Hardware Validation Summary

[!NOTE] Passive vs Active Monitor TX: A passive monitor interface (iw ... type monitor without flags active) transmits only when it is the sole open interface on the card; if a station or AP interface is up, passive monitor TX is dropped cleanly. To inject frames concurrently while a station or AP interface remains open (preserving hardware Auto-ACK), create an active monitor interface (NL80211_FEATURE_ACTIVE_MONITOR): sudo iw dev wlan0 interface add mon0act type monitor flags active otherbss.

Usage

A. Mainline / wireless-next kernel tree

cd linux
git am /path/to/rtw89-monitor-injection/patches/v8/v8-00*-wifi-*.patch

To run local read-only submission preflight checks (checkpatch.pl --strict, trailer checks, and dry-run command generation without sending mail):

bash scripts/prepare_submission.sh --kernel-dir /path/to/linux

B. Distribution kernel, one-off build

scripts/patch_rtw89.py applies the v5 changes to the rtw89 sources of a distribution kernel (Linux 6.1 - 7.x) and fails fast if any mandatory hook anchor does not match.

sudo apt install linux-headers-$(uname -r) linux-source build-essential python3
mkdir -p ~/rtw89_src
tar -xf /usr/src/linux-source-*.tar.xz --strip-components=6 -C ~/rtw89_src \
    --wildcards '*/drivers/net/wireless/realtek/rtw89/*'

bash scripts/build_module.sh --rtw89-dir ~/rtw89_src --install

build_module.sh asks before unloading the running driver (Wi-Fi drops briefly); use --yes to skip the prompt. All rtw89 modules are installed together into /lib/modules/$(uname -r)/updates/rtw89, so core, bus, and chip modules always come from the same source tree. Undo with bash scripts/build_module.sh --uninstall.

Secure Boot: unsigned modules are rejected by the kernel. The script detects Secure Boot via mokutil and stops before unloading anything. Sign with an enrolled MOK:

bash scripts/build_module.sh --rtw89-dir ~/rtw89_src --install \
    --sign-key /var/lib/shim-signed/mok/MOK.priv --sign-cert /var/lib/shim-signed/mok/MOK.der

C. Distribution kernel with DKMS

bash scripts/dkms_prepare.sh --source /usr/src/linux-source-7.1.tar.xz
sudo dkms install rtw89-monitor-injection/5.0

dkms_prepare.sh scopes BUILD_EXCLUSIVE_KERNEL to the source kernel's MAJOR.MINOR series (supporting both stable and -rc kernel strings). After upgrading to a new kernel series, re-run dkms_prepare.sh with the matching linux-source archive. Remove with bash scripts/dkms_prepare.sh --remove.

Monitor mode and injection

# Standalone monitor interface
sudo ip link set wlan0 down
sudo iw dev wlan0 set type monitor
sudo ip link set wlan0 up
sudo iw dev wlan0 set freq 2412
sudo tcpdump -i wlan0 -e -c 30

# Or concurrent active monitor alongside managed wlan0
sudo iw dev wlan0 interface add mon0act type monitor flags active otherbss
sudo ip link set dev mon0act address 02:00:00:88:52:10
sudo ip link set mon0act up

Repository layout

Download Tool