From bf72c2771171e950b7a4e5375639d178e1a9f6c8 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Tue, 19 Jun 2018 13:43:26 +0200 Subject: [PATCH] fix path-event id map --- var/www/modules/PasteSubmit/Flask_PasteSubmit.py | 2 +- var/www/modules/showpaste/Flask_showpaste.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py index 5cc404f5..1e7f05d4 100644 --- a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py +++ b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py @@ -459,7 +459,7 @@ def create_misp_event(): if event != False: return redirect(event) else: - return 'error1' + return 'error, event creation' return 'error0' @PasteSubmit.route("/PasteSubmit/create_hive_case", methods=['POST']) diff --git a/var/www/modules/showpaste/Flask_showpaste.py b/var/www/modules/showpaste/Flask_showpaste.py index ee6751bb..9a718305 100644 --- a/var/www/modules/showpaste/Flask_showpaste.py +++ b/var/www/modules/showpaste/Flask_showpaste.py @@ -126,7 +126,7 @@ def showpaste(content_range): else: hive = True - misp_event = r_serv_metadata.get('misp_events:path') + misp_event = r_serv_metadata.get('misp_events:' + requested_path) if misp_event is None: misp_eventid = False misp_url = '' @@ -134,7 +134,7 @@ def showpaste(content_range): misp_eventid = True misp_url = misp_event_url + misp_event - hive_case = r_serv_metadata.get('hive_cases:path') + hive_case = r_serv_metadata.get('hive_cases:' + requested_path) if hive_case is None: hive_caseid = False hive_url = ''