fix: using 'OPEN' as default if no encryption is detcted (fixes #57)

This commit is contained in:
evilsocket 2018-02-17 19:24:15 +01:00
commit ee2e66a20a

View file

@ -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)