Merge pull request #424 from JakubOnderka/vt-subdomains-fix

fix: [virustotal] Resolve key error when user enrich hostname
pull/429/head
Christian Studer 2020-09-28 12:32:42 +02:00 committed by GitHub
commit 38c3502394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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