diff --git a/esp32_marauder/WiFiScan.cpp b/esp32_marauder/WiFiScan.cpp index 4871e0a..fa73b02 100644 --- a/esp32_marauder/WiFiScan.cpp +++ b/esp32_marauder/WiFiScan.cpp @@ -936,6 +936,8 @@ void WiFiScan::StartScan(uint8_t scan_mode, uint16_t color) this->startWiFiAttacks(scan_mode, color, text_table1[51]); else if (scan_mode == WIFI_ATTACK_RICK_ROLL) this->startWiFiAttacks(scan_mode, color, text_table1[52]); + else if (scan_mode == WIFI_ATTACK_FUNNY_BEACON) + this->startWiFiAttacks(scan_mode, color, text1_68); else if (scan_mode == WIFI_ATTACK_AUTH) this->startWiFiAttacks(scan_mode, color, text_table1[53]); else if (scan_mode == WIFI_ATTACK_DEAUTH) @@ -1209,6 +1211,7 @@ void WiFiScan::StopScan(uint8_t scan_mode) (currentScanMode == WIFI_ATTACK_SLEEP_TARGETED) || (currentScanMode == WIFI_ATTACK_MIMIC) || (currentScanMode == WIFI_ATTACK_RICK_ROLL) || + (currentScanMode == WIFI_ATTACK_FUNNY_BEACON) || (currentScanMode == WIFI_PACKET_MONITOR) || (currentScanMode == WIFI_SCAN_CHAN_ANALYZER) || (currentScanMode == WIFI_SCAN_PACKET_RATE) || @@ -8655,6 +8658,36 @@ void WiFiScan::main(uint32_t currentTime) } } + if (currentTime - initTime >= 1000) + { + initTime = millis(); + //Serial.print("packets/sec: "); + //Serial.println(packets_sent); + String displayString = ""; + String displayString2 = ""; + displayString.concat(text18); + displayString.concat(packets_sent); + for (int x = 0; x < STANDARD_FONT_CHAR_LIMIT; x++) + displayString2.concat(" "); + #ifdef HAS_SCREEN + display_obj.tft.setTextColor(TFT_GREEN, TFT_BLACK); + display_obj.showCenterText(displayString2, TFT_HEIGHT / 2); + display_obj.showCenterText(displayString, TFT_HEIGHT / 2); + #endif + packets_sent = 0; + } + else if ((currentScanMode == WIFI_ATTACK_FUNNY_BEACON)) + { + // Need this for loop because getTouch causes ~10ms delay + // which makes beacon spam less effective + for (int i = 0; i < 7; i++) + { + for (int x = 0; x < (sizeof(funny_beacon)/sizeof(char *)); x++) + { + broadcastSetSSID(currentTime, rick_roll[x]); + } + } + if (currentTime - initTime >= 1000) { initTime = millis();