mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
new: reporting if wifi handshakes are full or half
This commit is contained in:
parent
9e9b984fec
commit
3d31bf3712
3 changed files with 8 additions and 0 deletions
|
@ -80,6 +80,10 @@ func (mod *EventsStream) viewWiFiHandshakeEvent(e session.Event) {
|
|||
|
||||
if hand.PMKID != nil {
|
||||
what = "RSN PMKID"
|
||||
} else if hand.Full {
|
||||
what += " (full)"
|
||||
} else if hand.Half {
|
||||
what += " (half)"
|
||||
}
|
||||
|
||||
fmt.Fprintf(mod.output, "[%s] [%s] captured %s -> %s %s to %s\n",
|
||||
|
|
|
@ -22,5 +22,7 @@ type HandshakeEvent struct {
|
|||
NewPackets int `json:"new_packets"`
|
||||
AP string `json:"ap"`
|
||||
Station string `json:"station"`
|
||||
Half bool `json:"half"`
|
||||
Full bool `json:"full"`
|
||||
PMKID []byte `json:"pmkid"`
|
||||
}
|
||||
|
|
|
@ -102,6 +102,8 @@ func (mod *WiFiModule) discoverHandshakes(radiotap *layers.RadioTap, dot11 *laye
|
|||
AP: apMac.String(),
|
||||
Station: staMac.String(),
|
||||
PMKID: rawPMKID,
|
||||
Half: station.Handshake.Half(),
|
||||
Full: station.Handshake.Complete(),
|
||||
})
|
||||
// make sure the info that we have key material for this AP
|
||||
// is persisted even after stations are pruned due to inactivity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue