mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 03:29:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
38c94cb105
commit
fe568c8188
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ func (mod *WiFiModule) discoverHandshakes(radiotap *layers.RadioTap, dot11 *laye
|
||||||
numUnsaved := station.Handshake.NumUnsaved()
|
numUnsaved := station.Handshake.NumUnsaved()
|
||||||
doSave := numUnsaved > 0
|
doSave := numUnsaved > 0
|
||||||
if doSave && mod.shakesFile != "" {
|
if doSave && mod.shakesFile != "" {
|
||||||
mod.Info("saving handshake frames to %s", mod.shakesFile)
|
mod.Debug("saving handshake frames to %s", mod.shakesFile)
|
||||||
if err := mod.Session.WiFi.SaveHandshakesTo(mod.shakesFile, mod.handle.LinkType()); err != nil {
|
if err := mod.Session.WiFi.SaveHandshakesTo(mod.shakesFile, mod.handle.LinkType()); err != nil {
|
||||||
mod.Error("error while saving handshake frames to %s: %s", mod.shakesFile, err)
|
mod.Error("error while saving handshake frames to %s: %s", mod.shakesFile, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue