Skip to content

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

Bug fix handling pastebin results without the actual searched term.

smicallefa643b4d8e9cc
diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.py
index 4b65afdc..7c9079fa 100644
--- a/modules/sfp_pastebin.py
+++ b/modules/sfp_pastebin.py
@@ -106,6 +106,10 @@ class sfp_pastebin(SpiderFootPlugin):
res['content'], self.__name__)
self.notifyListeners(evt)
+ # Sometimes pastebin search results false positives
+ if self.baseDomain not in res['content']:
+ return None
+
startIndex = res['content'].index(self.baseDomain)-120
endIndex = startIndex+len(self.baseDomain)+240
data = res['content'][startIndex:endIndex]