SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fix pagination.
smicallefa452e1e9e0ef
diff --git a/modules/sfp_spyse.py b/modules/sfp_spyse.pyindex e2170a6b..6ab72a65 100644--- a/modules/sfp_spyse.py+++ b/modules/sfp_spyse.py@@ -286,7 +286,7 @@ class sfp_spyse(SpiderFootPlugin):# Query cohostsif eventName in ["IP_ADDRESS", "IPV6_ADDRESS"]:cohosts = list()- currentOffset = 1+ currentOffset = 0nextPageHasData = Truewhile nextPageHasData:@@ -316,9 +316,10 @@ class sfp_spyse(SpiderFootPlugin):self.reportExtraData(record, event)# Calculate if there are any records in the next offset (page)- if currentOffset * len(records) < currentOffset * self.limit:+ if len(records) < self.limit:nextPageHasData = False- currentOffset += 1+ currentOffset += self.limit+for co in set(cohosts):@@ -346,7 +347,7 @@ class sfp_spyse(SpiderFootPlugin):# Query open ports for source IP Addressif eventName in ["IP_ADDRESS", "IPV6_ADDRESS"]:ports = list()- currentOffset = 1+ currentOffset = 0nextPageHasData = Truewhile nextPageHasData:@@ -375,10 +376,11 @@ class sfp_spyse(SpiderFootPlugin):ports.append(str(eventData) + ":" + str(port))self.reportExtraData(record, event)- if currentOffset * len(records) < currentOffset * self.limit:- nextPageHasData = False- currentOffset += 1-+ # Calculate if there are any records in the next offset (page)+ if len(records) < self.limit:+ nextPageHasData = False+ currentOffset += self.limit+for port in ports:if port in self.results:continue@@ -389,7 +391,7 @@ class sfp_spyse(SpiderFootPlugin):# Query subdomainsif eventName in ["DOMAIN_NAME", "INTERNET_NAME"]:- currentOffset = 1+ currentOffset = 0nextPageHasData = Truedomains = list()@@ -419,10 +421,10 @@ class sfp_spyse(SpiderFootPlugin):domains.append(domain)self.reportExtraData(record, event)-- if currentOffset * len(records) < currentOffset * self.limit:- nextPageHasData = False- currentOffset += 1+ # Calculate if there are any records in the next offset (page)+ if len(records) < self.limit:+ nextPageHasData = False+ currentOffset += self.limitfor domain in set(domains):