Created
March 28, 2018 18:19
-
-
Save rvazarkar/a9d2dc795dd974756f9557a4722bcaec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Shortest Path from SPN User", | |
"queryList":[ | |
{ | |
"final": false, | |
"title":"Select a domain...", | |
"query":"MATCH (n:Domain) RETURN n.name ORDER BY n.name DESC" | |
}, | |
{ | |
"final": false, | |
"title": "Select a user", | |
"query": "MATCH (n:User) WHERE n.domain={result} AND n.HasSPN=true RETURN n.name, n.PwdLastSet ORDER BY n.PwdLastSet ASC" | |
}, | |
{ | |
"final": true, | |
"query": "MATCH n=shortestPath((a:User {name:{result}})-[r*1..]->(b:Computer)) RETURN n", | |
"startNode":"{}", | |
"allowCollapse": true | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment