SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Update sfp_maltiverse.py
Krishnasis Mandalf7ddae2b8b17
diff --git a/modules/sfp_maltiverse.py b/modules/sfp_maltiverse.pyindex 3955765d..a16be37e 100644--- a/modules/sfp_maltiverse.py+++ b/modules/sfp_maltiverse.py@@ -83,7 +83,7 @@ class sfp_maltiverse(SpiderFootPlugin):return Noneif not res['code'] == "200":- self.sf.error("No information found from Phishstats for IP Address", false)+ self.sf.error("No information found from Maltiverse for IP Address", false)return Nonetry:@@ -181,9 +181,17 @@ class sfp_maltiverse(SpiderFootPlugin):for blacklistedRecord in blacklistedRecords:lastSeen = blacklistedRecord.get('last_seen')- lastSeenDate = datetime.strptime(str(lastSeen), "%Y-%m-%d %H:%M:%S")+ if lastSeen is None:+ continue++ try:+ lastSeenDate = datetime.strptime(str(lastSeen), "%Y-%m-%d %H:%M:%S")+ except:+ self.sf.error("Invalid date in JSON response, skipping", False)+ continuetoday = datetime.now()+difference = (today - lastSeenDate).daysif difference > int(self.opts["age_limit_days"]):