Skip to content

Commit

Permalink
Added packetrate to json string
Browse files Browse the repository at this point in the history
Not used yet, but I'll update the web interface later
  • Loading branch information
Stefan Kremser committed Apr 17, 2018
1 parent 7e92f64 commit 264e875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp8266_deauther/Attack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ String Attack::getStatusJSON() {
String json = String(OPEN_BRACKET); // [
json += String(OPEN_BRACKET) + b2s(deauth.active) + String(COMMA) + String(scan.countSelected()) + String(COMMA) + String(deauthPkts) + String(COMMA) + String(deauth.maxPkts) + String(CLOSE_BRACKET) + String(COMMA); // [false,0,0,0],
json += String(OPEN_BRACKET) + b2s(beacon.active) + String(COMMA) + String(ssids.count()) + String(COMMA) + String(beaconPkts) + String(COMMA) + String(beacon.maxPkts) + String(CLOSE_BRACKET) + String(COMMA); // [false,0,0,0],
json += String(OPEN_BRACKET) + b2s(probe.active) + String(COMMA) + String(ssids.count()) + String(COMMA) + String(probePkts) + String(COMMA) + String(probe.maxPkts) + String(CLOSE_BRACKET); // [false,0,0,0]
json += String(OPEN_BRACKET) + b2s(probe.active) + String(COMMA) + String(ssids.count()) + String(COMMA) + String(probePkts) + String(COMMA) + String(probe.maxPkts) + String(CLOSE_BRACKET) + String(COMMA); // [false,0,0,0],
json += String(packetRate); // 0
json += CLOSE_BRACKET; // ]

return json;
Expand Down

0 comments on commit 264e875

Please sign in to comment.