SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Remove support for Yahoo when searching for social profiles.
smicallef2ab46d5b5afb
diff --git a/modules/sfp_socialprofiles.py b/modules/sfp_socialprofiles.pyindex 6428dc02..0c49768b 100644--- a/modules/sfp_socialprofiles.py+++ b/modules/sfp_socialprofiles.py@@ -38,7 +38,7 @@ class sfp_socialprofiles(SpiderFootPlugin):# Default optionsopts = {'pages': 1,- 'method': "yahoo",+ 'method': "bing",'tighten': True}@@ -46,7 +46,7 @@ class sfp_socialprofiles(SpiderFootPlugin):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 social media profile page results?",- 'method': "Search engine to use: google, yahoo or bing."+ 'method': "Search engine to use: google or bing."}keywords = None@@ -97,18 +97,16 @@ class sfp_socialprofiles(SpiderFootPlugin):searchStr = s.replace(" ", "%20")results = None+ if self.opts['method'].lower() == "yahoo":+ self.sf.error("Yahoo is no longer supported. Please try 'bing' or 'google'.", False)+ return None+if self.opts['method'].lower() == "google":results = self.sf.googleIterate(searchStr, dict(limit=self.opts['pages'],useragent=self.opts['_useragent'],timeout=self.opts['_fetchtimeout']))self.__dataSource__ = "Google"- if self.opts['method'].lower() == "yahoo":- results = self.sf.yahooIterate(searchStr, dict(limit=self.opts['pages'],- useragent=self.opts['_useragent'],- timeout=self.opts['_fetchtimeout']))- self.__dataSource__ = "Yahoo"-if self.opts['method'].lower() == "bing":results = self.sf.bingIterate(searchStr, dict(limit=self.opts['pages'],useragent=self.opts['_useragent'],@@ -142,10 +140,6 @@ class sfp_socialprofiles(SpiderFootPlugin):else:instances.append(match)- if self.opts['method'] == "yahoo":- match = re.sub(r'.*RU=(.*?)/RK=.*', r'\1', match)- self.sf.debug("Yahoo match: " + match)-if self.checkForStop():return None