Skip to content

Commit efed544

Browse files
authored
Add files via upload
1 parent 1915513 commit efed544

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

esp8266_deauther/esp8266_deauther.ino

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,20 @@ void loadFunctionsJS(){ server.send( 200, "text/javascript", data_getFunctionsJS
108108
void loadStyle(){ server.send ( 200, "text/css", data_getStyle() ); }
109109

110110
//==========AP-Scan==========
111-
void startAPScan(){ if(apScan.start()) server.send ( 200, "text/json", "true"); }
111+
void startAPScan(){
112+
if(apScan.start()){
113+
server.send ( 200, "text/json", "true");
114+
attack.stopAll();
115+
}
116+
}
112117

113118
void sendAPResults(){ server.send ( 200, "text/json", apScan.getResults()); }
114119

115120
void selectAP(){
116121
if(server.hasArg("num")) {
117122
apScan.select(server.arg("num").toInt());
118-
attack.stopAll();
119123
server.send ( 200, "text/json", "true");
124+
attack.stopAll();
120125
}
121126
}
122127

@@ -125,6 +130,7 @@ void startClientScan(){
125130
if(server.hasArg("time") && apScan.selected > -1 && !clientScan.sniffing) {
126131
server.send(200, "text/json", "true");
127132
clientScan.start(server.arg("time").toInt());
133+
attack.stop(0);
128134
} else server.send ( 200, "text/json", "false");
129135
}
130136

0 commit comments

Comments
 (0)