Agent: Add VICTIM_WAIT_SLEEP_TIME_SEC constant in log4shell exlpoiter

This commit is contained in:
Mike Salvatore 2022-10-06 16:42:33 -04:00
parent d8fca72f28
commit 6bd7042444
1 changed files with 3 additions and 2 deletions

View File

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