Agent: Convert dest_path to str before performing comparison

This commit is contained in:
Mike Salvatore 2022-03-24 12:51:07 -04:00
parent 8aad5b16d5
commit b3b5707a45
1 changed files with 2 additions and 2 deletions

View File

@ -87,13 +87,13 @@ class SMBExploiter(HostExploiter):
return self.exploit_result
# execute the remote dropper in case the path isn't final
if remote_full_path.lower() != dest_path.lower():
if remote_full_path.lower() != str(dest_path).lower():
cmdline = DROPPER_CMDLINE_DETACHED_WINDOWS % {
"dropper_path": remote_full_path
} + build_monkey_commandline(
self.host,
self.current_depth - 1,
dest_path,
str(dest_path),
)
else:
cmdline = MONKEY_CMDLINE_DETACHED_WINDOWS % {