From efed544fb9ef17eea97e31fa7c7c8b1fb4fcf47b Mon Sep 17 00:00:00 2001 From: Stefan Kremser Date: Fri, 13 Jan 2017 20:22:25 +0100 Subject: [PATCH] Add files via upload --- esp8266_deauther/esp8266_deauther.ino | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/esp8266_deauther/esp8266_deauther.ino b/esp8266_deauther/esp8266_deauther.ino index f930a26..090af4a 100644 --- a/esp8266_deauther/esp8266_deauther.ino +++ b/esp8266_deauther/esp8266_deauther.ino @@ -108,15 +108,20 @@ void loadFunctionsJS(){ server.send( 200, "text/javascript", data_getFunctionsJS void loadStyle(){ server.send ( 200, "text/css", data_getStyle() ); } //==========AP-Scan========== -void startAPScan(){ if(apScan.start()) server.send ( 200, "text/json", "true"); } +void startAPScan(){ + if(apScan.start()){ + server.send ( 200, "text/json", "true"); + attack.stopAll(); + } +} void sendAPResults(){ server.send ( 200, "text/json", apScan.getResults()); } void selectAP(){ if(server.hasArg("num")) { apScan.select(server.arg("num").toInt()); - attack.stopAll(); server.send ( 200, "text/json", "true"); + attack.stopAll(); } } @@ -125,6 +130,7 @@ void startClientScan(){ if(server.hasArg("time") && apScan.selected > -1 && !clientScan.sniffing) { server.send(200, "text/json", "true"); clientScan.start(server.arg("time").toInt()); + attack.stop(0); } else server.send ( 200, "text/json", "false"); }