Fix export url in VirusTotal Collection module

pull/637/head
Daniel Pascual 2023-09-12 14:49:30 +02:00
parent a52e5a588a
commit e7e173eb86
1 changed files with 2 additions and 2 deletions

View File

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