From e7e173eb86bce8866d93df550ca48384b1e6fe60 Mon Sep 17 00:00:00 2001 From: Daniel Pascual Date: Tue, 12 Sep 2023 14:49:30 +0200 Subject: [PATCH] Fix export url in VirusTotal Collection module --- misp_modules/modules/export_mod/virustotal_collections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misp_modules/modules/export_mod/virustotal_collections.py b/misp_modules/modules/export_mod/virustotal_collections.py index fa2929c..28a79ef 100644 --- a/misp_modules/modules/export_mod/virustotal_collections.py +++ b/misp_modules/modules/export_mod/virustotal_collections.py @@ -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: