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:
Mike Salvatore 2022-10-06 16:43:05 -04:00
parent 6bd7042444
commit 7bc9993c6f
1 changed files with 1 additions and 1 deletions

View File

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