mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-24 07:29:59 +01:00
Fixed loop bug in Mac library
@N0vaPixel never change a running system! This caused a bug in the beacon flood attack.
This commit is contained in:
@@ -27,9 +27,9 @@ void Mac::setMac(Mac adr){
|
||||
|
||||
bool Mac::valid(){
|
||||
for(int i=0;i<6;i++){
|
||||
if(adress[i] == 0xFF || adress[i] == 0x00) return false;
|
||||
if(adress[i] != 0xFF && adress[i] != 0x00) return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
String Mac::toString(){
|
||||
@@ -57,4 +57,4 @@ bool Mac::compare(Mac target){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user