Removed decription of authentication error (will display if --verbose is
passed) Fixed host tracking in the inject_pe_dll.py modulemain
parent
eb4f185118
commit
9052e48286
|
@ -100,7 +100,8 @@ class Connection:
|
|||
self.logger.success(out)
|
||||
return True
|
||||
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
|
||||
|
||||
def hash_login(self, username, ntlm_hash):
|
||||
|
@ -131,7 +132,8 @@ class Connection:
|
|||
self.logger.success(out)
|
||||
return True
|
||||
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
|
||||
|
||||
def login(self):
|
||||
|
|
|
@ -72,11 +72,11 @@ class CMEModule:
|
|||
request.send_response(200)
|
||||
request.end_headers()
|
||||
|
||||
request.stop_tracking_host()
|
||||
|
||||
with open(self.payload_path, 'rb') as payload:
|
||||
request.wfile.write(payload.read())
|
||||
|
||||
request.stop_tracking_host()
|
||||
|
||||
else:
|
||||
request.send_response(404)
|
||||
request.end_headers()
|
Loading…
Reference in New Issue