We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22f5b2 commit 377948dCopy full SHA for 377948d
1 file changed
wifite/ui/scanner_view.py
@@ -81,8 +81,8 @@ def _render_header(self) -> Panel:
81
82
# Count targets by encryption type
83
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)
+ wpa_count = sum(1 for t in self.targets if 'WPA' in t.encryption and not getattr(t, 'is_wpa3', False))
+ wpa3_count = sum(1 for t in self.targets if getattr(t, 'is_wpa3', False))
86
wps_count = sum(1 for t in self.targets if hasattr(t, 'wps') and t.wps)
87
88
# Count clients
0 commit comments