Skip to content

Commit

Permalink
Merge pull request #397 from justcallmekoko/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
justcallmekoko authored Nov 21, 2023
2 parents 7a79860 + 6ec9952 commit e1a6fe8
Show file tree
Hide file tree
Showing 12 changed files with 92,516 additions and 92,596 deletions.
5 changes: 5 additions & 0 deletions esp32_marauder/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ void CommandLine::runCommand(String input) {
if (html_sw != -1) {
String target_html_name = cmd_args.get(html_sw + 1);
evil_portal_obj.target_html_name = target_html_name;
evil_portal_obj.using_serial_html = false;
Serial.println("Set html file as " + evil_portal_obj.target_html_name);
}
//else {
Expand All @@ -513,8 +514,12 @@ void CommandLine::runCommand(String input) {
else if (et_command == "sethtml") {
String target_html_name = cmd_args.get(cmd_sw + 2);
evil_portal_obj.target_html_name = target_html_name;
evil_portal_obj.using_serial_html = false;
Serial.println("Set html file as " + evil_portal_obj.target_html_name);
}
else if (et_command == "sethtmlstr") {
evil_portal_obj.setHtmlFromSerial();
}
else if (et_command == "setap") {

}
Expand Down
13 changes: 13 additions & 0 deletions esp32_marauder/EvilPortal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,20 @@ void EvilPortal::setupServer() {
Serial.println("web server up");
}

void EvilPortal::setHtmlFromSerial() {
Serial.println("Setting HTML from serial...");
const char *htmlStr = Serial.readString().c_str();
strncpy(index_html, htmlStr, strlen(htmlStr));
this->has_html = true;
this->using_serial_html = true;
Serial.println("html set");
}

bool EvilPortal::setHtml() {
if (this->using_serial_html) {
Serial.println("html previously set");
return true;
}
Serial.println("Setting HTML...");
#ifndef WRITE_PACKETS_SERIAL
File html_file = sd_obj.getFile("/" + this->target_html_name);
Expand Down
3 changes: 3 additions & 0 deletions esp32_marauder/EvilPortal.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,14 @@ class EvilPortal {

String target_html_name = "index.html";

bool using_serial_html;

String get_user_name();
String get_password();
void addLog(String log, int len);
bool begin(LinkedList<ssid>* ssids, LinkedList<AccessPoint>* access_points);
void main(uint8_t scan_mode);
void setHtmlFromSerial();

};

Expand Down
3 changes: 2 additions & 1 deletion esp32_marauder/WiFiScan.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ class WiFiScan
#endif

//String connected_network = "";
const String alfa = "1234567890qwertyuiopasdfghjkklzxcvbnm QWERTYUIOPASDFGHJKLZXCVBNM_";
//const String alfa = "1234567890qwertyuiopasdfghjkklzxcvbnm QWERTYUIOPASDFGHJKLZXCVBNM_";
const String alfa = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789-=[];',./`\\_+{}:\"<>?~|!@#$%^&*()";

const char* rick_roll[8] = {
"01 Never gonna give you up",
Expand Down
2 changes: 1 addition & 1 deletion esp32_marauder/configs.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//#define XIAO_ESP32_S3
//// END BOARD TARGETS

#define MARAUDER_VERSION "v0.13.4"
#define MARAUDER_VERSION "v0.13.5"

//// BOARD FEATURES
#ifdef MARAUDER_M5STICKC
Expand Down
Binary file modified mechanical/Marauder-Mini/Marauder-Mini-Assembly.f3z
Binary file not shown.
185,086 changes: 92,492 additions & 92,594 deletions mechanical/Marauder-Mini/Marauder-Mini-Assembly.step

Large diffs are not rendered by default.

Binary file modified mechanical/Marauder-Mini/Marauder-Mini_Bottom.stl
Binary file not shown.
Binary file modified mechanical/Marauder-Mini/Marauder-Mini_Top.stl
Binary file not shown.
Binary file modified mechanical/Marauder-Mini/Marauder-Mini_Top_cutout.stl
Binary file not shown.
Binary file not shown.
Binary file added mechanical/Marauder-Mini/MarauderMini-Top v4.stl
Binary file not shown.

0 comments on commit e1a6fe8

Please sign in to comment.