Agent: Add VICTIM_WAIT_SLEEP_TIME_SEC constant in log4shell exlpoiter
This commit is contained in:
parent
d8fca72f28
commit
6bd7042444
|
@ -28,6 +28,7 @@ from infection_monkey.utils.threading import interruptible_iter
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
LOG4SHELL_EXPLOITER_TAG = "log4shell-exploiter"
|
LOG4SHELL_EXPLOITER_TAG = "log4shell-exploiter"
|
||||||
|
VICTIM_WAIT_SLEEP_TIME_SEC = 1
|
||||||
|
|
||||||
|
|
||||||
class Log4ShellExploiter(WebRCE):
|
class Log4ShellExploiter(WebRCE):
|
||||||
|
@ -200,7 +201,7 @@ class Log4ShellExploiter(WebRCE):
|
||||||
self.exploit_result.exploitation_success = True
|
self.exploit_result.exploitation_success = True
|
||||||
return True
|
return True
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(VICTIM_WAIT_SLEEP_TIME_SEC)
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -214,6 +215,6 @@ class Log4ShellExploiter(WebRCE):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# TODO: if the http server got an error we're waiting for nothing here
|
# 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
|
return False
|
||||||
|
|
Loading…
Reference in New Issue