From 83a362bf90c45ec08d1d2d5e2e9e8ae7fd9672b8 Mon Sep 17 00:00:00 2001 From: Shreya Date: Fri, 17 Jul 2020 00:31:46 +0530 Subject: [PATCH] Add hyperlink to configuration page in "disabled" status message in MITRE report --- .../cc/services/attack/technique_reports/__init__.py | 3 ++- .../cc/ui/src/components/report-components/AttackReport.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py b/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py index 3930b07dd..64b6a13f7 100644 --- a/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py +++ b/monkey/monkey_island/cc/services/attack/technique_reports/__init__.py @@ -10,7 +10,8 @@ from monkey_island.cc.services.attack.attack_config import AttackConfig logger = logging.getLogger(__name__) -disabled_msg = "This technique has been disabled. You can enable it from the configuration page." +disabled_msg = "This technique has been disabled. " +\ + "You can enable it from the [configuration page](../../configure)." class AttackTechnique(object, metaclass=abc.ABCMeta): diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js b/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js index 18cfe2113..97f3c1a18 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/AttackReport.js @@ -7,6 +7,7 @@ import {faRadiation} from '@fortawesome/free-solid-svg-icons/faRadiation'; import {faEye} from '@fortawesome/free-solid-svg-icons/faEye'; import {faEyeSlash} from '@fortawesome/free-solid-svg-icons/faEyeSlash'; import {faToggleOff} from '@fortawesome/free-solid-svg-icons/faToggleOff'; +import marked from 'marked'; import ReportHeader, {ReportTypes} from './common/ReportHeader'; import {ScanStatus} from '../attack/techniques/Helpers';