forked from p15670423/monkey
Island: refactor ransomware report to improve readability and UI
This commit is contained in:
parent
60cac3b287
commit
b408c650dc
|
@ -5,6 +5,8 @@ import ReportLoader from './common/ReportLoader';
|
|||
import pluralize from 'pluralize'
|
||||
import FileEncryptionTable from './ransomware/FileEncryptionTable';
|
||||
|
||||
import '../../styles/pages/report/RansomwareReport.scss';
|
||||
|
||||
class RansomwareReport extends React.Component {
|
||||
|
||||
constructor(props) {
|
||||
|
@ -28,24 +30,25 @@ class RansomwareReport extends React.Component {
|
|||
return (
|
||||
<div>
|
||||
{this.getExploitationStats()}
|
||||
<FileEncryptionTable tableData={this.state.report.encrypted_files_table} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
getExploitationStats() {
|
||||
return (
|
||||
<div>
|
||||
<>
|
||||
<p>
|
||||
This report shows information about the ransomware simulation run by Infection Monkey.
|
||||
</p>
|
||||
<FileEncryptionTable tableData={this.state.report.encrypted_files_table} />
|
||||
<div>
|
||||
<h2>
|
||||
<h3 className={'report-section-header'}>
|
||||
Propagation
|
||||
</h2>
|
||||
</h3>
|
||||
{this.getScannedVsExploitedStats()}
|
||||
{this.getExploitationStatsPerExploit()}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -89,7 +92,7 @@ class RansomwareReport extends React.Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<div className='report-page'>
|
||||
<div className={`report-page ransomware-report`}>
|
||||
<ReportHeader report_type={ReportTypes.ransomware}/>
|
||||
<hr/>
|
||||
{content}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
.ransomware-report .report-section-header {
|
||||
margin-top: 40px;
|
||||
}
|
Loading…
Reference in New Issue