Skip to content

Commit

Permalink
Fix export url in VirusTotal Collection module
Browse files Browse the repository at this point in the history
  • Loading branch information
danipv committed Sep 12, 2023
1 parent a52e5a5 commit e7e173e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misp_modules/modules/export_mod/virustotal_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def create_collection(api_key, event_data):
response_data = response.json()

if response.status_code == 200:
link = response_data['data']['links']['self']
return f'{uuid}: {link}'
col_id = response_data['data']['id']
return f'{uuid}: https://www.virustotal.com/gui/collection/{col_id}/iocs'

error = response_data['error']['message']
if response.status_code == 400:
Expand Down

0 comments on commit e7e173e

Please sign in to comment.