Skip to content

Commit

Permalink
fix: deauth rogue ap
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Jan 27, 2025
1 parent 87da398 commit 83030cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions firmware/components/wifi_attacks/wifi_attacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ static void wifi_attack_brod_send_deauth_frame(wifi_ap_record_t* ap_target) {
}

static void wifi_attack_rogueap(const wifi_ap_record_t* ap_record) {
esp_wifi_set_mode(WIFI_MODE_AP);
running_rogueap_attack = true;
ESP_LOGI(TAG_WIFI_ATTACK_MODULE, "Configuring Rogue AP SSID: %s",
ap_record->ssid);
Expand Down
5 changes: 2 additions & 3 deletions firmware/main/apps/wifi/deauth/deauth_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ static void deauth_handle_attacks();

static void scanning_task() {
uint8_t scan_count = 0;
while (ap_records->count < (DEFAULT_SCAN_LIST_SIZE / 2) &&
scan_count < SCAN_RETRIES) {
while (ap_records->count < (DEFAULT_SCAN_LIST_SIZE / 2)) {
wifi_scanner_module_scan();
vTaskDelay(5000 / portTICK_PERIOD_MS);
vTaskDelay(1000 / portTICK_PERIOD_MS);
scan_count++;
}
ap_records = wifi_scanner_get_ap_records();
Expand Down

0 comments on commit 83030cc

Please sign in to comment.