Agent: Remove leading space from RUN_MONKEY string template

This commit is contained in:
Mike Salvatore 2021-08-25 13:33:03 -04:00
parent e70d1c714b
commit 86d7879c31
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ class VSFTPDExploiter(HostExploiter):
# Set unlimited to memory
# we don't have to revert the ulimit because it just applies to the shell obtained by our
# exploit
run_monkey = ULIMIT_V + UNLIMITED + run_monkey
run_monkey = ULIMIT_V + UNLIMITED + " " + run_monkey
run_monkey = str.encode(str(run_monkey) + "\n")
time.sleep(FTP_TIME_BUFFER)
if backdoor_socket.send(run_monkey):