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

This commit is contained in:
evilsocket 2018-02-19 20:58:10 +01:00
parent 420ab9e26c
commit b4df469ff1
2 changed files with 16 additions and 17 deletions

View file

@ -311,7 +311,7 @@ func (w *WiFiRecon) startDeauth(apMac net.HardwareAddr, clMac net.HardwareAddr)
} else {
log.Info("Deauthing clients from AP %s ...", apMac.String())
// deauth every authenticated client
for _, station := range w.Session.WiFi.Stations {
for _, station := range w.Session.WiFi.List() {
if station.IsAP == false {
w.sendDeauthPacket(apMac, station.HW)
}