Skip to content

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

Bug fixes

smicallefa7512b44da53
diff --git a/modules/sfp_binstring.py b/modules/sfp_binstring.py
index d2c9a570..8e147808 100644
--- a/modules/sfp_binstring.py
+++ b/modules/sfp_binstring.py
@@ -62,6 +62,7 @@ class sfp_binstring(SpiderFootPlugin):
return None
for c in content:
+ c = str(c)
if len(words) >= self.opts['maxwords']:
break
if c in string.printable and c not in string.whitespace:
diff --git a/modules/sfp_spider.py b/modules/sfp_spider.py
index 2831365d..05e38f1f 100644
--- a/modules/sfp_spider.py
+++ b/modules/sfp_spider.py
@@ -205,10 +205,11 @@ class sfp_spider(SpiderFootPlugin):
sendcontent = False
if sendcontent:
- event = SpiderFootEvent("TARGET_WEB_CONTENT", httpresult['content'],
- self.__name__, parentEvent)
- event.actualSource = url
- self.notifyListeners(event)
+ if httpresult['content'] != None:
+ event = SpiderFootEvent("TARGET_WEB_CONTENT", httpresult['content'],
+ self.__name__, parentEvent)
+ event.actualSource = url
+ self.notifyListeners(event)
event = SpiderFootEvent("WEBSERVER_HTTPHEADERS", json.dumps(httpresult['headers'], ensure_ascii=False),
self.__name__, parentEvent)