diff --git a/modules/wifi_recon.go b/modules/wifi_recon.go index 33be5779..86a56a61 100644 --- a/modules/wifi_recon.go +++ b/modules/wifi_recon.go @@ -133,6 +133,10 @@ func (w *WiFiRecon) getRow(station *network.Station) []string { } ssid := station.ESSID() + if ssid == "" { + ssid = core.Dim(ssid) + } + encryption := station.Encryption if encryption == "OPEN" || encryption == "" { encryption = core.Green("OPEN") diff --git a/packets/dot11.go b/packets/dot11.go index e95e7e1f..d4af5f26 100644 --- a/packets/dot11.go +++ b/packets/dot11.go @@ -52,7 +52,10 @@ func Dot11ParseIDSSID(packet gopacket.Packet) (bool, string) { for _, layer := range packet.Layers() { if layer.LayerType() == layers.LayerTypeDot11InformationElement { dot11info, ok := layer.(*layers.Dot11InformationElement) - if ok == true && dot11info.ID == layers.Dot11InformationElementIDSSID && len(dot11info.Info) > 0 { + if ok == true && dot11info.ID == layers.Dot11InformationElementIDSSID { + if len(dot11info.Info) == 0 { + return true, "" + } return true, string(dot11info.Info) } }