esp32_marauder/WiFiScan.cpp
// Function to prepare to run a specific scan
Function to prepare to run a specific scan
Function to prepare to run a specific scan
void WiFiScan::StartScan(uint8_t scan_mode, uint16_t color)
{
  if (scan_mode == WIFI_SCAN_OFF)
    StopScan(scan_mode);
  else if (scan_mode == WIFI_SCAN_PROBE)
    RunProbeScan(scan_mode, color);
  else if (scan_mode == WIFI_SCAN_EAPOL)
    RunEapolScan(scan_mode, color);
  else if (scan_mode == WIFI_SCAN_AP)
    RunBeaconScan(scan_mode, color);
  else if (scan_mode == WIFI_SCAN_PWN)
    RunPwnScan(scan_mode, color);
  else if (scan_mode == WIFI_SCAN_DEAUTH)
    RunDeauthScan(scan_mode, color);
  else if (scan_mode == WIFI_PACKET_MONITOR)
    RunPacketMonitor(scan_mode, color);
  else if (scan_mode == WIFI_ATTACK_BEACON_SPAM)
    RunBeaconSpam(scan_mode, color);
  else if (scan_mode == WIFI_ATTACK_RICK_ROLL)
    RunRickRoll(scan_mode, color);
  else if (scan_mode == BT_SCAN_ALL)
    RunBluetoothScan(scan_mode, color);
  else if (scan_mode == BT_SCAN_SKIMMERS)
    RunBluetoothScan(scan_mode, color);
  else if (scan_mode == WIFI_SCAN_ESPRESSIF)
    RunEspressifScan(scan_mode, color);
  WiFiScan::currentScanMode = scan_mode;
}
void WiFiScan :: StartScan ( uint8_t scan_mode , uint16_t color ) { if ( scan_mode == WIFI_SCAN_OFF ) StopScan ( scan_mode ) ; else if ( scan_mode == WIFI_SCAN_PROBE ) RunProbeScan ( scan_mode , color ) ; else if ( scan_mode == WIFI_SCAN_EAPOL ) RunEapolScan ( scan_mode , color ) ; else if ( scan_mode == WIFI_SCAN_AP ) RunBeaconScan ( scan_mode , color ) ; else if ( scan_mode == WIFI_SCAN_PWN ) RunPwnScan ( scan_mode , color ) ; else if ( scan_mode == WIFI_SCAN_DEAUTH ) RunDeauthScan ( scan_mode , color ) ; else if ( scan_mode == WIFI_PACKET_MONITOR ) RunPacketMonitor ( scan_mode , color ) ; else if ( scan_mode == WIFI_ATTACK_BEACON_SPAM ) RunBeaconSpam ( scan_mode , color ) ; else if ( scan_mode == WIFI_ATTACK_RICK_ROLL ) RunRickRoll ( scan_mode , color ) ; else if ( scan_mode == BT_SCAN_ALL ) RunBluetoothScan ( scan_mode , color ) ; else if ( scan_mode == BT_SCAN_SKIMMERS ) RunBluetoothScan ( scan_mode , color ) ; else if ( scan_mode == WIFI_SCAN_ESPRESSIF ) RunEspressifScan ( scan_mode , color ) ; WiFiScan :: currentScanMode = scan_mode ; }
Function to prepare to run a specific scan
Function to prepare to run a specific scan
//Serial.println("Starting Scan..."); //else if (scan_mode == LV_JOIN_WIFI) //  RunLvJoinWiFi(scan_mode, color);