From ee2e66a20a149ba3306b4d8ad407b1a930e692ad Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 17 Feb 2018 19:24:15 +0100 Subject: [PATCH] fix: using 'OPEN' as default if no encryption is detcted (fixes #57) --- modules/wifi_recon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wifi_recon.go b/modules/wifi_recon.go index 44023dae..bb90968e 100644 --- a/modules/wifi_recon.go +++ b/modules/wifi_recon.go @@ -138,8 +138,8 @@ func (w *WiFiRecon) getRow(station *network.WiFiStation) []string { ssid := station.ESSID() encryption := station.Encryption - if encryption == "OPEN" { - encryption = core.Green(encryption) + if encryption == "OPEN" || encryption == "" { + encryption = core.Green("OPEN") } sent := humanize.Bytes(station.Sent) recvd := humanize.Bytes(station.Received)