Agent: Convert dest_path to str before performing comparison
This commit is contained in:
parent
8aad5b16d5
commit
b3b5707a45
|
@ -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 % {
|
||||
|
|
Loading…
Reference in New Issue