fix: Making pep8 happy

pull/343/head
chrisr3d 2019-10-17 10:45:51 +02:00
parent a228e2505d
commit d740abe74b
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 4 additions and 3 deletions

View File

@ -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):