SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Bug fixes hindering detection.
Steve1b4c30482eb8
diff --git a/modules/sfp_accounts.py b/modules/sfp_accounts.pyindex 8d7bdd65..570792cc 100644--- a/modules/sfp_accounts.py+++ b/modules/sfp_accounts.py@@ -116,11 +116,9 @@ class sfp_accounts(SpiderFootPlugin):i = 0t = []- for site in self.sites['sites']:+ for site in siteList:if self.checkForStop():return None- if 'check_uri' not in site:- return Noneself.sf.info("Spawning thread to check site: " + site['name'] + \" / " + site['check_uri'].format(account=name))@@ -150,7 +148,7 @@ class sfp_accounts(SpiderFootPlugin):siteList = list()for site in self.sites['sites']:- if not site['valid']:+ if not site['valid'] or 'check_uri' not in site:continueif i >= self.opts['maxthreads']:data = self.threadSites(name, siteList)diff --git a/modules/sfp_intfiles.py b/modules/sfp_intfiles.pyindex cedd17d4..5ee5e749 100644--- a/modules/sfp_intfiles.py+++ b/modules/sfp_intfiles.py@@ -122,31 +122,33 @@ class sfp_intfiles(SpiderFootPlugin):if self.checkForStop():return None- # Submit the gresults for analysis- evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", pages[page],- self.__name__, event)- self.notifyListeners(evt)-if self.opts['searchengine'].lower() == "yahoo":- res = re.sub("RU=(.[^\/]+)\/RK=", self.yahooCleaner, pages[page], 0)+ res = re.sub("RU=(.*?)/RK=", self.yahooCleaner, pages[page])else:res = pages[page]+ # Submit the gresults for analysis+ evt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", res,+ self.__name__, event)+ self.notifyListeners(evt)+links = self.sf.parseLinks(page, res, eventData)if len(links) == 0:continue- for link in links:+ for link in links.keys():if link in self.results:continue- else:- self.results.append(link)-- if self.sf.urlFQDN(link).endswith(eventData) and \- "." + fileExt.lower() in link.lower():- self.sf.info("Found an interesting file: " + link)- evt = SpiderFootEvent("INTERESTING_FILE", link,- self.__name__, event)- self.notifyListeners(evt)++ if self.sf.urlFQDN(link).endswith(eventData):+ # This for loop might seem redundant but sometimes search engines return results+ # for other file extensions.+ for fe in self.opts['fileexts']:+ if "." + fe.lower() in link.lower():+ self.sf.info("Found an interesting file: " + link)+ evt = SpiderFootEvent("INTERESTING_FILE", link,+ self.__name__, event)+ self.notifyListeners(evt)+ self.results.append(link)# End of sfp_intfiles classdiff --git a/sflib.py b/sflib.pyindex 4ddd5f76..403f8f64 100644--- a/sflib.py+++ b/sflib.py@@ -833,7 +833,7 @@ class SpiderFoot:self.error("Error applying regex2 to: " + data + "(" + str(e) + ")", False)try:# Some links are sitting inside a tag, e.g. Google's use of <cite>- regRel = re.compile('([>\"])([a-zA-Z0-9\-\.]+\.' + domain + '/.[^<\"]+)', re.IGNORECASE)+ regRel = re.compile('([>\"])([a-zA-Z0-9\-\.\:\/]+\.' + domain + '/.[^<\"]+)', re.IGNORECASE)urlsRel = urlsRel + regRel.findall(data)except Exception as e:self.error("Error applying regex3 to: " + data + "(" + str(e) + ")", False)