Skip to content

Commit

Permalink
fix: remove DC from path candidates and add non_da_dc request
Browse files Browse the repository at this point in the history
  • Loading branch information
snowpeacock authored and snowpeacock committed Jun 19, 2024
1 parent 19128f3 commit 545de01
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions ad_miner/sources/modules/requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,6 @@
"request": "MATCH (n{can_dcsync:true}) RETURN n.domain as domain, n.name as name",
"output_type": "dict"
},
"set_path_candidate": {
"name": "Set path_candidate=TRUE to candidates eligible to shortestPath to DA",
"request": "MATCH (o) WHERE NOT o.name IS NULL AND (o.is_da=false OR o.is_da IS NULL) AND NOT o:Domain AND ((o.enabled=True AND o:User) OR NOT o:User) SET o.path_candidate=TRUE",
"output_type": "list",
"is_a_write_request": "true"
},
"set_ou_candidate": {
"name": "Set ou_candidate=TRUE to candidates eligible to shortestou to DA",
"request": "MATCH (m) WHERE NOT m.name IS NULL AND ((m:Computer AND (m.is_dc=false OR NOT EXISTS(m.is_dc))) OR (m:User AND (m.is_da=false OR NOT EXISTS(m.is_da)))) SET m.ou_candidate=TRUE",
Expand All @@ -258,6 +252,18 @@
"output_type": "list",
"is_a_write_request": "true"
},
"set_is_not_da_dc": {
"name": "Set is_da_dc=FALSE to objects without is_da_dc = TRUE",
"request": "MATCH (o:Base) WHERE o.is_da_dc IS NULL SET o.is_da_dc = FALSE",
"output_type": "list",
"is_a_write_request": "true"
},
"set_path_candidate": {
"name": "Set path_candidate=TRUE to candidates eligible to shortestPath to DA",
"request": "MATCH (o{is_da_dc:false}) WHERE NOT o:Domain AND ((o.enabled=True AND o:User) OR NOT o:User) SET o.path_candidate=TRUE",
"output_type": "list",
"is_a_write_request": "true"
},
"set_groups_members_count": {
"name": "Set members_count to groups (recursivity = 5)",
"request": "MATCH (g:Group) WITH g ORDER BY g.name SKIP PARAM1 LIMIT PARAM2 MATCH (u:User)-[:MemberOf*1..5]->(g) WHERE NOT u.name IS NULL AND NOT g.name IS NULL WITH g AS g1, count(u) AS memberscount SET g1.members_count=memberscount",
Expand Down

0 comments on commit 545de01

Please sign in to comment.