Island: Fix mongo query in telemetry processing

This commit is contained in:
Ilija Lazoroski 2022-03-10 18:43:01 +01:00 committed by ilija-lazoroski
parent 11f48a95be
commit adc1010355
1 changed files with 2 additions and 2 deletions

View File

@ -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"]},
}
)