Skip to content

Commit

Permalink
Fix WarDrive do_save check for valid GPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Jan 2, 2024
1 parent 5909158 commit fe08c14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esp32_marauder/WiFiScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,9 @@ void WiFiScan::executeWarDrive() {
String wardrive_line = WiFi.BSSIDstr(i) + "," + ssid + "," + this->security_int_to_string(WiFi.encryptionType(i)) + "," + gps_obj.getDatetime() + "," + (String)WiFi.channel(i) + "," + (String)WiFi.RSSI(i) + "," + gps_obj.getLat() + "," + gps_obj.getLon() + "," + gps_obj.getAlt() + "," + gps_obj.getAccuracy() + ",WIFI\n";
Serial.print((String)this->mac_history_cursor + " | " + wardrive_line);

evil_portal_obj.addLog(wardrive_line, wardrive_line.length());
if (do_save) {
evil_portal_obj.addLog(wardrive_line, wardrive_line.length());
}
}
}
this->channelHop();
Expand Down

0 comments on commit fe08c14

Please # to comment.