Skip to content

Commit

Permalink
fix: comment request and remove entry in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguy-Boisset committed Oct 10, 2023
1 parent b2b734a commit 1f6f2cf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion ad_miner/sources/modules/config.json
Expand Up @@ -15,7 +15,6 @@
"set_path_candidate": "true",
"set_groups_members_count": "true",
"set_groups_has_members": "true",
"set_x_nbr_adm_machines": "true",
"set_is_group_operator": "true",
"set_is_operator_member": "true",
"set_is_adminsdholder": "true",
Expand Down
19 changes: 19 additions & 0 deletions ad_miner/sources/modules/neo4j_class.py
Expand Up @@ -443,6 +443,25 @@ def __init__(self, arguments, extract_date_int):
"filename": "set_groups_has_members",
"method": self.requestList,
},
# Not used anymore and possibly buggy
# "set_x_nbr_adm_machines": {
# "name": "Set the number of machines where Computers, Users, or Groups are admin (if too long, set recursivity to 3 into the query)",
# "request": "OPTIONAL MATCH (u:User) "
# "WITH COLLECT (DISTINCT u) AS u1 "
# "OPTIONAL MATCH (c:Computer) "
# "WITH COLLECT(DISTINCT c) + u1 AS o1 "
# "OPTIONAL MATCH (g:Group) "
# "WITH COLLECT(DISTINCT g) + o1 AS o2 "
# "UNWIND o2 AS o "
# "MATCH (o) WITH o ORDER BY o.name "
# "MATCH p=(o)-[:AdminTo*1..3]->(c:Computer) "
# "WITH count(p) as nbr_admin, o.name as username "
# "MATCH (o) "
# "WHERE o.name=username "
# "SET o.nbr_adm_machines=nbr_admin ",
# "filename": "set_x_nbr_adm_machines",
# "method": self.requestList,
# },
"set_gpo_links_count": {
"name": "Set the count of links/object where the GPO is applied",
"request": "MATCH p=(g:GPO)-[:GPLink]->(o) "
Expand Down

0 comments on commit 1f6f2cf

Please sign in to comment.