Removed decription of authentication error (will display if --verbose is

passed)

Fixed host tracking in the inject_pe_dll.py module
main
byt3bl33d3r 2016-04-08 19:58:01 -06:00
parent eb4f185118
commit 9052e48286
2 changed files with 6 additions and 4 deletions

View File

@ -100,7 +100,8 @@ class Connection:
self.logger.success(out) self.logger.success(out)
return True return True
except SessionError as e: except SessionError as e:
self.logger.error(u'{}\\{}:{} {}'.format(self.domain, username, password, str(e).split(':')[1])) error, desc = e.getErrorString()
self.logger.error(u'{}\\{}:{} {} {}'.format(self.domain, username, password, error, '({})'.format(desc) if self.args.verbose else ''))
return False return False
def hash_login(self, username, ntlm_hash): def hash_login(self, username, ntlm_hash):
@ -131,7 +132,8 @@ class Connection:
self.logger.success(out) self.logger.success(out)
return True return True
except SessionError as e: except SessionError as e:
self.logger.error(u'{}\\{} {} {}'.format(self.domain, username, ntlm_hash, str(e).split(':')[1])) error, desc = e.getErrorString()
self.logger.error(u'{}\\{} {} {}'.format(self.domain, username, ntlm_hash, error))
return False return False
def login(self): def login(self):

View File

@ -72,11 +72,11 @@ class CMEModule:
request.send_response(200) request.send_response(200)
request.end_headers() request.end_headers()
request.stop_tracking_host()
with open(self.payload_path, 'rb') as payload: with open(self.payload_path, 'rb') as payload:
request.wfile.write(payload.read()) request.wfile.write(payload.read())
request.stop_tracking_host()
else: else:
request.send_response(404) request.send_response(404)
request.end_headers() request.end_headers()