mirror of https://github.com/MISP/misp-modules
fix: Making pep8 happy
parent
a228e2505d
commit
d740abe74b
|
@ -13,14 +13,15 @@ moduleinfo = {'version': '1', 'author': 'KX499',
|
||||||
'description': 'Get information from ThreatMiner',
|
'description': 'Get information from ThreatMiner',
|
||||||
'module-type': ['expansion']}
|
'module-type': ['expansion']}
|
||||||
|
|
||||||
|
|
||||||
class ThreatMiner():
|
class ThreatMiner():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.results = defaultdict(set)
|
self.results = defaultdict(set)
|
||||||
self.comment = '{}: Threatminer - {}'
|
self.comment = '{}: Threatminer - {}'
|
||||||
self.types_mapping = {'domain': '_get_domain', 'hostname': '_get_domain',
|
self.types_mapping = {'domain': '_get_domain', 'hostname': '_get_domain',
|
||||||
'ip-dst': '_get_ip', 'ip-src': '_get_ip',
|
'ip-dst': '_get_ip', 'ip-src': '_get_ip',
|
||||||
'md5': '_get_hash', 'sha1': '_get_hash',
|
'md5': '_get_hash', 'sha1': '_get_hash',
|
||||||
'sha256': '_get_hash', 'sha512': '_get_hash'}
|
'sha256': '_get_hash', 'sha512': '_get_hash'}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def parsed_results(self):
|
def parsed_results(self):
|
||||||
|
|
Loading…
Reference in New Issue