Metadata-Version: 2.4
Name: atwa-nh
Version: 0.1.0
Summary: ATWA-NG for NetHunter: lightweight CLI-only WiFi test suite for Kali NetHunter
Author: KiMiGuel
License-Expression: MIT
Keywords: nethunter,wifi,80211,atwa-ng
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Information Technology
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: scapy>=2.5
Dynamic: license-file

# ATWA-NH — ATWA-NG for NetHunter

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. Run it with no
arguments in a terminal for a small numbered menu; scripted use keeps the
`atwa_nh <command> ...` form.

## Commands

- `scan` — access point discovery (managed `iw` scan or monitor-mode beacons)
- `wps-recon` — filter access points advertising WPS
- `eapol-hunt` — collect EAPOL frames seen in monitor mode
- `handshake` / `pmkid` — write captures under the resolved output directory
- `deauth` — inject deauthentication frames (gated on adapter injection support)
- `verify-capture` — check a capture file for EAPOL traffic

Every on-air command accepts `--iface`; the default capability probe rejects
the Android STA interface. `scan` and `wps-recon` auto-select the managed
`iw dev <iface> scan` path when the adapter is currently in managed mode,
and `--managed` forces it. `scapy` is the only runtime dependency; install the
package from inside the chroot after `scapy` is available.

## Install

Inside the Kali chroot:

```sh
sh install.sh
```

See [docs/nethunter.md](docs/nethunter.md) for the NetHunter Custom Command
line, e.g.:

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

Substitute the detected adapter name for `wlan1`.

## Tests

```sh
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python3 -m pytest tests/ -v
```

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 — no GUI, no cracker, no
desktop dependencies. `scan_managed` was adapted from ATWA-NG @
`31acd35b4269bdb08c3bf7e463a54c2be438a0f5`; the beacon/EAPOL parsing here is a
deliberately minimal local implementation, vendored as a pinned snapshot. No
shared-library refactor with ATWA-NG is planned yet.
