From 141abfe708a3ea5d5f9984454595166dc85eca6d Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 26 Mar 2020 11:15:15 +0530 Subject: [PATCH] Add report UI T1136: Create account --- .../src/components/attack/techniques/T1136.js | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 monkey/monkey_island/cc/ui/src/components/attack/techniques/T1136.js diff --git a/monkey/monkey_island/cc/ui/src/components/attack/techniques/T1136.js b/monkey/monkey_island/cc/ui/src/components/attack/techniques/T1136.js new file mode 100644 index 000000000..b9c4b6aff --- /dev/null +++ b/monkey/monkey_island/cc/ui/src/components/attack/techniques/T1136.js @@ -0,0 +1,43 @@ +import React from 'react'; +import ReactTable from 'react-table'; +import {renderMachineFromSystemData, ScanStatus} from './Helpers' + +class T1136 extends React.Component { + + constructor(props) { + super(props); + } + + static getColumns() { + return ([{ + columns: [ + { Header: 'Machine', + id: 'machine', + accessor: x => renderMachineFromSystemData(x.machine), + style: {'whiteSpace': 'unset'}}, + { Header: 'Result', + id: 'result', + accessor: x => x.result, + style: {'whiteSpace': 'unset'}} + ] + }]) + } + + render() { + return ( +
+
{this.props.data.message}
+
+ {this.props.data.status === ScanStatus.USED ? + : ''} +
+ ); + } +} + +export default T1136;