Skip to content

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

Bug fixes.

Stevecc59f0425a2e
diff --git a/modules/sfp_builtwith.py b/modules/sfp_builtwith.py
index 1acefd9b..bbf8d782 100644
--- a/modules/sfp_builtwith.py
+++ b/modules/sfp_builtwith.py
@@ -65,6 +65,9 @@ class sfp_builtwith(SpiderFootPlugin):
if res['code'] == "404":
return None
+ if not res['content']:
+ return None
+
try:
ret = json.loads(res['content'])['Results'][0]
except Exception as e:
diff --git a/modules/sfp_hunter.py b/modules/sfp_hunter.py
index fc899c1d..a35a96b0 100644
--- a/modules/sfp_hunter.py
+++ b/modules/sfp_hunter.py
@@ -62,6 +62,9 @@ class sfp_hunter(SpiderFootPlugin):
if res['code'] == "404":
return None
+ if not res['content']:
+ return None
+
try:
ret = json.loads(res['content'])['data']
except Exception as e:
diff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.py
index ec7a07ff..5c8449cb 100644
--- a/modules/sfp_socialprofiles.py
+++ b/modules/sfp_socialprofiles.py
@@ -90,6 +90,7 @@ class sfp_socialprofiles(SpiderFootPlugin):
s = unicode(sites[site][0]).format(eventData)
searchStr = s.replace(" ", "%20")
searchDom = sites[site][1]
+ results = None
if self.opts['method'].lower() == "google":
results = self.sf.googleIterate(searchStr, dict(limit=self.opts['pages'],