mirror of https://github.com/MISP/misp-modules
fix: [virustotal] Resolve key error when user enrich hostname
parent
cda5feedaa
commit
bd7f7fa1f3
|
@ -143,7 +143,7 @@ class VirusTotalParser(object):
|
|||
|
||||
def parse_resolutions(self, resolutions, subdomains=None, uuids=None):
|
||||
domain_ip_object = MISPObject('domain-ip')
|
||||
if self.attribute.type == 'domain':
|
||||
if self.attribute.type in ('domain', 'hostname'):
|
||||
domain_ip_object.add_attribute('domain', type='domain', value=self.attribute.value)
|
||||
attribute_type, relation, key = ('ip-dst', 'ip', 'ip_address')
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue