Mazars-Tech / AD_Miner

AD Miner is an Active Directory audit tool that leverages cypher queries to crunch data from the #Bloodhound graph database to uncover security weaknesses
GNU General Public License v3.0
1.01k stars 103 forks source link

fix: paths to Operators groups #110

Closed dreamkinn closed 6 months ago

dreamkinn commented 6 months ago
k4amos commented 6 months ago

I have this bug : neo4j.exceptions.CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError} {message: Invalid input '$': expected an identifier (line 1, column 139 (offset: 138)) "MATCH (m:User{pathcandidate:true}) WHERE NOT m.name CONTAINS "MSOL" WITH m ORDER BY m.name SKIP 0 LIMIT 1 MATCH p = shortestPath((m)-[r:$path_to_group_operators_props*1..$recursive_level]->(o:User{is_operatormember:true})) WHERE m<>o AND NOT m.name CONTAINS "MSOL" AND ((o.is_da=true AND o.domain<>m.domain) OR (o.is_da=false)) RETURN DISTINCT(p) as p"

dreamkinn commented 6 months ago

This might be due to your merge with commit changing variables templates : https://github.com/Mazars-Tech/AD_Miner/pull/107/commits/ae01477fe625f1ffe3b662a53e2e0072a5fea4be

Should be fixed now