forge
Explore
Log in

Don't you dare go Hollow

Device correlation, capture import, rainbow tables, headless crack workflows

Browse files at this commit

6a4a1fd23723a82a6b43a0f2e332f5b47aef1383Ahmet Kaan GümüşParent: 1e4e538
  • docs
    • device correlation, capture import, rainbow tables, headless crack workflows
Show full message
📝 docs(usage): device correlation, capture import, rainbow tables, headless crack workflows
docs/USAGE.mdmodified+140 -11
@@ -50,7 +50,39 @@ left untouched.
5050 the channel hopper. APs and clients stream into the Networks page.
5151 2. Click the target network (e.g. *parafin*) in the AP table — or click a
5252 client row to select the (AP, client) pair.
53-3. **Attacks** page:
53+ The Networks page also shows, per AP/client: OUI vendor (IEEE MA-L/MA-M/
54+ MA-S registries; `random` marks a locally-administered address — the
55+ [MAC-randomization] norm for modern phones), security detail (AKM
56+ suites; the badge refines to `WPA2/3` transition, `WPA3` SAE-only, or
57+ `OWE` enhanced-open), and a signal-history sparkline; a per-channel
58+ activity strip sits above the AP table; a **Probes** section lists
59+ nearby clients' probe requests (hidden SSIDs also get correlated from
60+ association requests). Client rows resolve their AP column to the SSID
61+ name, and the **ID** column pairs rotated/randomized MACs of one
62+ physical radio: `#1~ (2)` = device group 1, two known MACs, `~` = strong
63+ witness (`?` fingerprint only, `~` fingerprint + shared probed SSID or
64+ uninterrupted sequence numbers, `=` WPS UUID-E). Pairing uses the
65+ ordered-IE fingerprint of probe/assoc frames plus those witnesses — see
66+ the Log page for pairing decisions. AP rows flag risk at a glance:
67+ `weak` on Open/WEP networks, `<hidden>` for cloaked SSIDs, `rogue?` when
68+ the same SSID appears on another BSSID with different security. The
69+ activity strip above the AP table becomes a scrolling per-channel
70+ timeline once traffic accumulates (one column per snapshot, brightest =
71+ busiest); a channel hosting ≥4 APs gets a crowded warning — overlapping
72+ BSSs eat each other's airtime. A sudden deauth storm from a source that
73+ is not us (≥10 frames to one target in 10 s) raises a `DEAUTH STORM`
74+ alert.
75+3. **Attacks** page — the top card is a full target briefing, built from
76+ everything Networks already knows: BSSID, channel/band, OUI vendor,
77+ security badge + AKM suites, signal sparkline, beacon count, material
78+ already captured for this AP family, your label, and a bold **advice
79+ line** ("deauth a client while capture runs", "no clients mapped — run
80+ PMKID first", "SAE-only — dead end", "WPA3 transition — crackable") that
81+ answers "which button do I press". The card survives the AP leaving the
82+ scan table (a "last scan snapshot" note marks the fallback), so locking
83+ onto a host-connected network no longer blanks it. The Stations list
84+ shows each mapped station with vendor, ID-pairing chip, RSSI, and
85+ whether its AP link is real or assumed.
5486 - **Capture Handshake** — parks on the target channel and tracks EAPOL
5587 4-way exchanges; `M1..M4` progress shows live until a crackable
5688 M1+M2 pair lands.
@@ -58,16 +90,91 @@ left untouched.
5890 re-authenticate so the handshake capture above completes fast. Count
5991 comes from the input next to the button. Deauth while capturing is
6092 the intended combo: keep both on the same channel (the UI targets a
61- single AP, so this is automatic).
93+ single AP, so this is automatic). When the AP has ≥2 connected
94+ clients a **Deauth all clients (N)** button appears: targeted frames
95+ at every known client plus one broadcast round.
6296 - **PMKID Attack** — clientless: auth+assoc from the monitor
6397 interface's own MAC and read the PMKID from the AP's M1. Many APs
6498 don't volunteer one — the log tells you either way.
99+ - **SAE-only APs** (WPA3 without the PSK AKM) offer no offline-crackable
100+ handshake or PMKID — the capture/deauth buttons are disabled for them
101+ with an explanation. WPA2/WPA3 transition APs (PSK AKM present) are
102+ crackable as usual.
65103 - **Export .hc22000** — writes every capture in hashcat 22000 format.
66-4. **Cracker** page — stop capture first (the cracker holds the wordlist
67- stream for a long time; radio access is exclusive). Pick the capture,
68- point the wordlist field at e.g. `/usr/share/wordlists/rockyou.txt`,
69- hit **Start**. Live H/s and candidate count stream in. **Stop** flips
70- the job's stop flag and the worker exits at the next batch.
104+ - **Export .pcap** — copies the session's raw-frame spool
105+ (`~/wifilab/spool.pcap`, radiotap linktype, truncated on each Start
106+ capture) for Wireshark.
107+4. **Cracker** page — pick the capture, the attack mode, hit **Start**.
108+ Cracking is a plain UI-process job (GPU + wordlist need neither root
109+ nor the radio), so it runs while capturing, before ever capturing, or
110+ after a restart (captures are persisted and restored). Modes:
111+ - **wordlist** — dictionary run; point the field at a wordlist file
112+ (e.g. rockyou; note it is NOT preinstalled — download/choose a real
113+ path, the page refuses to start on a path it cannot open).
114+ - **rules** — dictionary × mangling rules (hashcat-subset:
115+ `l u c C t r d $X ^X [ ] sXY`, multi-op lines, `#` comments): the
116+ classic human-password crack that plain wordlists miss. Resume
117+ continues at the flattened word×rule index.
118+ - **hybrid** — wordlist × append sweep: every word gets every suffix
119+ of 1..4 characters from the charset chips (human pattern
120+ "summer2024"), clamped to WPA's 63 bytes.
121+ - **bruteforce** — exhaustive `charset^len` sweep over the given
122+ min..max lengths (clamped to WPA's 8..63). The charset is the union
123+ of the checked preset chips (a-z, A-Z, 0-9, common specials) and the
124+ custom-chars field. Grows combinatorially — the status row shows
125+ the exact total and the worst-case ETA. The **freq-order** chip
126+ (default on) tries most-common password characters first (same
127+ space, better early-hit odds).
128+ - **rainbow** — a precomputed PMK table for the capture's SSID: no
129+ PBKDF2 at run time, one MIC compare per entry (millions/s). Build
130+ one from any wordlist with **Build table** (pays PBKDF2 once, GPU
131+ when available); reuse it for every later capture of that SSID.
132+ Tables are salt-bound to the SSID — a table for another SSID is
133+ refused up front, not silently exhausted.
134+ Live H/s and candidate count stream in, with a throughput curve (one
135+ bar per progress sample), a coverage progress bar with exact percentage
136+ whenever the worker knows the worst-case total, and a worst-case ETA
137+ (every untried candidate at the current rate — wordlist/table line
138+ counts are upper bounds, brute force is exact). A **recent captures**
139+ block lists the newest crackable targets so you can see what material
140+ you have without opening the dropdown. The recent-activity block on
141+ the page mirrors cracker/rainbow log lines (including failures).
142+ **Stop** flips the job's stop flag and the worker exits
143+ at the next batch.
144+
145+ **PMK cache** — wordlist-family runs first blast through a per-SSID
146+ cache of already-computed PMKs (`~/wifilab/cache/<ssid-hex>.pmk`,
147+ rainbow format — one MIC compare per entry) and skip those candidates
148+ in the main run. Pure-CPU runs APPEND their PMKs to the cache (GPU
149+ runs cannot — the verify pipeline has no PMK readback). A cache for a
150+ different SSID is never used.
151+
152+ **Presets & recents** — the row above the target picker saves the
153+ current mode+paths as a named chip and re-applies them later; the last
154+ five wordlists are one click away (`~/wifilab/profiles.json`).
155+
156+ **Import** — `Import .cap/.pcap/.hc22000` brings in captures made
157+ elsewhere: pcap files (radiotap or raw 802.11) are scanned for
158+ beacons + EAPOL exchanges and PMKIDs; hc22000 files are parsed line
159+ by line. Everything importable lands in the target picker.
160+
161+ **Benchmark & estimator** — `Benchmark (3s)` measures this machine's
162+ GPU and CPU hash rate. The estimator card then converts any candidate
163+ or attack configuration into worst-case crack times (log lines
164+ prefixed `estimate:`); without a benchmark it shows candidate-space
165+ math only.
166+
167+ A found password raises a desktop notification (best-effort; silently
168+ no-ops headless) on top of the in-app banner and toast.
169+
170+ **Resume:** an interrupted run autosaves its position to
171+ `~/wifilab/crack-session.json` every couple of seconds (and once on
172+ Stop) — crash, power cut, or closing the window loses at most ~2 s
173+ of work. On the next start the page shows a "saved run" banner with
174+ **Resume** (wordlist/table re-open and skip forward, brute force
175+ seeks the odometer in O(1); progress and ETA keep counting against
176+ the full space) and **Discard**. A found password or an exhausted
177+ space deletes the session instead.
71178 5. Everything the service (and the crack thread) does is mirrored on the
72179 **Log** page, including worker errors (permissions, channel-change
73180 failures, wordlist open failures). During a scan a compact
@@ -77,8 +184,20 @@ left untouched.
77184
78185 On exit (window close) the service is told to shut down: it stops all
79186 radio workers, restores the interface to managed mode (deleting the
80-`<iface>mon` vif if one was created), and exits; the UI-side crack
81-thread is stopped as well.
187+`<iface>mon` vif if one was created), restarts NetworkManager if it was
188+stopped this session, and exits; the UI-side crack thread is stopped as
189+well. The restore is verified: if the monitor vif survives, the log
190+carries the exact manual recovery command (`sudo iw dev <if>mon del`).
191+
192+## Headless CLI
193+
194+`wifilab crack --capture capture.hc22000 --wordlist rockyou.txt` runs the
195+same engine with no UI, no radio, no root: first crackable `WPA*` line of
196+the capture file is the target; modes `--mode wordlist|rules|bruteforce`
197+plus `--rules`, `--hybrid`, `--min/--max`, charset chips, and `--cpu`
198+(force CPU; also fully side-effect-free — no PMK-cache appends). Exit
199+codes: 0 password found (`FOUND: …`), 1 space exhausted, 2 usage/io
200+error. Consults the per-SSID PMK cache like the UI does.
82201
83202 ## Cracking backends
84203
@@ -86,10 +205,20 @@ The cracker prefers the GPU (wgpu/Vulkan compute; works headless, e.g.
86205 radv). `GpuCracker::try_new()` returns `None` when no suitable adapter
87206 exists and the run transparently falls back to the CPU reference cracker —
88207 the log line says which backend is active. WPA passphrases 8..63 bytes;
89-wordlist lines are trimmed/streamed, huge files are fine.
208+wordlist lines are trimmed/streamed, huge files are fine. Rainbow runs
209+use precomputed PMKs and skip PBKDF2 entirely (the GPU is then only used
210+for the one-time build).
90211
91212 ## Files
92213
93214 - Captures export to `./captures/wifilab-<ts>.hc22000` (or the path chosen
94215 in the save dialog) in hashcat `-m 22000` format — one `WPA*02` line per
95- handshake, one `WPA*01` line per PMKID.
216+ handshake, one `WPA*01` line per PMKID. Export .pcap copies the spool
217+ instead.
218+- `~/wifilab/spool.pcap` — raw frames (radiotap) of the current capture
219+ session, written by the service; truncated on each Start capture.
220+- `~/wifilab/cache/<ssid-hex>.pmk` — per-SSID PMK cache (rainbow format),
221+ consulted by every wordlist-family run; appended by pure-CPU runs.
222+- `~/wifilab/profiles.json` — cracker presets + recent wordlists.
223+- `~/wifilab/captures.jsonl`, `labels.json`, `crack-session.json` — as
224+ before (captures, per-MAC labels, resume state).