Browse Source

fix typo

domtools
Raphaël Vinot 5 years ago
parent
commit
9dbd241e63
  1. 12
      misp_modules/modules/expansion/domaintools.py

12
misp_modules/modules/expansion/domaintools.py

@ -61,19 +61,19 @@ class DomainTools(object):
to_return = []
if self.reg_mail:
for mail, comment in self.reg_mail.items():
to_return.append({'type': ['whois-registrant-email'], 'values': [mail], 'comment': comment or ''})
to_return.append({'types': ['whois-registrant-email'], 'values': [mail], 'comment': comment or ''})
if self.reg_phone:
for phone, comment in self.reg_phone.items():
to_return.append({'type': ['whois-registrant-phone'], 'values': [phone], 'comment': comment or ''})
to_return.append({'types': ['whois-registrant-phone'], 'values': [phone], 'comment': comment or ''})
if self.reg_name:
for name, comment in self.reg_name.items():
to_return.append({'type': ['whois-registrant-name'], 'values': [name], 'comment': comment or ''})
to_return.append({'types': ['whois-registrant-name'], 'values': [name], 'comment': comment or ''})
if self.registrar:
to_return.append({'type': ['whois-registrar'], 'values': list(self.registrar)})
to_return.append({'types': ['whois-registrar'], 'values': list(self.registrar)})
if self.creation_date:
to_return.append({'type': ['whois-creation-date'], 'values': list(self.creation_date)})
to_return.append({'types': ['whois-creation-date'], 'values': list(self.creation_date)})
if self.freetext:
to_return.append({'type': ['freetext'], 'values': [self.freetext], 'comment': 'Freetext import'})
to_return.append({'types': ['freetext'], 'values': [self.freetext], 'comment': 'Freetext import'})
return to_return

Loading…
Cancel
Save