Agent: Reduce VICTIM_WAIT_SLEEP_TIME_SEC to 0.050 seconds
1 second is a long time to wait, and we want our event timestamps to be more accurate. 0.050 is 10 x sys.getswitchinterval(). It's reasonably accurate but will also share the CPU nicely.
This commit is contained in:
parent
6bd7042444
commit
7bc9993c6f
|
@ -28,7 +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
|
||||
VICTIM_WAIT_SLEEP_TIME_SEC = 0.050
|
||||
|
||||
|
||||
class Log4ShellExploiter(WebRCE):
|
||||
|
|
Loading…
Reference in New Issue