mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
fix: fixed wifi.client.handshake event json serialization
This commit is contained in:
parent
242f4cfece
commit
73710ba7d3
3 changed files with 10 additions and 12 deletions
|
@ -69,11 +69,11 @@ func (mod *EventsStream) viewWiFiClientProbeEvent(e session.Event) {
|
|||
func (mod *EventsStream) viewWiFiHandshakeEvent(e session.Event) {
|
||||
hand := e.Data.(wifi.HandshakeEvent)
|
||||
|
||||
from := hand.Station.String()
|
||||
to := hand.AP.String()
|
||||
from := hand.Station
|
||||
to := hand.AP
|
||||
what := "handshake"
|
||||
|
||||
if ap, found := mod.Session.WiFi.Get(hand.AP.String()); found {
|
||||
if ap, found := mod.Session.WiFi.Get(hand.AP); found {
|
||||
to = fmt.Sprintf("%s (%s)", tui.Bold(ap.ESSID()), tui.Dim(ap.BSSID()))
|
||||
what = fmt.Sprintf("%s handshake", ap.Encryption)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue