mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
fix: fixed wifi.client.probe event json serialization
This commit is contained in:
parent
c8e9d11871
commit
242f4cfece
3 changed files with 7 additions and 7 deletions
|
@ -12,11 +12,11 @@ type ClientEvent struct {
|
|||
}
|
||||
|
||||
type ProbeEvent struct {
|
||||
FromAddr net.HardwareAddr
|
||||
FromVendor string
|
||||
FromAlias string
|
||||
SSID string
|
||||
RSSI int8
|
||||
FromAddr string `json:"mac"`
|
||||
FromVendor string `json:"vendor"`
|
||||
FromAlias string `json:"alias"`
|
||||
SSID string `json:"essid"`
|
||||
RSSI int8 `json:"rssi"`
|
||||
}
|
||||
|
||||
type HandshakeEvent struct {
|
||||
|
|
|
@ -108,7 +108,7 @@ func (mod *WiFiModule) discoverProbes(radiotap *layers.RadioTap, dot11 *layers.D
|
|||
}
|
||||
|
||||
mod.Session.Events.Add("wifi.client.probe", ProbeEvent{
|
||||
FromAddr: dot11.Address2,
|
||||
FromAddr: dot11.Address2.String(),
|
||||
FromVendor: network.ManufLookup(dot11.Address2.String()),
|
||||
FromAlias: mod.Session.Lan.GetAlias(dot11.Address2.String()),
|
||||
SSID: string(req.Contents[2 : 2+size]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue