Skip to content

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

Handle broken line formats.

Steve1268a17b77d4
diff --git a/modules/sfp_hosting.py b/modules/sfp_hosting.py
index d71f5e01..5081174a 100644
--- a/modules/sfp_hosting.py
+++ b/modules/sfp_hosting.py
@@ -63,7 +63,10 @@ class sfp_hosting(SpiderFootPlugin):
for line in data['content'].split('\n'):
if "," not in line:
continue
- [start,end,title,url] = line.split(",")
+ try:
+ [start,end,title,url] = line.split(",")
+ except BaseException as e:
+ continue
if IPAddress(qaddr) > IPAddress(start) and IPAddress(qaddr) < IPAddress(end):
return [title, url]