From f5606f081e44328a942d251bf7995badb16fc738 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Fri, 16 Feb 2018 13:23:07 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/wlan_recon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wlan_recon.go b/modules/wlan_recon.go index 010d4317..b675067c 100644 --- a/modules/wlan_recon.go +++ b/modules/wlan_recon.go @@ -54,7 +54,7 @@ func NewWDiscovery(s *session.Session) *WDiscovery { w.AddHandler(session.NewModuleHandler("wlan.deauth", "", "Start a 802.11 deauth attack (use ticker to iterate the attack).", func(args []string) error { - return w.SendDeauth() + return w.startDeauth() })) w.AddHandler(session.NewModuleHandler("wlan.recon set client MAC", "wlan.recon set client ((?:[0-9A-Fa-f]{2}[:-]){5}(?:[0-9A-Fa-f]{2}))", @@ -258,7 +258,7 @@ func (w *WDiscovery) SendDeauthPacket(ap net.HardwareAddr, client net.HardwareAd } } -func (w *WDiscovery) SendDeauth() error { +func (w *WDiscovery) startDeauth() error { switch { case len(w.BSTarget) > 0 && len(w.ClientTarget) > 0: w.SendDeauthPacket(w.BSTarget, w.ClientTarget)