Match recovered passphrases to networks, not addresses #161
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "recovered-per-network"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
Matches each recovered passphrase to the network it was recovered for, instead of to an address alone.
AngryOxide picks a random rogue MAC each time it starts. When a phone answers that address for a network it remembers, AngryOxide files the handshake under the rogue MAC with the name the phone asked for, and sets the AP-less bit (
0x10) in the line's message-pair byte. So one address collects many unrelated names in a capture run. The recovered store kept one result per address (by_bssid.setdefault) and the Captured networks page joined on the address only, so one passphrase showed against every name under that address. The dashboard's "recovered N of M" count and the map's green markers used the same join.capture.py):HandshakeEventgainsstation(the client MAC) andapless.CaptureInterface.handshake_keys()gives, from the existing cached parse,(bssid, essid)for handshakes with a real AP and(bssid, station, essid)for AP-less ones.recovered.py):match_records()andRecoveredStore.capture_matches(capture).recovered_bssids(capture)gives the captured real APs with a result. The dashboard count and the map use it, so AP-less matches never count as a recovered access point.Cafe Guest · client 00:00:5E:00:53:E1). In the by-network view it's the BSSID, plus the client. A result under a name whose BSSID was never captured still shows there, as before; one whose BSSID was captured shows only where it matches.GUIDE_MD), Working with your captures, the plugin developer guide (the new event fields,handshake_keys(), therecoveredservice's methods), and the deferred entry on unmatched records.This fix is thanks to a community member who found the problem and sent in a patch for it following CONTRIBUTING.md.
lookup_bssid()andlookup_essid()are unchanged, for plugins that use them; the docstring and developer guide now say an address alone doesn't identify a network.Checklist
make lint(ansible--syntax-check,yamllint,shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.make test: 1668 passed locally, with the two tests that only fail off a device deselected (test_main_ignores_sighup,test_gps_serial_reader_recovers_from_a_stalled_link). The Test workflow runs it on the PR.show_passphrases) are unchanged.Release impact
kestrel_pipackage andplugins/map.pyonly.Notes for review
test_status_counts_neither_apless_captures_nor_other_namesfails on main (it counts 2 recovered access points instead of 1).🤖 Generated with Claude Code