SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sf: Show error if passwd file exists in application root directory (#1348)
bcoles7ee629da38d7
diff --git a/passwd b/passwddeleted file mode 100644index e69de29b..00000000diff --git a/sf.py b/sf.pyindex 79a28386..4e0e9164 100755--- a/sf.py+++ b/sf.py@@ -578,4 +578,13 @@ if __name__ == '__main__':print(f"This message will go away once you move or remove spiderfoot.db from {os.path.dirname(__file__)}")sys.exit(-1)+ # TODO: remove this after a few releases (added in 3.5 pre-release 2021-09-05)+ from pathlib import Path+ if os.path.exists('passwd'):+ print(f"ERROR: passwd file exists in {os.path.dirname(__file__)}")+ print("SpiderFoot no longer supports loading credentials from the application directory.")+ print(f"The passwd file is now loaded from your home directory: {Path.home()}/.spiderfoot/passwd")+ print(f"This message will go away once you move or remove passwd from {os.path.dirname(__file__)}")+ sys.exit(-1)+main()