Fixed hardcoded cert path

mdns
xorrior 2017-06-01 08:09:07 -04:00
parent df26d264f1
commit 5a530fede9
1 changed files with 3 additions and 3 deletions

View File

@ -839,8 +839,8 @@ def send_message(packets=None):
certPath = listenerOptions['CertPath']['Value']
host = listenerOptions['Host']['Value']
if certPath.strip() != '' and host.startswith('https'):
context = ("%s/data/empire.pem" % (self.mainMenu.installPath), "%s/data/empire.pem" % (self.mainMenu.installPath))
app.run(host=bindIP, port=int(port), threaded=True, ssl_context=context)
certPath = os.path.abspath(certPath)
app.run(host=bindIP, port=int(port), threaded=True, ssl_context=(certPath,certPath))
else:
app.run(host=bindIP, port=int(port), threaded=True)
@ -881,4 +881,4 @@ def send_message(packets=None):
self.threads[name].kill()
else:
print helpers.color("[!] Killing listener '%s'" % (self.options['Name']['Value']))
self.threads[self.options['Name']['Value']].kill()
self.threads[self.options['Name']['Value']].kill()