Skip to content

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

Smarter at handling false positives and finding matches.

smicalleff037e0b139a3
diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.py
index 7c9079fa..12fd7c61 100644
--- a/modules/sfp_pastebin.py
+++ b/modules/sfp_pastebin.py
@@ -90,6 +90,7 @@ class sfp_pastebin(SpiderFootPlugin):
continue
else:
self.results.append(link)
+
sf.debug("Found a link: " + link)
if sf.urlBaseUrl(link).endswith("pastebin.com"):
if self.checkForStop():
@@ -107,8 +108,9 @@ class sfp_pastebin(SpiderFootPlugin):
self.notifyListeners(evt)
# Sometimes pastebin search results false positives
- if self.baseDomain not in res['content']:
- return None
+ if re.search("[^a-zA-Z\-\_]" + re.escape(self.baseDomain) + \
+ "[^a-zA-Z\-\_]", res['content'], re.IGNORECASE) == None:
+ continue
startIndex = res['content'].index(self.baseDomain)-120
endIndex = startIndex+len(self.baseDomain)+240
diff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.py
index 360aa8d1..66de5844 100644
--- a/modules/sfp_socialprofiles.py
+++ b/modules/sfp_socialprofiles.py
@@ -43,7 +43,7 @@ class sfp_socialprofiles(SpiderFootPlugin):
# Option descriptions
optdescs = {
'pages': "Number of search engine pages of identified profiles to iterate through.",
- 'tighten': "Tighten results by expecting to find the keyword of the target domain mentioned in the results?",
+ 'tighten': "Tighten results by expecting to find the keyword of the target domain mentioned in the social media profile page results?",
'method': "Search engine to use: google, yahoo or bing."
}
@@ -155,7 +155,8 @@ class sfp_socialprofiles(SpiderFootPlugin):
if pres['content'] == None:
continue
else:
- if not self.keyword in pres['content']:
+ if re.search("[^a-zA-Z\-\_]" + self.keyword + \
+ "[^a-zA-Z\-\_]", pres['content'], re.IGNORECASE) == None:
continue
sf.info("Social Media Profile found at " + site + ": " + match)