Browse Source

fix: Undetected urls are represented in lists

pull/322/head
chrisr3d 3 years ago
parent
commit
c9c2027a57
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 2
      misp_modules/modules/expansion/virustotal_public.py

2
misp_modules/modules/expansion/virustotal_public.py

@ -31,7 +31,7 @@ class VirusTotalParser():
for feature in ('detected_urls', 'undetected_urls'):
if feature in query_result:
for url in query_result[feature]:
value = url['url'] if isinstance(url, dict) else url
value = url['url'] if isinstance(url, dict) else url[0]
self.misp_event.add_attribute('url', value)
def parse_resolutions(self, resolutions, subdomains=None, uuids=None):

Loading…
Cancel
Save