forked from p15670423/monkey
Removed duplicate issues
This commit is contained in:
parent
ce10ef00e4
commit
f72b32bb67
|
@ -208,8 +208,12 @@ class ReportService:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_exploits():
|
def get_exploits():
|
||||||
return [ReportService.process_exploit(exploit) for
|
exploits = []
|
||||||
exploit in mongo.db.telemetry.find({'telem_type': 'exploit', 'data.result': True})]
|
for exploit in mongo.db.telemetry.find({'telem_type': 'exploit', 'data.result': True}):
|
||||||
|
new_exploit = ReportService.process_exploit(exploit)
|
||||||
|
if new_exploit not in exploits:
|
||||||
|
exploits.append(new_exploit)
|
||||||
|
return exploits
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_monkey_subnets(monkey_guid):
|
def get_monkey_subnets(monkey_guid):
|
||||||
|
|
Loading…
Reference in New Issue