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)
|
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):
|
||||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue