Skip to main content

Crack Triage: which captured handshakes are actually worth cracking

Updated 6 min readMarkdown
Part of seriesProjects
Crack Triage: which captured handshakes are actually worth cracking

A payload for the Hak5 WiFi Pineapple Pager that reads every handshake the device has already captured, works out which networks are worth a GPU's time — and which aren't — and writes a best-first best.22000 for hashcat. It reads the hash, not the filename, and it never cracks or uploads anything.

The problem

Spend an afternoon near enough Wi-Fi and the Pager's /root/loot/handshakes fills up with captures. The trouble is that a folder full of .22000 files tells you nothing about which of them will ever break. Some are PMKIDs straight from the access point — gold. Some are full four-way handshakes where a client proved the password. Plenty are half-captures: an M1/M2 pair where the client answered but nothing confirms the answer was even correct. And a good chunk are networks whose default key is a known, short keyspace you could brute in minutes — or a long random factory key you'll never wordlist your way into.

Pointing hashcat at the whole pile and waiting is how you waste a weekend. Crack Triage ranks the pile so you crack the winners first and skip the dead ends.

The data is already on the device

There was no capture code to write. The firmware already drops a .22000 next to each capture, in hcxtools' 22000 format, which is exactly what hashcat -m 22000 eats. Crack Triage reads every .22000 under the handshakes directory directly.

For the pcaps the firmware didn't convert — captures without a sibling hash file — it converts them once with hcxpcapngtool and caches the result, keyed by the pcap's path hash, so a re-run never re-converts:

c="$OUT/conv/$(printf '%s' "$p" | md5sum | cut -c1-16).22000"
[ -f "$c" ] || hcxpcapngtool -o "$c" "$p" >/dev/null 2>&1

Everything after that is pure bash + busybox awk. No cracking, no network — Crack Triage is read-only by design. It tells you what you have; your GPU, on your own machine, does the work.

Reading the hash, not the filename

This is the part that matters. The firmware names its files helpfully — ..._handshake.22000 for a "full" capture, ..._handshake_partial.22000 for a partial one. Those names lie. A file named _handshake routinely contains only an M1/M2 challenge, and a file named _partial routinely contains a complete, crackable pair. Trust the filename and you crack the wrong things.

So Crack Triage ignores the name and parses the 22000 line itself:

WPA*TT*PMKID|MIC*MAC_AP*MAC_CLIENT*ESSID*ANONCE*EAPOL*MESSAGEPAIR
  • TT = 01 → a PMKID, lifted straight from the AP. It always matches the AP's real password. Best possible.
  • TT = 02 → an EAPOL message-pair. The last field, MESSAGEPAIR, is one byte that says which messages were caught. Its low three bits are the pair type: 0 is M1+M2 — the client's answer, which may be a wrong password attempt (a challenge, CHAL). Anything ≥ 1 involves M3 or M4, which only exist after the AP validated the password — a real authenticated handshake (AUTH).
  • Two more bits ride along: 0x10 marks an ap-less capture (the client used its stored key against the Pager's own AP — which makes even a CHAL from there solid), and 0x80 marks that nonce-error-correction is needed.

Each network keeps its single best hash: a PMKID or AUTH beats a CHAL, and that best hash is what lands in best.22000.

From kind to a word you can act on

AUTH/PMKID/CHAL is the quality of the hash. The grade answers a different question — how much effort will it take to turn that hash into a password — and it folds in what the SSID tells you about the default key. A small families.tsv maps SSID patterns to a default-key class, and the grade is the first rule that matches:

grade meaning
QUICK a known family with a short default keyspace — minutes on a GPU
DERIV a family whose default key is derivable from the BSSID — use KEYSMITH, no cracking needed
TRY a good hash (AUTH/PMKID, or an ap-less CHAL), password unknown — run a wordlist
MAYBE CHAL only — the password in it may be a wrong guess
LONG a family with a long random factory key — wordlists only, low odds
NONE no crackable hash (WPA3/SAE, or an incomplete capture)

The output is three files: triage.tsv (one ranked line per network), captures.tsv (one line per hash, for auditing), and best.22000 — the single best hash of every crackable network, in rank order, ready for hashcat -m 22000 best.22000 <wordlist>.

The screen

The on-device UI is a freestanding C program drawn straight to the Pager's framebuffer — no toolkit, no libc — on a shared "grade list" scaffold I factored out so Crack Triage, Grader and the coming AP Dossier all share one screen engine. Cyan phosphor on near-black: a LIST of networks worst-first (grade, SSID, kind, hashes, clients), a detail page per network that spells out what the kind means and prints the exact hashcat line to run, and a KEY legend. Everything is driven by the four buttons.

A few busybox-awk landmines had to be walked around to get there: no 0x hex literals (decimal only), no strtonum, and busybox's print > file quietly duplicates to stdout — so anything that writes files does its tagging outside awk.

Verified on hardware

Synthetic tests are nice, but the interesting validation was a real corpus: 56 .22000 files and 117 pcaps captured on an older (1.1.3) Pager. Crack Triage triaged 22 networks, converted the 61 pcaps that had no hash file with the on-device hcxpcapngtool 6.3.1, and wrote a 16-line best.22000.

The content-over-filename rule earned its keep immediately: 23 files the firmware had named _handshake (full) actually held only M1/M2 and were correctly graded MAYBE, while 16 files named _partial held a real pair and were promoted to TRY. The device near me at the time was broadcasting RehGast — 40 hashes across 5 clients, graded TRY, ap-less, family "Human-named" → wordlist + rules. Exactly the network you'd start with.

A debugging aside that made me grin: before I fixed a frame-parsing bug in the sister payload, a garbage field decoded to the hex 4c4c592e5445, which is ASCII LLY.TE — the middle of a neighbour's WILLY.TEL-... SSID. The data is always trying to tell you something.

Status

Firmware 2.1.0, verified on hardware against the corpus above. Off-device tests run the engine on synthetic hashes. Real captures never touch the repo — the tests use synthetic data only, and triage is read-only: it never cracks, never phones home.

Authorized use only: your own networks, or an engagement where cracking is in scope.

*Code: payloads/general/crack_triage.

About the author

  • 30 years in creative leadership (in the ad industry as a Creative Director) taught me one core skill: dissecting complex systems and finding the flaw before someone else does. My tech roots run back to 8-bit machine code on a C64 (yeah – 80s, baby!) Today, I’m combining that legacy hacker curiosity with modern threat detection and offensive security. BATTLE-TESTED LOGIC: Decades of high-pressure problem solving and systems analysis. HACKER MINDSET: I don't just follow playbooks; I reverse-engineer how the attack path actually works. CONTINOUS SKILL-UP: CompTIA Security+ certified (among other certs), building home labs, and constantly training for L1 ops to future Pentesting.

No comments yet. Be the first to comment.