From c624a0d607845a25df6ff886ca25cdb3daca8476 Mon Sep 17 00:00:00 2001 From: Noah Axon Date: Sun, 7 Jan 2024 02:54:10 -0600 Subject: [PATCH] Allow cloning of Evil Twin SSIDs from WiFi Scan results --- m5stick-nemo.ino | 10 ++++++++-- portal.h | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/m5stick-nemo.ino b/m5stick-nemo.ino index 41e97b1..aee18a8 100644 --- a/m5stick-nemo.ino +++ b/m5stick-nemo.ino @@ -5,10 +5,10 @@ #define STICK_C_PLUS //#define STICK_C_PLUS2 //#define STICK_C -//#define CARDPUTER +//define CARDPUTER // -=-=- Uncommenting more than one at a time will result in errors -=-=- -String buildver="2.2.4"; +String buildver="2.3.0"; #define BGCOLOR BLACK #define FGCOLOR GREEN @@ -1507,6 +1507,12 @@ void wscan_result_loop(){ DISP.printf("Crypt: %s\n", encryptType); DISP.print("BSSID:\n" + WiFi.BSSIDstr(i)); DISP.printf("\nNext: Back\n"); + DISP.printf("Hold Select: Clone\n"); + if(check_select_press()){ + apSsidName=WiFi.SSID(cursor); + isSwitching=true; + current_proc=19; + } } } diff --git a/portal.h b/portal.h index 49a9540..d5518c7 100644 --- a/portal.h +++ b/portal.h @@ -211,6 +211,8 @@ void shutdownWebServer() { webServer.stop(); Serial.println("Setting WiFi to STA mode"); WiFi.mode(WIFI_MODE_STA); + Serial.println("Resetting SSID"); + getSSID(); } void setupWebServer() {