Set evilportal AP from command line

This commit is contained in:
Just Call Me Koko
2025-07-25 10:04:17 -04:00
parent 77117a4dae
commit 113e8c0c92
2 changed files with 9 additions and 1 deletions

View File

@@ -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;
}
}
}
}

View File

@@ -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