diff --git a/monkey_island/cc/services/report.py b/monkey_island/cc/services/report.py index 048e2fb12..6b0e408ce 100644 --- a/monkey_island/cc/services/report.py +++ b/monkey_island/cc/services/report.py @@ -276,6 +276,15 @@ class ReportService: @staticmethod def get_config_exploits(): + exploits_config_value = ['exploits', 'general', 'exploiter_classes'] + default_exploits = ConfigService.get_default_config() + for namespace in exploits_config_value: + default_exploits = default_exploits[namespace] + exploits = ConfigService.get_config_value(exploits_config_value) + + if exploits == default_exploits: + return ['default'] + exploit_display_dict = \ { 'SmbExploiter': 'SMB Exploiter', @@ -288,7 +297,7 @@ class ReportService: 'ShellShockExploiter': 'ShellShock Exploiter', } return [exploit_display_dict[exploit] for exploit in - ConfigService.get_config_value(['exploits', 'general', 'exploiter_classes'])] + exploits] @staticmethod def get_config_ips(): diff --git a/monkey_island/cc/ui/src/components/pages/ReportPage.js b/monkey_island/cc/ui/src/components/pages/ReportPage.js index f1daa6d3c..2a12587f6 100644 --- a/monkey_island/cc/ui/src/components/pages/ReportPage.js +++ b/monkey_island/cc/ui/src/components/pages/ReportPage.js @@ -330,7 +330,7 @@ class ReportPageComponent extends React.Component { generateIssues = (issues) => { let issuesDivArray = []; - for (var machine of Object.keys(issues)) { + for (let machine of Object.keys(issues)) { issuesDivArray.push(
- - To improve the monkey's detection rates, try adding users and passwords and enable the "Local network - scan" config value under Basic - Network. -
+ { + this.didMonkeyFindIssues() ? + '' + : ++ + To improve the monkey's detection rates, try adding users and passwords and enable the "Local network + scan" config value under Basic - Network. +
+ }
The first monkey run was started on {this.state.report.overview.monkey_start_time}. After 0 ?
-
- Used the following exploit methods:
-
- {this.state.report.overview.config_exploits.map(x =>
-
+ Used the following exploit methods: +
Don't use any exploit.