forked from p34709852/monkey
Remove duplicate exploits on breached servers
This commit is contained in:
parent
10375c093e
commit
dff90ab534
|
@ -80,7 +80,7 @@ class ReportService:
|
|||
{
|
||||
'label': NodeService.get_node_hostname(NodeService.get_node_or_monkey_by_id(monkey['id'])),
|
||||
'ip_addresses': monkey['ip_addresses'],
|
||||
'exploits': [exploit['exploiter'] for exploit in monkey['exploits'] if exploit['result']]
|
||||
'exploits': list(set([exploit['exploiter'] for exploit in monkey['exploits'] if exploit['result']]))
|
||||
}
|
||||
for monkey in exploited]
|
||||
|
||||
|
|
Loading…
Reference in New Issue