From d76386e8d34acbb7c7c07106c6915d197376ff6d Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Tue, 2 Jan 2018 12:40:31 +0200 Subject: [PATCH] More content fixing --- .../cc/ui/src/components/pages/ReportPage.js | 32 ++++++------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/monkey_island/cc/ui/src/components/pages/ReportPage.js b/monkey_island/cc/ui/src/components/pages/ReportPage.js index b55246874..3d4945dcd 100644 --- a/monkey_island/cc/ui/src/components/pages/ReportPage.js +++ b/monkey_island/cc/ui/src/components/pages/ReportPage.js @@ -9,6 +9,7 @@ import CollapsibleWellComponent from 'components/report-components/CollapsibleWe import {Line} from 'rc-progress'; let guardicoreLogoImage = require('../../images/guardicore-logo.png'); +let monkeyLogoImage = require('../../images/monkey-icon.svg'); class ReportPageComponent extends React.Component { @@ -349,16 +350,6 @@ class ReportPageComponent extends React.Component { return ; }; - didMonkeyFindIssues = () => { - for (let issue of Object.keys(this.state.report.overview.issues)) { - if (this.state.report.overview.issues[issue]) { - return true; - } - } - return false; - }; - - render() { let content; if (Object.keys(this.state.report).length === 0) { @@ -383,6 +374,12 @@ class ReportPageComponent extends React.Component { }}> Print Report
+

+ Infection Monkey Report +

+
+ +

Overview @@ -507,7 +504,7 @@ class ReportPageComponent extends React.Component { className="label label-warning"> {this.state.report.overview.issues.filter(function (x) { return x === true; - }).length} issues: + }).length} threats:
    {this.state.report.overview.issues[this.Issue.STOLEN_CREDS] ?
  • Stolen credentials are used to exploit other machines.
  • : null} @@ -535,7 +532,7 @@ class ReportPageComponent extends React.Component { :
    During this simulated attack the Monkey uncovered 0 issues. + className="label label-success">0 threats.
    }

@@ -583,15 +580,6 @@ class ReportPageComponent extends React.Component { successfully breached {this.state.report.glance.exploited.length} of them.

- { - this.state.report.glance.exploited.length > 0 ? -

- In addition, while attempting to exploit additional hosts, security software installed in the - network should have picked up the attack attempts and logged them. -

- : - '' - }
-

4. Security Report

+

4. Security Report

{content}