Skip to content

Commit

Permalink
fixing foxing
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorcelli committed Dec 12, 2024
1 parent 7d17c74 commit 0296125
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 3 additions & 1 deletion src/modules/wifi/scan_hosts.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ void sendARPPacket(uint8_t *targetIP, uint8_t *targetMAC, uint8_t *spoofedIP, ui

void arpSpoofing(const Host& host, bool mitm);

void arpPoisoner();
void arpPoisoner();

void stationDeauth(Host host);
30 changes: 14 additions & 16 deletions src/modules/wifi/sniffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,15 @@ void sniffer_setup() {
ESP_ERROR_CHECK( esp_wifi_init(&cfg) );
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );

wifi_config_t wifi_config = {
.ap = {
.ssid = "BruceSniffer",
.password = "brucenet",
.ssid_len = strlen("BruceSniffer"),
.channel = 1, // Canal da rede (1-13)
.authmode = WIFI_AUTH_WPA2_PSK, // Modo de autenticação
.ssid_hidden = 1, // 1 para ocultar o SSID, 0 para visível
.max_connection = 2, // Máximo de conexões simultâneas
.beacon_interval = 100, // Intervalo do beacon em ms
},
};
wifi_config_t wifi_config;
strcpy((char *)wifi_config.ap.ssid, "BruceSniffer");
strcpy((char *)wifi_config.ap.password, "brucenet");
wifi_config.ap.ssid_len = strlen("BruceSniffer");
wifi_config.ap.channel = 1; // Channel
wifi_config.ap.authmode = WIFI_AUTH_WPA2_PSK; // auth mode
wifi_config.ap.ssid_hidden = 1; // 1 to hidden SSID, 0 to visivle
wifi_config.ap.max_connection = 2; // Max connections
wifi_config.ap.beacon_interval = 100; // beacon interval in ms

// Configura o modo AP
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_AP));
Expand Down Expand Up @@ -471,10 +468,11 @@ void sniffer_setup() {
drawMainBorderWithTitle("RAW SNIFFER"); // Clear Screen and redraw border
tft.setTextSize(FP);
tft.setTextColor(bruceConfig.priColor, bruceConfig.bgColor);
padprint("Saved file into " + FileSys);
padprint("File: " + filename);
padprint("Sniffer Mode: " + String(_only_HS?"Only EAPOL/HS":"All packets Sniff"));
padprint(String(BTN_ALIAS) + ": Options Menu");
padprintln("Saved file into " + FileSys);
padprintln("File: " + filename);
padprintln("Sniffer Mode: " + String(_only_HS?"Only EAPOL/HS":"All packets Sniff"));
padprintln("Deauth: " + deauth?"ON":"OFF");
padprintln(String(BTN_ALIAS) + ": Options Menu");
tft.drawRightString("Ch." + String(ch<10?"0":"") + String(ch) + "(Next)",WIDTH-10, HEIGHT-18,1);
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/wifi/wifi_atks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void send_raw_frame(const uint8_t *frame_buffer, int size)
** function: wsl_bypasser_send_raw_frame
** @brief: prepare the frame to deploy the attack
***************************************************************************************/
void wsl_bypasser_send_raw_frame(const wifi_ap_record_t *ap_record, uint8_t chan, uint8_t target[6])
void wsl_bypasser_send_raw_frame(const wifi_ap_record_t *ap_record, uint8_t chan, const uint8_t target[6])
{
Serial.begin(115200);
Serial.print("\nPreparing deauth frame to -> ");
Expand Down

0 comments on commit 0296125

Please sign in to comment.