From e63d88d5f927b1795e74b02036f9acfdf3ef4f01 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sun, 25 Feb 2018 16:13:36 +0100 Subject: [PATCH] fix: fixed a bug while parsing ssid probes (fixes #80) --- modules/wifi_recon.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/wifi_recon.go b/modules/wifi_recon.go index 18656972..87019894 100644 --- a/modules/wifi_recon.go +++ b/modules/wifi_recon.go @@ -370,6 +370,8 @@ func (w *WiFiRecon) onChannel(channel int, cb func()) { if err := network.SetInterfaceChannel(w.Session.Interface.Name(), channel); err != nil { log.Warning("Error while hopping to channel %d: %s", channel, err) + } else { + log.Debug("Hopped on channel %d", channel) } cb() @@ -477,7 +479,7 @@ func (w *WiFiRecon) discoverProbes(radiotap *layers.RadioTap, dot11 *layers.Dot1 w.Session.Events.Add("wifi.client.probe", WiFiProbe{ From: dot11.Address2, - SSID: string(req.Contents[2:size]), + SSID: string(req.Contents[2 : 2+size]), }) }