SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Smarter at handling false positives and finding matches.
smicalleff037e0b139a3
diff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.pyindex 7c9079fa..12fd7c61 100644--- a/modules/sfp_pastebin.py+++ b/modules/sfp_pastebin.py@@ -90,6 +90,7 @@ class sfp_pastebin(SpiderFootPlugin):continueelse: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:+ continuestartIndex = res['content'].index(self.baseDomain)-120endIndex = startIndex+len(self.baseDomain)+240diff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.pyindex 360aa8d1..66de5844 100644--- a/modules/sfp_socialprofiles.py+++ b/modules/sfp_socialprofiles.py@@ -43,7 +43,7 @@ class sfp_socialprofiles(SpiderFootPlugin):# Option descriptionsoptdescs = {'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:continueelse:- if not self.keyword in pres['content']:+ if re.search("[^a-zA-Z\-\_]" + self.keyword + \+ "[^a-zA-Z\-\_]", pres['content'], re.IGNORECASE) == None:continuesf.info("Social Media Profile found at " + site + ": " + match)