SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Applied PR Review
Immanuel George29146e393fd4
diff --git a/modules/sfp_malwarepatrol.py b/modules/sfp_malwarepatrol.pyindex 4f374c51..4eefa481 100644--- a/modules/sfp_malwarepatrol.py+++ b/modules/sfp_malwarepatrol.py@@ -11,10 +11,7 @@# Licence: GPL# --------------------------------------------------------------------------------from sflib import (- SpiderFootPlugin,- SpiderFootEvent-)+from sflib import SpiderFootPlugin, SpiderFootEventclass sfp_malwarepatrol(SpiderFootPlugin):@@ -70,14 +67,15 @@ class sfp_malwarepatrol(SpiderFootPlugin):url = "http://lists.malwarepatrol.net/cgi/getfile?receipt={}&product=32&list={}"url = url.format(self.opts['api_key'], block_name)- data['content'] = self.sf.cacheGet("sfmalwarepatrol", 72)+ cache_name = "sfmalwarepatrol_{}".format(block_name)+ data['content'] = self.sf.cacheGet(cache_name, 72)if data['content'] is None:data = self.sf.fetchUrl(url, useragent=self.opts['_useragent'])if data['content'] is None:self.sf.error("Unable to fetch " + url, False)return Noneelse:- self.sf.cachePut("sfmalwarepatrol", data['content'])+ self.sf.cachePut(cache_name, data['content'])for line in data['content'].split('\n'):if len(line) < 2 or line.startswith('#'):