Better message for CertPath errors, see #775

php_fix
Dakota Nelson 2018-02-22 19:06:40 -08:00
parent 06ccf383ac
commit a68252791a
2 changed files with 15 additions and 13 deletions

View File

@ -1091,7 +1091,8 @@ def send_message(packets=None):
app.run(host=bindIP, port=int(port), threaded=True) app.run(host=bindIP, port=int(port), threaded=True)
except Exception as e: except Exception as e:
print helpers.color("[!] Listener startup on port %s failed: %s " % (port, e)) print(helpers.color("[!] Listener startup on port %s failed: %s " % (port, e)))
print(helpers.color("[!] Ensure the folder specified in CertPath exists and contains your pem and private key file."))
dispatcher.send("[!] Listener startup on port %s failed: %s " % (port, e), sender='listeners/http') dispatcher.send("[!] Listener startup on port %s failed: %s " % (port, e), sender='listeners/http')
def start(self, name=''): def start(self, name=''):

View File

@ -796,7 +796,8 @@ class Listener:
app.run(host=bindIP, port=int(port), threaded=True) app.run(host=bindIP, port=int(port), threaded=True)
except Exception as e: except Exception as e:
print helpers.color("[!] Listener startup on port %s failed: %s " % (port, e)) print(helpers.color("[!] Listener startup on port %s failed: %s " % (port, e)))
print(helpers.color("[!] Ensure the folder specified in CertPath exists and contains your pem and private key file."))
dispatcher.send("[!] Listener startup on port %s failed: %s " % (port, e), sender='listeners/http_com') dispatcher.send("[!] Listener startup on port %s failed: %s " % (port, e), sender='listeners/http_com')