From f99bd74cd4a0f1cc7bc8aa3e8b44c1e3ade73aa1 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 14 Jul 2022 16:49:31 +0200 Subject: [PATCH] UI: Construct and render stolen credentials --- .../report-components/security/StolenPasswords.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/security/StolenPasswords.js b/monkey/monkey_island/cc/ui/src/components/report-components/security/StolenPasswords.js index 25a701871..d646974ec 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/security/StolenPasswords.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/security/StolenPasswords.js @@ -1,13 +1,13 @@ import React from 'react'; -import ReactTable from 'react-table' +import ReactTable from 'react-table' +import {getCredentialsTableData} from '../credentialParsing.js'; const columns = [ { Header: 'Stolen Credentials', columns: [ {Header: 'Username', accessor: 'username'}, - {Header: 'Type', accessor: 'type'}, - {Header: 'Stolen From', accessor: 'origin'} + {Header: 'Type', accessor: 'type'} ] } ]; @@ -22,11 +22,12 @@ class StolenPasswordsComponent extends React.Component { render() { let defaultPageSize = this.props.data.length > pageSize ? pageSize : this.props.data.length; let showPagination = this.props.data.length > pageSize; + let table_data = getCredentialsTableData(this.props.data); return (