SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Consume DOMAIN_NAME events.
smicallef27569e8c3990
diff --git a/modules/sfp_bingsearch.py b/modules/sfp_bingsearch.pyindex 40f2ac0a..77c83378 100644--- a/modules/sfp_bingsearch.py+++ b/modules/sfp_bingsearch.py@@ -33,15 +33,12 @@ class sfp_bingsearch(SpiderFootPlugin):'pages': "Number of Bing results pages to iterate through."}- # Target- baseDomain = Noneresults = list()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()for opt in userOpts.keys():@@ -49,18 +46,27 @@ class sfp_bingsearch(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return None+ return [ "DOMAIN_NAME" ]# What events this module produces# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):- return [ "LINKED_URL_INTERNAL", "SEARCH_ENGINE_WEB_CONTENT",- "CO_HOSTED_SITE" ]+ return [ "LINKED_URL_INTERNAL", "SEARCH_ENGINE_WEB_CONTENT" ]++ def handleEvent(self, event):+ eventName = event.eventType+ srcModuleName = event.module+ eventData = event.data++ if eventData in self.results:+ sf.debug("Already did a search for " + eventData + ", skipping.")+ return None+ else:+ self.results.append(eventData)- def start(self):# Sites hosted on the domain- pages = sf.bingIterate("site:" + self.baseDomain, dict(limit=self.opts['pages'],+ pages = sf.bingIterate("site:" + eventData, dict(limit=self.opts['pages'],useragent=self.opts['_useragent'], timeout=self.opts['_fetchtimeout']))if pages == None:sf.info("No results returned from Bing.")@@ -83,7 +89,7 @@ class sfp_bingsearch(SpiderFootPlugin):# We can optionally fetch links to our domain found in the search# results. These may not have been identified through spidering.if self.opts['fetchlinks']:- links = sf.parseLinks(page, pages[page], self.baseDomain)+ links = sf.parseLinks(page, pages[page], eventData)if len(links) == 0:continue@@ -92,7 +98,7 @@ class sfp_bingsearch(SpiderFootPlugin):continueelse:self.results.append(link)- if sf.urlBaseUrl(link).endswith(self.baseDomain):+ if sf.urlBaseUrl(link).endswith(eventData):sf.debug("Found a link: " + link)if self.checkForStop():return Nonediff --git a/modules/sfp_defaced.py b/modules/sfp_defaced.pyindex e3e1a5fc..a3b20063 100644--- a/modules/sfp_defaced.py+++ b/modules/sfp_defaced.py@@ -38,15 +38,12 @@ class sfp_defaced(SpiderFootPlugin):# Be sure to completely clear any class variables in setup()# or you run the risk of data persisting between scan runs.- # Target- baseDomain = None # calculated from the URL in setupresults = list()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()# Clear / reset any other class member variables here@@ -58,7 +55,7 @@ class sfp_defaced(SpiderFootPlugin):# What events is this module interested in for input# * = be notified about all events.def watchedEvents(self):- return ["IP_ADDRESS", "SUBDOMAIN",+ return ["DOMAIN_NAME", "IP_ADDRESS", "SUBDOMAIN","AFFILIATE_DOMAIN", "AFFILIATE_IPADDR","CO_HOSTED_SITE" ]@@ -146,16 +143,4 @@ class sfp_defaced(SpiderFootPlugin):evt = SpiderFootEvent(evtType, text, self.__name__, event)self.notifyListeners(evt)- return None-- def start(self):- if self.checkForStop():- return None-- url = self.lookupItem(self.baseDomain, 'domain')- if url != None:- text = self.baseDomain + "\n" + url- evt = SpiderFootEvent('DEFACED', text, self.__name__)- self.notifyListeners(evt)--# End of sfp_malcheck class+# End of sfp_defaced classdiff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.pyindex 9d66e73b..601add44 100644--- a/modules/sfp_googlesearch.py+++ b/modules/sfp_googlesearch.py@@ -34,14 +34,12 @@ class sfp_googlesearch(SpiderFootPlugin):}# Target- baseDomain = Noneresults = list()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()for opt in userOpts.keys():@@ -49,7 +47,7 @@ class sfp_googlesearch(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return None+ return [ "DOMAIN_NAME" ]# What events this module produces# This is to support the end user in selecting modules based on events@@ -57,9 +55,19 @@ class sfp_googlesearch(SpiderFootPlugin):def producedEvents(self):return [ "LINKED_URL_INTERNAL", "SEARCH_ENGINE_WEB_CONTENT" ]- def start(self):+ def handleEvent(self, event):+ eventName = event.eventType+ srcModuleName = event.module+ eventData = event.data++ if eventData in self.results:+ sf.debug("Already did a search for " + eventData + ", skipping.")+ return None+ else:+ self.results.append(eventData)+# Sites hosted on the domain- pages = sf.googleIterate("site:" + self.baseDomain,+ pages = sf.googleIterate("site:" + eventData,dict(limit=self.opts['pages'], useragent=self.opts['_useragent'],timeout=self.opts['_fetchtimeout']))if pages == None:@@ -83,7 +91,7 @@ class sfp_googlesearch(SpiderFootPlugin):# We can optionally fetch links to our domain found in the search# results. These may not have been identified through spidering.if self.opts['fetchlinks']:- links = sf.parseLinks(page, pages[page], self.baseDomain)+ links = sf.parseLinks(page, pages[page], eventData)if len(links) == 0:continue@@ -93,7 +101,7 @@ class sfp_googlesearch(SpiderFootPlugin):else:self.results.append(link)sf.debug("Found a link: " + link)- if sf.urlBaseUrl(link).endswith(self.baseDomain):+ if sf.urlBaseUrl(link).endswith(eventData):if self.checkForStop():return Nonediff --git a/modules/sfp_intfiles.py b/modules/sfp_intfiles.pyindex 0489f2b2..b4528d7f 100644--- a/modules/sfp_intfiles.py+++ b/modules/sfp_intfiles.py@@ -39,15 +39,12 @@ class sfp_intfiles(SpiderFootPlugin):'searchengine': "If using a search engine, which one? google, yahoo or bing."}- # Target- baseDomain = Noneresults = list()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()for opt in userOpts.keys():@@ -55,7 +52,7 @@ class sfp_intfiles(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return [ "LINKED_URL_INTERNAL" ]+ return [ "DOMAIN_NAME", "LINKED_URL_INTERNAL" ]# What events this module produces# This is to support the end user in selecting modules based on events@@ -63,6 +60,9 @@ class sfp_intfiles(SpiderFootPlugin):def producedEvents(self):return [ "SEARCH_ENGINE_WEB_CONTENT", "INTERESTING_FILE" ]+ def yahooCleaner(self, string):+ return " url=\"" + urllib.unquote(string.group(1)) + "\" "+# Handle events sent to this moduledef handleEvent(self, event):eventName = event.eventType@@ -71,38 +71,43 @@ class sfp_intfiles(SpiderFootPlugin):sf.debug("Received event, " + eventName + ", from " + srcModuleName)- for fileExt in self.opts['fileexts']:- if "." + fileExt.lower() in eventData.lower():- if eventData in self.results:- continue- else:- self.results.append(eventData)- evt = SpiderFootEvent("INTERESTING_FILE", eventData, self.__name__)- self.notifyListeners(evt)+ if eventName == "DOMAIN_NAME" and not self.opts['usesearch']:+ sf.debug("Not using a search engine to find interesting files.")+ return None- def yahooCleaner(self, string):- return " url=\"" + urllib.unquote(string.group(1)) + "\" "+ if eventData in self.results:+ return None+ else:+ self.results.append(eventData)- def start(self):- if not self.opts['usesearch']:+ if eventName == "LINKED_URL_INTERNAL":+ for fileExt in self.opts['fileexts']:+ if "." + fileExt.lower() in eventData.lower():+ if eventData in self.results:+ continue+ else:+ self.results.append(eventData)+ evt = SpiderFootEvent("INTERESTING_FILE", eventData, self.__name__)+ self.notifyListeners(evt)return None+ # Handling DOMAIN_NAME event..for fileExt in self.opts['fileexts']:# Sites hosted on the domainif self.opts['searchengine'].lower() == "google":- pages = sf.googleIterate("site:" + self.baseDomain + "+" + \+ pages = sf.googleIterate("site:" + eventData + "+" + \"%2Bext:" + fileExt, dict(limit=self.opts['pages'],useragent=self.opts['_useragent'],timeout=self.opts['_fetchtimeout']))if self.opts['searchengine'].lower() == "bing":- pages = sf.bingIterate("site:" + self.baseDomain + "+" + \+ pages = sf.bingIterate("site:" + eventData + "+" + \"%2Bext:" + fileExt, dict(limit=self.opts['pages'],useragent=self.opts['_useragent'],timeout=self.opts['_fetchtimeout']))if self.opts['searchengine'].lower() == "yahoo":- pages = sf.yahooIterate("site:" + self.baseDomain + "+" + \+ pages = sf.yahooIterate("site:" + eventData + "+" + \"%2Bext:" + fileExt, dict(limit=self.opts['pages'],useragent=self.opts['_useragent'],timeout=self.opts['_fetchtimeout']))@@ -132,7 +137,7 @@ class sfp_intfiles(SpiderFootPlugin):else:res = pages[page]- links = sf.parseLinks(page, res, self.baseDomain)+ links = sf.parseLinks(page, res, eventData)if len(links) == 0:continue@@ -142,7 +147,7 @@ class sfp_intfiles(SpiderFootPlugin):else:self.results.append(link)- if sf.urlBaseUrl(link).endswith(self.baseDomain) and \+ if sf.urlBaseUrl(link).endswith(eventData) and \"." + fileExt.lower() in link.lower():sf.info("Found an interesting file: " + link)evt = SpiderFootEvent("INTERESTING_FILE", link, self.__name__)diff --git a/modules/sfp_malcheck.py b/modules/sfp_malcheck.pyindex 64967118..e3068794 100644--- a/modules/sfp_malcheck.py+++ b/modules/sfp_malcheck.py@@ -266,15 +266,12 @@ class sfp_malcheck(SpiderFootPlugin):# Be sure to completely clear any class variables in setup()# or you run the risk of data persisting between scan runs.- # Target- baseDomain = None # calculated from the URL in setupresults = list()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()# Clear / reset any other class member variables here@@ -286,8 +283,8 @@ class sfp_malcheck(SpiderFootPlugin):# What events is this module interested in for input# * = be notified about all events.def watchedEvents(self):- return ["IP_ADDRESS", "BGP_AS", "SUBDOMAIN", "IP_SUBNET",- "AFFILIATE_DOMAIN", "AFFILIATE_IPADDR",+ return ["DOMAIN_NAME", "IP_ADDRESS", "BGP_AS", "SUBDOMAIN",+ "IP_SUBNET", "AFFILIATE_DOMAIN", "AFFILIATE_IPADDR","CO_HOSTED_SITE", "NETBLOCK" ]# What events this module produces@@ -296,7 +293,7 @@ class sfp_malcheck(SpiderFootPlugin):def producedEvents(self):return [ "MALICIOUS_ASN", "MALICIOUS_IPADDR", "MALICIOUS_SUBDOMAIN","MALICIOUS_AFFILIATE_IPADDR", "MALICIOUS_AFFILIATE", "MALICIOUS_SUBNET",- "MALICIOUS_COHOST" ]+ "MALICIOUS_COHOST", "MALICIOUS_DOMAIN_NAME" ]# Check the regexps to see whether the content indicates maliciousnessdef contentMalicious(self, content, goodregex, badregex):@@ -460,10 +457,13 @@ class sfp_malcheck(SpiderFootPlugin):typeId = 'asn'evtType = 'MALICIOUS_ASN'- if eventName in [ 'CO_HOSTED_SITE', 'AFFILIATE_DOMAIN', 'SUBDOMAIN' ]:+ if eventName in [ 'DOMAIN_NAME', 'CO_HOSTED_SITE',+ 'AFFILIATE_DOMAIN', 'SUBDOMAIN' ]:typeId = 'domain'- if eventName == 'SUBDOMAIN':+ if eventName == 'SUBDOMAIN':evtType = 'MALICIOUS_SUBDOMAIN'+ if eventName == "DOMAIN_NAME":+ evtType = "MALICIOUS_DOMAIN_NAME"if eventName == 'AFFILIATE_DOMAIN':evtType = 'MALICIOUS_AFFILIATE'if eventName == 'CO_HOSTED_SITE':@@ -488,22 +488,4 @@ class sfp_malcheck(SpiderFootPlugin):return None- def start(self):- if self.baseDomain in self.results:- return None- else:- self.results.append(self.baseDomain)-- for check in malchecks.keys():- if self.checkForStop():- return None-- cid = malchecks[check]['id']- if self.opts[cid]:- url = self.lookupItem(cid, 'domain', self.baseDomain)- if url != None:- text = check + " [" + self.baseDomain + "]\n<SFURL>" + url + "</SFURL>"- evt = SpiderFootEvent('MALICIOUS_SUBDOMAIN', text, self.__name__)- self.notifyListeners(evt)-# End of sfp_malcheck classdiff --git a/modules/sfp_pastebin.py b/modules/sfp_pastebin.pyindex 62454633..d3c600df 100644--- a/modules/sfp_pastebin.py+++ b/modules/sfp_pastebin.py@@ -32,15 +32,12 @@ class sfp_pastebin(SpiderFootPlugin):'pages': "Number of search results pages to iterate through."}- # Target- baseDomain = Noneresults = list()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()for opt in userOpts.keys():@@ -48,7 +45,7 @@ class sfp_pastebin(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return None+ return [ "DOMAIN_NAME", "IP_ADDRESS", "EMAILADDR" ]# What events this module produces# This is to support the end user in selecting modules based on events@@ -56,10 +53,19 @@ class sfp_pastebin(SpiderFootPlugin):def producedEvents(self):return [ "SEARCH_ENGINE_WEB_CONTENT", "PASTEBIN_CONTENT" ]- def start(self):+ def handleEvent(self, event):+ eventName = event.eventType+ srcModuleName = event.module+ eventData = event.data++ if eventData in self.results:+ return None+ else:+ self.results.append(eventData)+# Sites hosted on the domain- pages = sf.googleIterate("site:pastebin.com+\"" + \- self.baseDomain + "\"", dict(limit=self.opts['pages'],+ pages = sf.googleIterate("site:pastebin.com +\"" + eventData + "\"",+ dict(limit=self.opts['pages'],useragent=self.opts['_useragent'], timeout=self.opts['_fetchtimeout']))if pages == None:@@ -108,13 +114,13 @@ class sfp_pastebin(SpiderFootPlugin):self.notifyListeners(evt)# Sometimes pastebin search results false positives- if re.search("[^a-zA-Z\-\_]" + re.escape(self.baseDomain) + \- "[^a-zA-Z\-\_]", res['content'], re.IGNORECASE) == None:+ if re.search("[^a-zA-Z\-\_0-9]" + re.escape(eventData) + \+ "[^a-zA-Z\-\_0-9]", res['content'], re.IGNORECASE) == None:continuetry:- startIndex = res['content'].index(self.baseDomain)-120- endIndex = startIndex+len(self.baseDomain)+240+ startIndex = res['content'].index(eventData)-120+ endIndex = startIndex+len(eventData)+240except BaseException as e:sf.debug("String not found in pastebin content.")continuediff --git a/modules/sfp_similar.py b/modules/sfp_similar.pyindex ac610fb9..450b3e02 100644--- a/modules/sfp_similar.py+++ b/modules/sfp_similar.py@@ -62,14 +62,10 @@ class sfp_similar(SpiderFootPlugin):# Internal results trackingresults = list()- # Target- baseDomain = None-def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()for opt in userOpts.keys():@@ -83,7 +79,7 @@ class sfp_similar(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return None+ return [ "DOMAIN_NAME" ]# What events this module produces# This is to support the end user in selecting modules based on events@@ -197,9 +193,6 @@ class sfp_similar(SpiderFootPlugin):# Store the result internally and notify listening modulesdef storeResult(self, source, result):- if result == self.baseDomain:- return-sf.info("Found a similar domain: " + result)self.results.append(result)@@ -219,9 +212,18 @@ class sfp_similar(SpiderFootPlugin):# Search for similar sounding domains- def start(self):- keyword = sf.domainKeyword(self.baseDomain, self.opts['_internettlds'])- sf.debug("Keyword extracted from " + self.baseDomain + ": " + keyword)+ def handleEvent(self, event):+ eventName = event.eventType+ srcModuleName = event.module+ eventData = event.data++ if eventData in self.results:+ return None+ else:+ self.results.append(eventData)++ keyword = sf.domainKeyword(eventData, self.opts['_internettlds'])+ sf.debug("Keyword extracted from " + eventData + ": " + keyword)# No longer seems to work.#if "whois" in self.opts['source'] or "ALL" in self.opts['source']:diff --git a/modules/sfp_tldsearch.py b/modules/sfp_tldsearch.pyindex 0680bd31..671a2ec7 100644--- a/modules/sfp_tldsearch.py+++ b/modules/sfp_tldsearch.py@@ -41,9 +41,6 @@ class sfp_tldsearch(SpiderFootPlugin):# Internal results trackingresults = list()- # Target- baseDomain = None-# Track TLD search results between threadstldResults = dict()@@ -51,7 +48,6 @@ class sfp_tldsearch(SpiderFootPlugin):global sfsf = sfc- self.baseDomain = targetself.results = list()for opt in userOpts.keys():@@ -59,7 +55,7 @@ class sfp_tldsearch(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return None+ return [ "DOMAIN_NAME" ]# What events this module produces# This is to support the end user in selecting modules based on events@@ -104,9 +100,6 @@ class sfp_tldsearch(SpiderFootPlugin):# Store the result internally and notify listening modulesdef sendEvent(self, source, result):- if result == self.baseDomain:- return-sf.info("Found a TLD with the target's name: " + result)self.results.append(result)@@ -125,9 +118,18 @@ class sfp_tldsearch(SpiderFootPlugin):self.notifyListeners(evt)# Search for similar sounding domains- def start(self):- keyword = sf.domainKeyword(self.baseDomain, self.opts['_internettlds'])- sf.debug("Keyword extracted from " + self.baseDomain + ": " + keyword)+ def handleEvent(self, event):+ eventName = event.eventType+ srcModuleName = event.module+ eventData = event.data++ if eventData in self.results:+ return None+ else:+ self.results.append(eventData)++ keyword = sf.domainKeyword(eventData, self.opts['_internettlds'])+ sf.debug("Keyword extracted from " + eventData + ": " + keyword)targetList = list()# Look through all TLDs for the existence of this target keyworddiff --git a/modules/sfp_virustotal.py b/modules/sfp_virustotal.pyindex e26d0a57..27927bf9 100644--- a/modules/sfp_virustotal.py+++ b/modules/sfp_virustotal.py@@ -39,15 +39,12 @@ class sfp_virustotal(SpiderFootPlugin):# Be sure to completely clear any class variables in setup()# or you run the risk of data persisting between scan runs.- # Target- baseDomain = None # calculated from the URL in setupresults = dict()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = dict()# Clear / reset any other class member variables here@@ -58,14 +55,14 @@ class sfp_virustotal(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["IP_ADDRESS", "AFFILIATE_IPADDR",+ return ["IP_ADDRESS", "AFFILIATE_IPADDR", "DOMAIN_NAME","AFFILIATE_DOMAIN", "CO_HOSTED_SITE"]# What events this module producesdef producedEvents(self):return ["MALICIOUS_IPADDR", "MALICIOUS_SUBDOMAIN","MALICIOUS_COHOST", "MALICIOUS_AFFILIATE",- "MALICIOUS_AFFILIATE_IPADDR"]+ "MALICIOUS_AFFILIATE_IPADDR", "MALICIOUS_DOMAIN_NAME"]# Handle events sent to this moduledef handleEvent(self, event):@@ -124,6 +121,10 @@ class sfp_virustotal(SpiderFootPlugin):evt = "MALICIOUS_AFFILIATE_IPADDR"infotype = "ip-address"+ if eventName == "DOMAIN_NAME":+ evt = "MALICIOUS_DOMAIN_NAME"+ infotype = "domain"+if eventName == "AFFILIATE_DOMAIN":evt = "MALICIOUS_AFFILIATE"infotype = "domain"@@ -140,37 +141,4 @@ class sfp_virustotal(SpiderFootPlugin):infourl, self.__name__, event)self.notifyListeners(e)- def start(self):- if self.baseDomain in self.results.keys():- return None- else:- self.results[self.baseDomain] = True-- url = "https://www.virustotal.com/vtapi/v2/domain/report?domain="- res = sf.fetchUrl(url + self.baseDomain + "&apikey=" + self.opts['apikey'],- timeout=self.opts['_fetchtimeout'], useragent="SpiderFoot")-- if res['code'] == 403:- sf.error("VirusTotal API limit reached or invalid API key.", False)- return None-- if res['content'] == None:- sf.info("No VirusTotal info found for " + self.baseDomain)- return None-- try:- info = json.loads(res['content'])- except Exception as e:- sf.error("Error processing JSON response from VirusTotal.", False)- return None-- if info.has_key('detected_urls'):- infourl = "<SFURL>https://www.virustotal.com/en/domain/" + self.baseDomain + \- "/information/</SFURL>"-- # Notify other modules of what you've found- e = SpiderFootEvent("MALICIOUS_SUBDOMAIN", "VirusTotal [" + \- self.baseDomain + "]\n" + infourl, self.__name__)- self.notifyListeners(e)-# End of sfp_virustotal classdiff --git a/modules/sfp_yahoosearch.py b/modules/sfp_yahoosearch.pyindex f299555b..50703e4b 100644--- a/modules/sfp_yahoosearch.py+++ b/modules/sfp_yahoosearch.py@@ -34,15 +34,12 @@ class sfp_yahoosearch(SpiderFootPlugin):'pages': "Number of Yahoo results pages to iterate through."}- # Target- baseDomain = Noneresults = list()def setup(self, sfc, target, userOpts=dict()):global sfsf = sfc- self.baseDomain = targetself.results = list()for opt in userOpts.keys():@@ -50,21 +47,30 @@ class sfp_yahoosearch(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return None+ return [ "DOMAIN_NAME" ]# What events this module produces# This is to support the end user in selecting modules based on events# produced.def producedEvents(self):- return [ "LINKED_URL_INTERNAL", "SEARCH_ENGINE_WEB_CONTENT",- "CO_HOSTED_SITE" ]+ return [ "LINKED_URL_INTERNAL", "SEARCH_ENGINE_WEB_CONTENT" ]def yahooCleaner(self, string):return " url=\"" + urllib.unquote(string.group(1)) + "\" "- def start(self):+ def handleEvent(self, event):+ eventName = event.eventType+ srcModuleName = event.module+ eventData = event.data++ if eventData in self.results:+ sf.debug("Already did a search for " + eventData + ", skipping.")+ return None+ else:+ self.results.append(eventData)+# Sites hosted on the domain- pages = sf.yahooIterate("site:" + self.baseDomain, dict(limit=self.opts['pages'],+ pages = sf.yahooIterate("site:" + eventData, dict(limit=self.opts['pages'],useragent=self.opts['_useragent'], timeout=self.opts['_fetchtimeout']))if pages == None:sf.info("No results returned from Yahoo.")@@ -89,7 +95,7 @@ class sfp_yahoosearch(SpiderFootPlugin):# We can optionally fetch links to our domain found in the search# results. These may not have been identified through spidering.if self.opts['fetchlinks']:- links = sf.parseLinks(page, content, self.baseDomain)+ links = sf.parseLinks(page, content, eventData)if len(links) == 0:continue@@ -98,7 +104,7 @@ class sfp_yahoosearch(SpiderFootPlugin):continueelse:self.results.append(link)- if sf.urlBaseUrl(link).endswith(self.baseDomain):+ if sf.urlBaseUrl(link).endswith(eventData):sf.debug("Found a link: " + link)if self.checkForStop():return None