Remove duplicate exploits on breached servers

This commit is contained in:
Itay Mizeretz 2017-11-28 14:37:11 +02:00
parent 10375c093e
commit dff90ab534
1 changed files with 1 additions and 1 deletions

View File

@ -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]