SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
properly set script_name
Lin Zhemin7590e1590394
diff --git a/sf.py b/sf.pyindex 59236391..a1a9b804 100755--- a/sf.py+++ b/sf.py@@ -144,11 +144,11 @@ if __name__ == '__main__':# Enable access to static files via the web directorycurrentDir = os.path.abspath(sf.myPath())- conf = { '/static': {+ conf = { sfConfig['__docroot'] + '/static': {'tools.staticdir.on': True,'tools.staticdir.dir': os.path.join(currentDir, 'static')}}# Try starting the web server. If it fails due to a database being# missing, start a smaller web server just for setting up the DB.- cherrypy.quickstart(SpiderFootWebUi(sfConfig), config=conf)+ cherrypy.quickstart(SpiderFootWebUi(sfConfig), script_name=sfConfig['__docroot'], config=conf)diff --git a/sfwebui.py b/sfwebui.pyindex e9fa6746..3b9abdd3 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -54,7 +54,7 @@ class SpiderFootWebUi:print ""print "*************************************************************"print " Use SpiderFoot by starting your web browser of choice and "- print " browse to http://" + addr + ":" + str(self.config['__webport']) + self.config['__docroot']+ print " browse to http://" + addr + ":" + str(self.config['__webport']) + self.docrootprint "*************************************************************"print ""print ""