Update public source
This commit is contained in:
+27
-6
@@ -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
|
hash22000 = line
|
||||||
|
|
||||||
ap_bssid = self.normalize_mac(
|
ap_bssid = self.normalize_mac(
|
||||||
@@ -504,10 +519,16 @@ class CaptureParser:
|
|||||||
parts[4]
|
parts[4]
|
||||||
)
|
)
|
||||||
|
|
||||||
captured_at = self.find_handshake_time(
|
if handshake_type == "EAPOL":
|
||||||
ap_bssid,
|
|
||||||
client_mac
|
captured_at = self.find_handshake_time(
|
||||||
)
|
ap_bssid,
|
||||||
|
client_mac
|
||||||
|
)
|
||||||
|
|
||||||
|
else:
|
||||||
|
|
||||||
|
captured_at = None
|
||||||
|
|
||||||
gps = self.gps_from_timestamp(
|
gps = self.gps_from_timestamp(
|
||||||
captured_at
|
captured_at
|
||||||
@@ -565,7 +586,7 @@ class CaptureParser:
|
|||||||
|
|
||||||
|
|
||||||
"type":
|
"type":
|
||||||
"EAPOL",
|
handshake_type,
|
||||||
|
|
||||||
|
|
||||||
"hash22000":
|
"hash22000":
|
||||||
|
|||||||
Reference in New Issue
Block a user