mirror of https://github.com/MISP/misp-modules
add: Parsing downloaded samples as well as the referrer ones
parent
795edb7457
commit
641dda0103
|
@ -75,8 +75,9 @@ class DomainQuery(VirusTotalParser):
|
|||
def parse_report(self, query_result):
|
||||
hash_type = 'sha256'
|
||||
whois = 'whois'
|
||||
for feature in ('undetected_referrer_samples', 'detected_referrer_samples'):
|
||||
for sample in query_result[feature]:
|
||||
for feature_type in ('referrer', 'dowloaded'):
|
||||
for feature in ('undetected_{}_samples', 'detected_{}_samples'):
|
||||
for sample in query_result[feature.format(feature_type)]:
|
||||
self.misp_event.add_attribute(hash_type, sample[hash_type])
|
||||
if query_result.get(whois):
|
||||
whois_object = MISPObject(whois)
|
||||
|
|
Loading…
Reference in New Issue