Allow cloning of Evil Twin SSIDs from WiFi Scan results
This commit is contained in:
parent
06e15db65c
commit
c624a0d607
|
@ -5,10 +5,10 @@
|
||||||
#define STICK_C_PLUS
|
#define STICK_C_PLUS
|
||||||
//#define STICK_C_PLUS2
|
//#define STICK_C_PLUS2
|
||||||
//#define STICK_C
|
//#define STICK_C
|
||||||
//#define CARDPUTER
|
//define CARDPUTER
|
||||||
// -=-=- Uncommenting more than one at a time will result in errors -=-=-
|
// -=-=- 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 BGCOLOR BLACK
|
||||||
#define FGCOLOR GREEN
|
#define FGCOLOR GREEN
|
||||||
|
|
||||||
|
@ -1507,6 +1507,12 @@ void wscan_result_loop(){
|
||||||
DISP.printf("Crypt: %s\n", encryptType);
|
DISP.printf("Crypt: %s\n", encryptType);
|
||||||
DISP.print("BSSID:\n" + WiFi.BSSIDstr(i));
|
DISP.print("BSSID:\n" + WiFi.BSSIDstr(i));
|
||||||
DISP.printf("\nNext: Back\n");
|
DISP.printf("\nNext: Back\n");
|
||||||
|
DISP.printf("Hold Select: Clone\n");
|
||||||
|
if(check_select_press()){
|
||||||
|
apSsidName=WiFi.SSID(cursor);
|
||||||
|
isSwitching=true;
|
||||||
|
current_proc=19;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
portal.h
2
portal.h
|
@ -211,6 +211,8 @@ void shutdownWebServer() {
|
||||||
webServer.stop();
|
webServer.stop();
|
||||||
Serial.println("Setting WiFi to STA mode");
|
Serial.println("Setting WiFi to STA mode");
|
||||||
WiFi.mode(WIFI_MODE_STA);
|
WiFi.mode(WIFI_MODE_STA);
|
||||||
|
Serial.println("Resetting SSID");
|
||||||
|
getSSID();
|
||||||
}
|
}
|
||||||
|
|
||||||
void setupWebServer() {
|
void setupWebServer() {
|
||||||
|
|
Loading…
Reference in New Issue