forked from p34709852/monkey
Island: Fix mongo query in report generation for exploits
This commit is contained in:
parent
453dc21074
commit
11f48a95be
|
@ -142,7 +142,7 @@ class ReportService:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_exploits() -> List[dict]:
|
def get_exploits() -> List[dict]:
|
||||||
query = [
|
query = [
|
||||||
{"$match": {"telem_category": "exploit", "data.result": True}},
|
{"$match": {"telem_category": "exploit", "data.exploitation_result": True}},
|
||||||
{
|
{
|
||||||
"$group": {
|
"$group": {
|
||||||
"_id": {"ip_address": "$data.machine.ip_addr"},
|
"_id": {"ip_address": "$data.machine.ip_addr"},
|
||||||
|
|
Loading…
Reference in New Issue