mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
fix: don't overwrite full WPS map when new info arrive
This commit is contained in:
parent
4e82a4356a
commit
2c2be3149d
2 changed files with 4 additions and 1 deletions
|
@ -284,7 +284,9 @@ func (w *WiFiModule) updateInfo(dot11 *layers.Dot11, packet gopacket.Packet) {
|
|||
|
||||
if ok, bssid, info := packets.Dot11ParseWPS(packet, dot11); ok {
|
||||
if station, found := w.Session.WiFi.Get(bssid.String()); found {
|
||||
station.WPS = info
|
||||
for name, value := range info {
|
||||
station.WPS[name] = value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ func NewStation(essid, bssid string, frequency int, rssi int8) *Station {
|
|||
Endpoint: NewEndpointNoResolve(MonitorModeAddress, bssid, cleanESSID(essid), 0),
|
||||
Frequency: frequency,
|
||||
RSSI: rssi,
|
||||
WPS: make(map[string]string),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue