From adc1010355d7c774cccc75de589d0888d7fffeec Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 10 Mar 2022 18:43:01 +0100 Subject: [PATCH] Island: Fix mongo query in telemetry processing --- monkey/monkey_island/cc/resources/monkey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/monkey.py b/monkey/monkey_island/cc/resources/monkey.py index b32ecbb83..07e96a4b3 100644 --- a/monkey/monkey_island/cc/resources/monkey.py +++ b/monkey/monkey_island/cc/resources/monkey.py @@ -96,7 +96,7 @@ class Monkey(flask_restful.Resource): for x in mongo.db.telemetry.find( { "telem_category": {"$eq": "exploit"}, - "data.result": {"$eq": True}, + "data.exploitation_result": {"$eq": True}, "data.machine.ip_addr": {"$in": monkey_json["ip_addresses"]}, "monkey_guid": {"$eq": parent}, } @@ -117,7 +117,7 @@ class Monkey(flask_restful.Resource): for x in mongo.db.telemetry.find( { "telem_category": {"$eq": "exploit"}, - "data.result": {"$eq": True}, + "data.exploitation_result": {"$eq": True}, "data.machine.ip_addr": {"$in": monkey_json["ip_addresses"]}, } )