added a client preference for delay of execution. This a global delay before each command is parsed. You can unset it with by setting delay to ZERO. The purpose of this setting is for users who want to use the pm3 against a implanted implant where you have to get a good position and arrange the pm3 while pressing <enter>.
This commit is contained in:
1 parent
d7da384f69
commit
28eec73445
5 files changed
+68
-2
No files matched your search
@@ -15,6 +15,7 @@
|
||||
|
||||
#include "ui.h"
|
||||
#include "comms.h"
|
||||
#include "util_posix.h" // msleep
|
||||
|
||||
bool AlwaysAvailable(void) {
|
||||
return true;
|
||||
@@ -193,6 +194,11 @@ void CmdsHelp(const command_t Commands[]) {
|
||||
}
|
||||
|
||||
int CmdsParse(const command_t Commands[], const char *Cmd) {
|
||||
|
||||
if (session.client_exe_delay != 0) {
|
||||
msleep(session.client_exe_delay);
|
||||
}
|
||||
|
||||
// Help dump children
|
||||
if (strcmp(Cmd, "XX_internal_command_dump_XX") == 0) {
|
||||
dumpCommandsRecursive(Commands, 0, false);
|
||||
|
||||
Reference in new issue
Block a user