Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #94 from n0xa/aggressive-wifi-spam
Browse files Browse the repository at this point in the history
Aggressive wifi spam
  • Loading branch information
n0xa committed Feb 14, 2024
2 parents c4cde5c + 0baf03b commit 9c430ab
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 30 deletions.
49 changes: 23 additions & 26 deletions m5stick-nemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1541,32 +1541,29 @@ void wifispam_loop() {
delay(1);
digitalWrite(M5LED, M5LED_OFF); //LED OFF on Stick C Plus
#endif
currentTime = millis();
if (currentTime - attackTime > 100) {
switch(spamtype) {
case 1:
len = sizeof(funnyssids);
while(i < len){
i++;
}
beaconSpamList(funnyssids);
break;
case 2:
len = sizeof(rickrollssids);
while(i < len){
i++;
}
beaconSpamList(rickrollssids);
break;
case 3:
char* randoms = randomSSID();
len = sizeof(randoms);
while(i < len){
i++;
}
beaconSpamList(randoms);
break;
}
switch(spamtype) {
case 1:
len = sizeof(funnyssids);
while(i < len){
i++;
}
beaconSpamList(funnyssids);
break;
case 2:
len = sizeof(rickrollssids);
while(i < len){
i++;
}
beaconSpamList(rickrollssids);
break;
case 3:
char* randoms = randomSSID();
len = sizeof(randoms);
while(i < len){
i++;
}
beaconSpamList(randoms);
break;
}
}

Expand Down
4 changes: 0 additions & 4 deletions wifispam.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ char randomName[32];
uint8_t channelIndex = 0;
uint8_t macAddr[6];
uint8_t wifi_channel = 1;
uint32_t currentTime = 0;
uint32_t packetSize = 0;
uint32_t packetCounter = 0;
uint32_t attackTime = 0;
uint32_t packetRateTime = 0;

#include <WiFi.h>
Expand Down Expand Up @@ -199,8 +197,6 @@ void nextChannel() {
}

void beaconSpamList(const char list[]){
attackTime = currentTime;

// temp variables
int i = 0;
int j = 0;
Expand Down

0 comments on commit 9c430ab

Please sign in to comment.