mirror of https://github.com/MISP/misp-modules
commit
c0bcb5ab4a
|
@ -85,8 +85,10 @@ class DomainQuery(VirusTotalParser):
|
||||||
whois_object = MISPObject(whois)
|
whois_object = MISPObject(whois)
|
||||||
whois_object.add_attribute('text', type='text', value=query_result[whois])
|
whois_object.add_attribute('text', type='text', value=query_result[whois])
|
||||||
self.misp_event.add_object(**whois_object)
|
self.misp_event.add_object(**whois_object)
|
||||||
siblings = (self.parse_siblings(domain) for domain in query_result['domain_siblings'])
|
if 'domain_siblings' in query_result:
|
||||||
self.parse_resolutions(query_result['resolutions'], query_result['subdomains'], siblings)
|
siblings = (self.parse_siblings(domain) for domain in query_result['domain_siblings'])
|
||||||
|
if 'subdomains' in query_result:
|
||||||
|
self.parse_resolutions(query_result['resolutions'], query_result['subdomains'], siblings)
|
||||||
self.parse_urls(query_result)
|
self.parse_urls(query_result)
|
||||||
|
|
||||||
def parse_siblings(self, domain):
|
def parse_siblings(self, domain):
|
||||||
|
|
Loading…
Reference in New Issue