Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

sf: Ignore blank lines in passwd file (#1184)

bcoles7b7442e6f6c1
diff --git a/sf.py b/sf.py
index ee776b88..29846211 100755
--- a/sf.py
+++ b/sf.py
@@ -497,6 +497,9 @@ def start_web_server(sfWebUiConfig, sfConfig):
pw = open(passwd_file, 'r')
for line in pw.readlines():
+ if line.strip() == '':
+ continue
+
if ':' not in line:
log.error("Incorrect format of passwd file, must be username:password on each line.")
sys.exit(-1)