SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Final updates to CommonCrawl module.
Steve Micallefc876eeab9a81
diff --git a/modules/sfp_commoncrawl.py b/modules/sfp_commoncrawl.pyindex 9c6e9428..1adc71d6 100644--- a/modules/sfp_commoncrawl.py+++ b/modules/sfp_commoncrawl.py@@ -99,7 +99,7 @@ class sfp_commoncrawl(SpiderFootPlugin):# 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"]+ return ["LINKED_URL_INTERNAL"]# Handle events sent to this moduledef handleEvent(self, event):@@ -127,20 +127,18 @@ class sfp_commoncrawl(SpiderFootPlugin):return Nonefor content in data:- # Submit the gresults for analysis- sevt = SpiderFootEvent("SEARCH_ENGINE_WEB_CONTENT", content,- self.__name__, event)- self.notifyListeners(sevt)-try:for line in content.split("\n"):+ if self.checkForStop():+ return None+if len(line) < 2:continuelink = json.loads(line)if 'url' not in link:continueevt = SpiderFootEvent("LINKED_URL_INTERNAL", link['url'],- self.__name__, sevt)+ self.__name__, event)self.notifyListeners(evt)except BaseException as e:self.sf.error("Malformed JSON from CommonCrawl.org: " + str(e), False)