Skip to content

Commit 31bf199

Browse files
authored
Refactor has_handshake method for clarity
1 parent e6ab0e5 commit 31bf199

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

wifite/model/handshake.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def divine_bssid_and_essid(self):
6060
Color.pl('\n{+} Discovered essid "{C}%s{W}"' % essid)
6161
self.essid = essid
6262
break
63-
6463
def has_handshake(self):
6564
if not self.bssid or not self.essid:
6665
self.divine_bssid_and_essid()
@@ -72,12 +71,7 @@ def has_handshake(self):
7271
return True
7372

7473
# cowpatty can be reliable for 2&3 captures
75-
if len(self.cowpatty_handshakes()) > 0:
76-
return True
77-
78-
# Do NOT treat aircrack-only as valid (aircrack is informative but not definitive)
79-
return False
80-
74+
return len(self.cowpatty_handshakes()) > 0
8175

8276
def tshark_handshakes(self):
8377
"""Returns list[tuple] of BSSID & ESSID pairs (ESSIDs are always `None`)."""

0 commit comments

Comments
 (0)