Improved attack routine

- less count() calls
- fixed the deauth station crash (hopefully)
- sort targets after channel for better performance
- increment counter in deauth/beacon/probe function and not in sendPacket() that was stupid anyway
This commit is contained in:
Stefan Kremser
2018-03-25 10:26:55 +02:00
parent 7d26b0741f
commit e494d95c15
5 changed files with 82 additions and 44 deletions

View File

@@ -889,8 +889,12 @@ void SerialInterface::runCommand(String input) {
for (int i = 0; i < packetSize; i++)
packet[i] = strtoul((packetStr.substring(i * 2, i * 2 + 2)).c_str(), NULL, 16);
if (attack.sendPacket(packet, packetSize, &counter, wifi_channel, 10)) prntln(CLI_CUSTOM_SENT);
else prntln(CLI_CUSTOM_FAILED);
if (attack.sendPacket(packet, packetSize, wifi_channel, 10)){
prntln(CLI_CUSTOM_SENT);
counter++;
} else{
prntln(CLI_CUSTOM_FAILED);
}
}
// ===== LED ===== //