SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fixed bug resulting in duplicate linkage in the DB between elements.
smicallef5fa696d7054c
diff --git a/modules/sfp_googlesearch.py b/modules/sfp_googlesearch.pyindex 087253b0..d6578bed 100644--- a/modules/sfp_googlesearch.py+++ b/modules/sfp_googlesearch.py@@ -127,6 +127,8 @@ class sfp_googlesearch(SpiderFootPlugin):for page in pages.keys():if page in self.results:continue+ else:+ self.results.append(page)# Check if we've been asked to stopif self.checkForStop():@@ -135,7 +137,6 @@ class sfp_googlesearch(SpiderFootPlugin):# Submit the google results for analysisevt = SpiderFootEvent("RAW_DATA", pages[page], self.__name__)self.notifyListeners(evt)- self.results.append(page)# We can optionally fetch links to our domain found in the search# results. These may not have been identified through spidering.@@ -147,6 +148,8 @@ class sfp_googlesearch(SpiderFootPlugin):for link in links:if link in self.results:continue+ else:+ self.results.append(link)sf.debug("Found a link: " + link)if sf.urlBaseUrl(link).endswith(self.baseDomain):if self.checkForStop():@@ -155,6 +158,4 @@ class sfp_googlesearch(SpiderFootPlugin):evt = SpiderFootEvent("LINKED_URL_INTERNAL", link, self.__name__)self.notifyListeners(evt)- self.results.append(link)-# End of sfp_googlesearch classdiff --git a/modules/sfp_pageinfo.py b/modules/sfp_pageinfo.pyindex 3e235845..a4f6ac54 100644--- a/modules/sfp_pageinfo.py+++ b/modules/sfp_pageinfo.py@@ -85,9 +85,9 @@ etc.)"""matches = re.findall(regex, eventData, re.IGNORECASE)if len(matches) > 0 and regexpGrp not in self.results[eventSource]:sf.info("Matched " + regexpGrp + " in content from " + eventSource)+ self.results[eventSource].append(regexpGrp)evt = SpiderFootEvent(regexpGrp, eventSource, self.__name__, event.sourceEvent)self.notifyListeners(evt)- self.results[eventSource].append(regexpGrp)# If no regexps were matched, consider this a static pageif len(self.results[eventSource]) == 0:diff --git a/modules/sfp_subdomain.py b/modules/sfp_subdomain.pyindex 2a5474ac..1ddf735f 100644--- a/modules/sfp_subdomain.py+++ b/modules/sfp_subdomain.py@@ -67,9 +67,9 @@ class sfp_subdomain(SpiderFootPlugin):continueelse:sf.info("New sub-domain/host found: " + match)+ self.results[match] = Trueevt = SpiderFootEvent("SUBDOMAIN", match, self.__name__, parentEvent)self.notifyListeners(evt)- self.results[match] = Truereturn None