Skip to content

Commit

Permalink
Merge pull request #677 from cudeso/main
Browse files Browse the repository at this point in the history
Fix 'Object' object has no attribute 'url' in virustotal
  • Loading branch information
adulau authored Aug 2, 2024
2 parents bbabfea + 6726400 commit f0c56ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misp_modules/modules/expansion/virustotal.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def create_misp_object(self, report: vt.Object) -> MISPObject:
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

Expand Down
2 changes: 1 addition & 1 deletion misp_modules/modules/expansion/virustotal_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def create_misp_object(self, report: vt.Object) -> MISPObject:
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

Expand Down

0 comments on commit f0c56ad

Please sign in to comment.