diff --git a/monkey/infection_monkey/exploit/log4shell.py b/monkey/infection_monkey/exploit/log4shell.py index 4bb2c2777..a3af75372 100644 --- a/monkey/infection_monkey/exploit/log4shell.py +++ b/monkey/infection_monkey/exploit/log4shell.py @@ -28,6 +28,7 @@ from infection_monkey.utils.threading import interruptible_iter logger = logging.getLogger(__name__) LOG4SHELL_EXPLOITER_TAG = "log4shell-exploiter" +VICTIM_WAIT_SLEEP_TIME_SEC = 1 class Log4ShellExploiter(WebRCE): @@ -200,7 +201,7 @@ class Log4ShellExploiter(WebRCE): self.exploit_result.exploitation_success = True return True - time.sleep(1) + time.sleep(VICTIM_WAIT_SLEEP_TIME_SEC) return False @@ -214,6 +215,6 @@ class Log4ShellExploiter(WebRCE): return True # TODO: if the http server got an error we're waiting for nothing here - time.sleep(1) + time.sleep(VICTIM_WAIT_SLEEP_TIME_SEC) return False