SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Perform the Python version check earlier.
smicallef7e3905cb9d8d
diff --git a/sf.py b/sf.pyindex 0bca4d8d..cd38ca48 100755--- a/sf.py+++ b/sf.py@@ -12,6 +12,11 @@# -------------------------------------------------------------------------------import sys++if sys.version_info < (3, 6):+ print("SpiderFoot 3.1+ requires Python 3.6 or higher.")+ sys.exit(-1)+import osimport os.pathimport signal@@ -84,10 +89,6 @@ def handle_abort(signal, frame):sys.exit(-1)if __name__ == '__main__':- if sys.version_info < (3, 6):- print("SpiderFoot 3.1+ requires Python 3.6 or higher.")- sys.exit(-1)-if len(sys.argv) == 0:print("SpiderFoot 3.x now requires -l <ip>:<port> to start the web server.")sys.exit(-1)diff --git a/sfwebui.py b/sfwebui.pyindex 1ed92fd3..22150fb6 100644--- a/sfwebui.py+++ b/sfwebui.py@@ -352,7 +352,7 @@ class SpiderFootWebUi:# It must then be a name, as a re-run scan should always have a clean# target. Put quotes around the target value and try to determine the# target type again.- targetType = sf.targetType('"' + scantarget + '"')+ targetType = sf.targetType(f'"{scantarget}"')if targetType != "HUMAN_NAME":scantarget = scantarget.lower()@@ -847,7 +847,7 @@ class SpiderFootWebUi:time.sleep(1)if not cli:- raise cherrypy.HTTPRedirect("/scaninfo?id=" + scanId)+ raise cherrypy.HTTPRedirect(f"/scaninfo?id={scanId}")else:return json.dumps(["SUCCESS", scanId])