mirror of https://github.com/MISP/misp-modules
Merge pull request #424 from JakubOnderka/vt-subdomains-fix
fix: [virustotal] Resolve key error when user enrich hostnamepull/429/head
commit
38c3502394
|
@ -144,7 +144,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