mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-05 20:40:25 -08:00
Set evilportal AP from command line
This commit is contained in:
@@ -648,7 +648,15 @@ void CommandLine::runCommand(String input) {
|
||||
evil_portal_obj.setHtmlFromSerial();
|
||||
}
|
||||
else if (et_command == "setap") {
|
||||
int target_ap_index = cmd_args.get(cmd_sw + 2).toInt();
|
||||
if ((target_ap_index >= 0) && (target_ap_index < access_points->size())) {
|
||||
evil_portal_obj.setAP(access_points->get(target_ap_index).essid);
|
||||
AccessPoint new_ap = access_points->get(target_ap_index);
|
||||
new_ap.selected = true;
|
||||
access_points->set(target_ap_index, new_ap);
|
||||
|
||||
evil_portal_obj.ap_index = target_ap_index;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
//#define MARAUDER_MINI
|
||||
//#define MARAUDER_V4
|
||||
//#define MARAUDER_V6
|
||||
//#define MARAUDER_V6_1
|
||||
#define MARAUDER_V6_1
|
||||
//#define MARAUDER_V7
|
||||
//#define MARAUDER_V7_1
|
||||
//#define MARAUDER_KIT
|
||||
|
||||
Reference in New Issue
Block a user