Skip to content

Commit 377948d

Browse files
committed
WPA3: fix wpa3_count (targets count by encryption type)
1 parent b22f5b2 commit 377948d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wifite/ui/scanner_view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def _render_header(self) -> Panel:
8181

8282
# Count targets by encryption type
8383
wep_count = sum(1 for t in self.targets if 'WEP' in t.encryption)
84-
wpa_count = sum(1 for t in self.targets if 'WPA' in t.encryption and not hasattr(t, 'is_wpa3') or not t.is_wpa3)
85-
wpa3_count = sum(1 for t in self.targets if hasattr(t, 'is_wpa3') and t.is_wpa3)
84+
wpa_count = sum(1 for t in self.targets if 'WPA' in t.encryption and not getattr(t, 'is_wpa3', False))
85+
wpa3_count = sum(1 for t in self.targets if getattr(t, 'is_wpa3', False))
8686
wps_count = sum(1 for t in self.targets if hasattr(t, 'wps') and t.wps)
8787

8888
# Count clients

0 commit comments

Comments
 (0)