misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-02-06 16:10:52 +01:00
commit 026ae2e5a5
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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)