Skip to main content

Kali NetHunter ATWA-NG

ATWA-NH — ATWA-NG for NetHunter

PyPI Python License: MIT CI

A lightweight, CLI-only port of ATWA-NG for Kali NetHunter. It runs inside the ARM64 Kali chroot from NetHunter Terminal, uses a detected monitor-capable USB adapter, and leaves Android Wi-Fi (wlan0) and its vendor supplicant untouched.

No GUI. No password cracking. No vendored x86 binaries.

Quick start

1. Install inside the Kali chroot

python3 -m pip install atwa-nh

This creates the atwa-nh command and installs dpkt (radiotap / 802.11 decoding) and pyroute2 (interface discovery and monitor-mode control over nl80211). Capture and injection use raw AF_PACKET sockets from the standard library; iw/ip remain as a fallback if pyroute2 is unavailable. To install from source instead:

git clone https://github.com/KiMiGuel/ATWA-NH.git
cd ATWA-NH
sh install.sh

The source installer copies atwa_nh into the chroot's site-packages. It needs dpkt and pyroute2 installed first and writes nothing to /system or /sdcard.

2. Check it works

atwa-nh --help

3. Run it

atwa-nh              # interface chooser, then numbered menu (needs a terminal)
atwa-nh scan --iface wlan1

On launch the menu first probes iw dev / iw list and shows an interface selection screen: every wireless adapter with its PHY, current mode and capabilities (monitor / injection / bands). Pick the number of your USB adapter and ATWA-NH brings it up in monitor mode before showing the seven commands. a toggles the protected STA interface, r rescans, q quits. Only adapters whose PHY supports monitor mode can be selected; the Android STA wlan0 stays hidden until you press a.

The menu lists the seven commands, i) Change interface and 0) Exit. Every command uses the adapter you picked at startup — there is no per-command iface prompt — and asks only for the values the command actually needs. Set NO_COLOR or pipe the output to get plain text.

NetHunter Custom Command

In the NetHunter app, add a Custom Command with the absolute module path — the app does not inherit the chroot's PATH:

/usr/bin/python3 -m atwa_nh scan --iface wlan1

Replace wlan1 with the adapter reported by the capability probe. See docs/nethunter.md for the full steps.

Commands

Command What it does Main options
scan Discover access points --iface, --duration, --managed
wps-recon Filter APs advertising WPS --iface, --duration, --managed
eapol-hunt Collect EAPOL frames in monitor mode --iface, --duration
handshake Capture a 4-way handshake --iface, --duration
pmkid Capture PMKIDs --iface, --duration
deauth Inject deauthentication frames --iface, --bssid, --client, --count
verify-capture Check a capture for EAPOL traffic --iface, --file

In the menu, scan and wps-recon print access points live while hopping the adapter's supported channels. There is no duration prompt: the scan runs up to 60 seconds, and pressing Enter stops it early. ATWA-NH then lists the APs found so far, sorted by signal strength (strongest first) — pick one and its BSSID is prefilled for deauth and its channel is selected for handshake / pmkid. On a terminal the live view is redrawn in the same order.

Every on-air command accepts --iface and --allow-sta. Interface names vary between devices, so selection is based on the PHY's monitor capability, not a hardcoded name. The conventional STA name is protected by default; --allow-sta opts out deliberately. scan and wps-recon use iw dev <iface> scan automatically when the adapter is in managed mode, and --managed forces it.

Adapters

Adapter Status
AR9271 (ath9k_htc) Reference adapter — managed scan, monitor, frame TX status
MT7610U (mt76) Validated dual-band — managed scan, monitor, frame
RTL8814AU Experimental — capability-probed at runtime
RTL8811AU Retired — managed scan reboots the kernel

Injection is gated on the adapter's frame nl80211 command. Captures land in /sdcard/nh_files/atwa-ng when available, otherwise $HOME/.atwa-nh in the chroot.

Tests

PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest tests/ -q

The environment variable avoids a broken host-level logfire pytest plugin; it is not needed inside the clean chroot.

Provenance

ATWA-NH is a separate, reduced port of ATWA-NG et.

NetHunter is a Kali Linux project; the NetHunter logo is used to identify the platform. The ATWA-NG mark comes from the ATWA-NG project.

License

MIT — see LICENSE.

Metadata

Release files for atwa-nh 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for atwa-nh 0.2.0
File Size Uploaded Provenance Actions
atwa_nh-0.2.0.tar.gz 34.1 kB With provenance Details for atwa_nh-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for atwa-nh 0.2.0
File Interpreter ABI Platform Actions
atwa_nh-0.2.0-py3-none-any.whl Python 3 none any Details for atwa_nh-0.2.0-py3-none-any.whl

Total release size: 59.2 kB

Release files / atwa_nh-0.2.0.tar.gz

Download URL atwa_nh-0.2.0.tar.gz
Size 34.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b026d12ce92e6fe235a39f4571a40466aed37aa1de44a56aee086a68eb3e41c
BLAKE2b-256 checksum
How to use checksums
c78eb603d9f1cd3b8fa6652ecd49935f2e0eb698a10fce228625ed96277c8cb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / atwa_nh-0.2.0-py3-none-any.whl

Download URL atwa_nh-0.2.0-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
940e2b7bbbe0ceced20cd89279f1cb6fa080e19a0e11ba92af81cb09482572b6
BLAKE2b-256 checksum
How to use checksums
d1500614924b54a96076468f7cf5ac10384700a781690d24b446484d49a35a04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for atwa-nh 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for atwa_nh-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page