SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Print warning if passwd file is empty
bcolesd45f97d5650d
diff --git a/sf.py b/sf.pyindex 17019d7b..3e0ee389 100755--- a/sf.py+++ b/sf.py@@ -397,13 +397,16 @@ if __name__ == '__main__':secrets[u] = p- print "Enabling authentication based on supplied passwd file."- conf['/'] = {- 'tools.auth_digest.on': True,- 'tools.auth_digest.realm': sfConfig['__webaddr'],- 'tools.auth_digest.get_ha1': auth_digest.get_ha1_dict_plain(secrets),- 'tools.auth_digest.key': random.randint(0, 99999999)- }+ if secrets:+ print "Enabling authentication based on supplied passwd file."+ conf['/'] = {+ 'tools.auth_digest.on': True,+ 'tools.auth_digest.realm': sfConfig['__webaddr'],+ 'tools.auth_digest.get_ha1': auth_digest.get_ha1_dict_plain(secrets),+ 'tools.auth_digest.key': random.randint(0, 99999999)+ }+ else:+ print "Warning: passwd file contains no passwords. Authentication disabled."if os.path.isfile(sf.myPath() + '/spiderfoot.key') and \os.path.isfile(sf.myPath() + '/spiderfoot.crt'):