Skip to content

Instantly share code, notes, and snippets.

View rboddy's full-sized avatar
🏠
Working from home

Ryan Boddy rboddy

🏠
Working from home
View GitHub Profile
@rboddy
rboddy / customCipherQuery.json
Created June 19, 2020 19:52
Mass import owned users in BloodHound and find paths from owned users to privileged groups
{
"name": "Find Owned Users with a path to DA",
"queryList": [
{
"final": true,
"query": "MATCH (u:User {owned:true}) MATCH (g:Group) WHERE g.objectid ENDS WITH '-512' MATCH p = shortestPath( (u)-[*1..]->(g) ) RETURN p"
}
]
}