From c8df4d72d1021f9af7d18e1914bf8cb114c79496 Mon Sep 17 00:00:00 2001 From: WildSoft Date: Wed, 11 Nov 2026 18:24:41 +0300 Subject: [PATCH] Update public source --- src/parser.py | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/parser.py b/src/parser.py index 9d55f92..b9256e6 100644 --- a/src/parser.py +++ b/src/parser.py @@ -493,7 +493,22 @@ class CaptureParser: - # WPA*02*hash*APMAC*CLIENTMAC*ESSID*... + hash_type = parts[1] + + handshake_type = { + "01": "PMKID", + "02": "EAPOL" + }.get(hash_type) + + if handshake_type is None: + + self.log.warning( + "Unsupported WPA hash type: %s", + hash_type + ) + + continue + hash22000 = line ap_bssid = self.normalize_mac( @@ -504,10 +519,16 @@ class CaptureParser: parts[4] ) - captured_at = self.find_handshake_time( - ap_bssid, - client_mac - ) + if handshake_type == "EAPOL": + + captured_at = self.find_handshake_time( + ap_bssid, + client_mac + ) + + else: + + captured_at = None gps = self.gps_from_timestamp( captured_at @@ -565,7 +586,7 @@ class CaptureParser: "type": - "EAPOL", + handshake_type, "hash22000":