mirror of https://github.com/MISP/misp-modules
Merge pull request #637 from VirusTotal/main
[VirusTotal Collections] Fix the export urlpull/640/head v2.4.176
commit
7a0666b8af
|
@ -75,8 +75,8 @@ def create_collection(api_key, event_data):
|
||||||
response_data = response.json()
|
response_data = response.json()
|
||||||
|
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
link = response_data['data']['links']['self']
|
col_id = response_data['data']['id']
|
||||||
return f'{uuid}: {link}'
|
return f'{uuid}: https://www.virustotal.com/gui/collection/{col_id}/iocs'
|
||||||
|
|
||||||
error = response_data['error']['message']
|
error = response_data['error']['message']
|
||||||
if response.status_code == 400:
|
if response.status_code == 400:
|
||||||
|
|
Loading…
Reference in New Issue