SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: Fix server URL scheme printed to terminal
Brendan Coles656f461d2c0c
diff --git a/sf.py b/sf.pyindex 7de82db2..ace4647b 100755--- a/sf.py+++ b/sf.py@@ -390,8 +390,7 @@ if __name__ == '__main__':sys.exit(0)# Start the web server so you can start looking at results- url = 'http://' + sfConfig['__webaddr'] + ":" + str(sfConfig['__webport']) + sfConfig['__docroot']- print(('Starting web server at %s ...' % url))+ print('Starting web server at %s:%s ...' % (sfConfig['__webaddr'], sfConfig['__webport']))cherrypy.config.update({'server.socket_host': sfConfig['__webaddr'],diff --git a/sfwebui.py b/sfwebui.pyindex d29a1290..b3733576 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -68,11 +68,16 @@ class SpiderFootWebUi:"tools.response_headers.headers": secure_headers.cherrypy()})+ if (cherrypy.server.ssl_certificate != None and cherrypy.server.ssl_private_key != None):+ url = "https://%s:%s%s" % (addr, self.config['__webport'], self.docroot)+ else:+ url = "http://%s:%s%s" % (addr, self.config['__webport'], self.docroot)+print("")print("")print("*************************************************************")print(" Use SpiderFoot by starting your web browser of choice and ")- print(" browse to http://" + addr + ":" + str(self.config['__webport']) + self.docroot)+ print(" browse to %s" % url)print("*************************************************************")print("")print("")