From 6bd7042444c602f205657f275db6a535cf5507d5 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 6 Oct 2022 16:42:33 -0400 Subject: [PATCH] Agent: Add VICTIM_WAIT_SLEEP_TIME_SEC constant in log4shell exlpoiter --- monkey/infection_monkey/exploit/log4shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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