BloodHound Cypher Cheatsheet

https://hausec.com/2019/09/09/bloodhound-cypher-cheatsheet/

Setear todos los usuarios owned mediante Cypher query:
En la lista se definen los usuarios owneados

WITH [‘usuario1′,’usuario2’] as ownedlist
UNWIND ownedlist as owned
WITH owned
MATCH (m:User {samaccountname:owned})
SET m.owned=TRUE
RETURN m

El cypher query puede ser ejecutado también en una sola línea

WITH [‘usuario1′,’usuario2’] as ownedlist UNWIND ownedlist as owned WITH owned MATCH (m:User {samaccountname:owned}) SET m.owned=TRUE RETURN m

Listar todos los usuarios owned:

MATCH(u:User) WHERE u.owned=TRUE return u

Comments are closed.