mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed a bug while parsing ssid probes (fixes #80)
This commit is contained in:
parent
d490491fe8
commit
e63d88d5f9
1 changed files with 3 additions and 1 deletions
|
@ -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]),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue