mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
Added beacon packet to handshake cap file for PMKID assoc attack
This commit is contained in:
parent
4a96bf641a
commit
5302f7f3f3
2 changed files with 13 additions and 0 deletions
|
@ -54,6 +54,16 @@ func (mod *WiFiModule) discoverHandshakes(radiotap *layers.RadioTap, dot11 *laye
|
|||
staMac,
|
||||
PMKID,
|
||||
key.Nonce)
|
||||
|
||||
//add the ap's station's beacon packet to be saved as part of the handshake cap file
|
||||
//https://github.com/ZerBea/hcxtools/issues/92
|
||||
//https://github.com/bettercap/bettercap/issues/592
|
||||
|
||||
if ap.Station.Handshake.Beacon != nil {
|
||||
mod.Debug("adding beacon frame to handshake for %s", apMac)
|
||||
station.Handshake.AddFrame(1, ap.Station.Handshake.Beacon)
|
||||
}
|
||||
|
||||
} else if !key.Install && !key.KeyACK && key.KeyMIC && !allZeros(key.Nonce) {
|
||||
// [2] (MIC) client is sending SNonce+MIC to the API
|
||||
station.Handshake.AddFrame(1, packet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue