
Strumento per importare le tue query personalizzate da BloodHound "Legacy" a BloodHound "Community"
Strumento per importare le tue query personalizzate da BloodHound "Legacy" a BloodHound "Community".
nota: su linux/kali, il file customqueries.json per BloodHound Legacy si trova in ~/.config/bloodhound/customqueries.json
example.env in .env e inserisci le variabili d'ambiente richieste.pip3 install -r requirements.txt
Lo script utilizza le seguenti variabili d'ambiente, che devono essere impostate in un file .env (vedi example.env):
BHE_DOMAIN: Il dominio dell'API BHE.BHE_PORT: La porta dell'API BHE.BHE_SCHEME: Lo schema dell'API BHE (http o https).BHE_TOKEN_KEY: La chiave del token per l'API BHE.BHE_TOKEN_SECRET: Il segreto del token per l'API BHE.Maggiori dettagli qui: BloodHound API
python bh-toolset.py [-h] [-i [FILE]] [--new [NEW_FILE]] [--delete]
-h: Mostra il messaggio di aiuto ed esci.-i: Importa il file customqueries.json dal formato legacy. (default: customqueries.json).--new: importa query personalizzate già formattate per la nuova versione. (default: new_customqueries.json).--delete: Elimina tutte le query salvate.# show help
python3 bh-toolset.py -h
# convert and import customqueries from bloodhound legacy
python3 bh-toolset.py -i
# also import already converted customqueries
python3 bh-toolset.py -i --new
# specify custom file names
python3 bh-toolset.py -i my_customqueries.json --new my_new_customqueries.json
# delete all saved queries
python3 bh-toolset.py --delete
Alcuni attributi come owned e highvalue sono cambiati in BloodHound Community. Dovrai modificarli manualmente (per ora). Es:
MATCH (m:User) WHERE m.owned=TRUE RETURN m è ora MATCH (m:User) WHERE m.system_tags =~ '.*owned*.' RETURN mnew_customqueries.json