forked from p15670423/monkey
Island UI: improved the UI/readability in BreachSection.tsx
This commit is contained in:
parent
a6374e0678
commit
2f40fc4e54
|
@ -7,7 +7,7 @@ import {renderLimitedArray} from '../common/RenderArrays';
|
||||||
function BreachSection() {
|
function BreachSection() {
|
||||||
const [machines, setMachines] = useState(null);
|
const [machines, setMachines] = useState(null);
|
||||||
let description = 'Ransomware attacks start after machines in the internal network get compromised. ' +
|
let description = 'Ransomware attacks start after machines in the internal network get compromised. ' +
|
||||||
'The initial compromise was simulated by running monkeys manually.';
|
'The initial compromise was simulated by running Monkey Agents manually.';
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
IslandHttpClient.get('/api/exploitations/manual')
|
IslandHttpClient.get('/api/exploitations/manual')
|
||||||
|
@ -40,8 +40,8 @@ function getBreachSectionBody(machines) {
|
||||||
function getMachine(machine) {
|
function getMachine(machine) {
|
||||||
return (
|
return (
|
||||||
<li key={machine['hostname']}>
|
<li key={machine['hostname']}>
|
||||||
<b>{machine['hostname']}</b>
|
<b>{machine['hostname']}</b>
|
||||||
({renderLimitedArray(machine['ip_addresses'], 2, 'ip-address')}) at {machine['start_time']}
|
({renderLimitedArray(machine['ip_addresses'], 2, 'ip-address')}) at <b>{machine['start_time']}</b>
|
||||||
</li>
|
</li>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue