Update public source
This commit is contained in:
+23
-2
@@ -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,11 +519,17 @@ class CaptureParser:
|
||||
parts[4]
|
||||
)
|
||||
|
||||
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":
|
||||
|
||||
Reference in New Issue
Block a user