From 026ae2e5a574d1b50146f537c335cadf6076af8e Mon Sep 17 00:00:00 2001 From: evilsocket Date: Wed, 6 Feb 2019 16:10:52 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/wifi.go | 4 ++-- modules/wifi_deauth.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/wifi.go b/modules/wifi.go index 9e4e5a13..bd166431 100644 --- a/modules/wifi.go +++ b/modules/wifi.go @@ -181,7 +181,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule { freqs := []int{} if args[0] != "clear" { - log.Info("setting hopping channels to %s", args[0]) + log.Debug("setting hopping channels to %s", args[0]) for _, s := range str.Comma(args[0]) { if ch, err := strconv.Atoi(s); err != nil { return err @@ -192,7 +192,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule { } if len(freqs) == 0 { - log.Info("resetting hopping channels") + log.Debug("resetting hopping channels") if freqs, err = network.GetSupportedFrequencies(w.Session.Interface.Name()); err != nil { return err } diff --git a/modules/wifi_deauth.go b/modules/wifi_deauth.go index bfe138c6..b4083104 100644 --- a/modules/wifi_deauth.go +++ b/modules/wifi_deauth.go @@ -136,7 +136,7 @@ func (w *WiFiModule) startDeauth(to net.HardwareAddr) error { } if ap.IsOpen() && !w.doDeauthOpen() { - logger("skipping deauth for open network %s (wifi.deauth.open is false)", ap.ESSID()) + log.Debug("skipping deauth for open network %s (wifi.deauth.open is false)", ap.ESSID()) } else { logger("deauthing client %s from AP %s (channel:%d encryption:%s)", client.String(), ap.ESSID(), ap.Channel(), ap.Encryption)