mirror of https://github.com/MISP/misp-modules
Merge pull request #677 from cudeso/main
Fix 'Object' object has no attribute 'url' in virustotalpull/679/head
commit
f0c56ad5bc
|
@ -84,7 +84,7 @@ class VirusTotalParser:
|
|||
misp_object.add_attribute('ip', type='ip-dst', value=report.id)
|
||||
elif report.type == 'url':
|
||||
misp_object = MISPObject('url')
|
||||
misp_object.add_attribute('url', type='url', value=report.url)
|
||||
misp_object.add_attribute('url', type='url', value=report.id)
|
||||
misp_object.add_reference(vt_uuid, 'analyzed-with')
|
||||
return misp_object
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ class VirusTotalParser:
|
|||
misp_object.add_attribute('ip', type='ip-dst', value=report.id)
|
||||
elif report.type == 'url':
|
||||
misp_object = MISPObject('url')
|
||||
misp_object.add_attribute('url', type='url', value=report.url)
|
||||
misp_object.add_attribute('url', type='url', value=report.id)
|
||||
misp_object.add_reference(vt_uuid, 'analyzed-with')
|
||||
return misp_object
|
||||
|
||||
|
|
Loading…
Reference in New Issue