From dff90ab5340f600e7e8c530252e9bbbbc8309d31 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Tue, 28 Nov 2017 14:37:11 +0200 Subject: [PATCH] Remove duplicate exploits on breached servers --- monkey_island/cc/services/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey_island/cc/services/report.py b/monkey_island/cc/services/report.py index 867feeda6..5af051e72 100644 --- a/monkey_island/cc/services/report.py +++ b/monkey_island/cc/services/report.py @@ -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]