HOTFIX: fixing location to be str and not unicode, BytesIO cant work with unicode.

This commit is contained in:
maor.rayzin 2018-11-06 18:19:52 +02:00
parent fa1e1ce33c
commit 73856a8be9
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ class SambaCryExploiter(HostExploiter):
return open(get_binary_file_path(self.SAMBACRY_RUNNER_FILENAME_64), "rb")
def get_monkey_commandline_file(self, location):
return BytesIO(DROPPER_ARG + build_monkey_commandline(self.host, get_monkey_depth() - 1, location))
return BytesIO(DROPPER_ARG + build_monkey_commandline(self.host, get_monkey_depth() - 1, str(location)))
@staticmethod
def is_share_writable(smb_client, share):