Agent: Remove unnecessary Path -> str in Log4ShellExploiter

This commit is contained in:
Mike Salvatore 2022-10-06 16:51:14 -04:00
parent eac3076828
commit 03c6c5ea4b
1 changed files with 1 additions and 3 deletions

View File

@ -126,9 +126,7 @@ class Log4ShellExploiter(WebRCE):
def _build_command(self, path: PurePath, http_path) -> str:
# Build command to execute
monkey_cmd = build_monkey_commandline(
self.servers, self.current_depth + 1, location=str(path)
)
monkey_cmd = build_monkey_commandline(self.servers, self.current_depth + 1, location=path)
if self.host.is_windows():
base_command = LOG4SHELL_WINDOWS_COMMAND
else: