Skip to content

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

Remove unnecessary data checks since regexps cover them.

smicallef0f1f49e9085b
diff --git a/modules/sfp_haveibeenpwned.py b/modules/sfp_haveibeenpwned.py
index 0d85fdc3..02ff59b9 100644
--- a/modules/sfp_haveibeenpwned.py
+++ b/modules/sfp_haveibeenpwned.py
@@ -232,11 +232,6 @@ class sfp_haveibeenpwned(SpiderFootPlugin):
self.sf.debug(f"Ignoring {link} as no data returned")
continue
- # Sometimes pastes search results false positives
- if eventData.lower() not in str(res['content']).lower():
- self.sf.debug("String not found in pastes content.")
- continue
-
if re.search(r"[^a-zA-Z\-\_0-9]" + re.escape(eventData) + r"[^a-zA-Z\-\_0-9]", res['content'], re.IGNORECASE) is None:
continue
diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.py
index aa275c5a..fed0286b 100644
--- a/modules/sfp_pastebin.py
+++ b/modules/sfp_pastebin.py
@@ -143,11 +143,6 @@ class sfp_pastebin(SpiderFootPlugin):
self.sf.debug(f"Ignoring {link} as no data returned")
continue
- # Sometimes pastes search results false positives
- if eventData.lower() not in str(res['content']).lower():
- self.sf.debug("String not found in pastes content.")
- continue
-
if re.search(
r"[^a-zA-Z\-\_0-9]" + re.escape(eventData) + r"[^a-zA-Z\-\_0-9]",
res['content'],
diff --git a/modules/sfp_psbdmp.py b/modules/sfp_psbdmp.py
index dd724b0e..a7cc5d35 100644
--- a/modules/sfp_psbdmp.py
+++ b/modules/sfp_psbdmp.py
@@ -122,11 +122,6 @@ class sfp_psbdmp(SpiderFootPlugin):
self.sf.debug(f"Ignoring {n} as no data returned")
continue
- # Sometimes pastes search results false positives
- if eventData.lower() not in str(res['content']).lower():
- self.sf.debug(f"{eventData} not found in pastes content.")
- continue
-
if re.search(
r"[^a-zA-Z\-\_0-9]" + re.escape(eventData) + r"[^a-zA-Z\-\_0-9]",
res['content'],
diff --git a/modules/sfp_trashpanda.py b/modules/sfp_trashpanda.py
index c8ceeab0..fcd6f273 100644
--- a/modules/sfp_trashpanda.py
+++ b/modules/sfp_trashpanda.py
@@ -158,11 +158,6 @@ class sfp_trashpanda(SpiderFootPlugin):
self.sf.debug(f"Ignoring {leaksiteUrl} as no data returned")
continue
- # Sometimes pastes search results false positives
- if eventData.lower() not in str(res['content']).lower():
- self.sf.debug("String not found in pastes content.")
- continue
-
if re.search(
r"[^a-zA-Z\-\_0-9]" + re.escape(eventData) + r"[^a-zA-Z\-\_0-9]",
res['content'],