forked from p34709852/monkey
Island: Extract getScannedVsExploitedStats() method
This commit is contained in:
parent
6fdf0858ac
commit
ced3c3b137
|
@ -18,20 +18,26 @@ class RansomwareReport extends React.Component {
|
|||
}
|
||||
|
||||
getExploitationStats() {
|
||||
let num_scanned = this.props.report.propagation_stats.num_scanned_nodes;
|
||||
let num_exploited = this.props.report.propagation_stats.num_exploited_nodes;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h2>
|
||||
Propagation
|
||||
</h2>
|
||||
{this.getScannedVsExploitedStats()}
|
||||
{this.getExploitationStatsPerExploit()}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
getScannedVsExploitedStats() {
|
||||
let num_scanned = this.props.report.propagation_stats.num_scanned_nodes;
|
||||
let num_exploited = this.props.report.propagation_stats.num_exploited_nodes;
|
||||
|
||||
return(
|
||||
<p>
|
||||
The Monkey discovered <span className='badge badge-warning'>{num_scanned}</span> machines
|
||||
and successfully breached <span className='badge badge-danger'>{num_exploited}</span> of them.
|
||||
</p>
|
||||
{this.getExploitationStatsPerExploit()}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue