SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Minor adjustments.
smicallef065f2d661839
diff --git a/modules/sfp_dnsgrep.py b/modules/sfp_dnsgrep.pyindex 8722733c..578e4cf8 100644--- a/modules/sfp_dnsgrep.py+++ b/modules/sfp_dnsgrep.py@@ -46,7 +46,7 @@ class sfp_dnsgrep(SpiderFootPlugin):# What events is this module interested in for inputdef watchedEvents(self):- return ["INTERNET_NAME"]+ return ["DOMAIN_NAME"]# What events this module producesdef producedEvents(self):@@ -73,7 +73,7 @@ class sfp_dnsgrep(SpiderFootPlugin):try:data = json.loads(res['content'])except Exception as e:- self.sf.debug("Error processing JSON response.")+ self.sf.error("Error processing JSON response from DNSGrep.", False)return Nonereturn data@@ -86,20 +86,10 @@ class sfp_dnsgrep(SpiderFootPlugin):if eventData in self.results:return None-self.results[eventData] = Trueself.sf.debug("Received event, " + eventName + ", from " + srcModuleName)- # Accept only events from UI- if srcModuleName != "SpiderFoot UI":- return None-- # Ignore messages from myself- if srcModuleName == "sfp_dnsgrep":- self.sf.debug("Ignoring " + eventName + ", from self.")- return None-data = self.query(eventData)if data is None:diff --git a/modules/sfp_networksdb.py b/modules/sfp_networksdb.pyindex ad314fac..a4ffae63 100644--- a/modules/sfp_networksdb.py+++ b/modules/sfp_networksdb.py@@ -171,7 +171,7 @@ class sfp_networksdb(SpiderFootPlugin):# Note: currently unuseddef queryAsnNetworks(self, qry):params = {- 'asn': qry.encode('raw_unicode_escape').decode("ascii", errors='replace'),+ 'asn': qry,}headers = {'Accept': 'application/json',@@ -208,14 +208,14 @@ class sfp_networksdb(SpiderFootPlugin):try:data = json.loads(res['content'])except Exception as e:- self.sf.debug("Error processing JSON response.")+ self.sf.error("Error processing JSON response from NetworksDB.", False)return Noneif data.get('warning'):self.sf.debug("Received warning from NetworksDB: " + data.get('warning'))if data.get('error'):- self.sf.debug("Received error from NetworksDB: " + data.get('error'))+ self.sf.error("Received error from NetworksDB: " + data.get('error'), False)return datadiff --git a/modules/sfp_open_passive_dns_database.py b/modules/sfp_open_passive_dns_database.pyindex d1b73c7b..3eb18d2a 100644--- a/modules/sfp_open_passive_dns_database.py+++ b/modules/sfp_open_passive_dns_database.py@@ -68,13 +68,13 @@ class sfp_open_passive_dns_database(SpiderFootPlugin):return Noneif res['content'] is None:- self.sf.info("No results found for " + qry)+ self.sf.debug("No results found for " + qry)return Nonerows = re.findall(r'<tr>(.+?)</tr>', res['content'], re.DOTALL)if not rows:- self.sf.info("No passive DNS results for " + qry)+ self.sf.debug("No passive DNS results for " + qry)return Nonedata = list()@@ -83,7 +83,7 @@ class sfp_open_passive_dns_database(SpiderFootPlugin):columns = re.findall(r'<td.*?>(.*?)</td>', row, re.DOTALL)if len(columns) != 7:- self.sf.debug("Unexpected number of columns for row. Expected 7, Found " + str(len(columns)))+ self.sf.error("Unexpected number of columns for row. Expected 7, Found " + str(len(columns)), False)continuedata.append(columns)@@ -123,10 +123,10 @@ class sfp_open_passive_dns_database(SpiderFootPlugin):for record in data:if self.checkForStop():- break+ return Noneif self.errorState:- break+ return None#first_seen = record[0]#last_seen = record[1]@@ -200,10 +200,7 @@ class sfp_open_passive_dns_database(SpiderFootPlugin):for domain in set(domains):if self.checkForStop():- break-- if self.errorState:- break+ return Noneif domain in self.results:continue