SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Exit on malformed password entry in passwd file
bcoles9301a7658777
diff --git a/sf.py b/sf.pyindex c5112e8d..17019d7b 100755--- a/sf.py+++ b/sf.py@@ -386,19 +386,17 @@ if __name__ == '__main__':for line in pw.readlines():if ':' not in line:- continue+ print "Incorrect format of passwd file, must be username:password on each line."+ sys.exit(-1)u, p = line.strip().split(":")if not u or not p:- continue+ print "Incorrect format of passwd file, must be username:password on each line."+ sys.exit(-1)secrets[u] = p- if not secrets:- print "Incorrect format of passwd file, must be username:password on each line."- sys.exit(-1)-print "Enabling authentication based on supplied passwd file."conf['/'] = {'tools.auth_digest.on': True,