fix: keeping red-mark for APs with captured key material even when stations disconnect (fixes #449)

This commit is contained in:
evilsocket 2019-02-15 12:08:55 +01:00
commit 38c761afa8
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 123 additions and 95 deletions

View file

@ -56,7 +56,7 @@ func (mod *WiFiModule) getRow(station *network.Station) ([]string, bool) {
// this is ugly, but necessary in order to have this
// method handle both access point and clients
// transparently
if ap, found := mod.Session.WiFi.Get(station.HwAddress); found && (ap.HasHandshakes() || ap.HasPMKID()) {
if ap, found := mod.Session.WiFi.Get(station.HwAddress); found && ap.HasKeyMaterial() {
encryption = tui.Red(encryption)
}
}