Merge pull request #677 from cudeso/main

Fix 'Object' object has no attribute 'url' in virustotal
pull/679/head
Alexandre Dulaunoy 2024-08-02 18:26:13 +02:00 committed by GitHub
commit f0c56ad5bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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