mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-23 15:10:06 +01:00
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:
@@ -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 ===== //
|
||||
|
||||
Reference in New Issue
Block a user