Hacking Tools

BloodHound.py : Installation, Usage, And Features

BloodHound.py is a Python based ingestor for BloodHound, based on Impacket.

The code in this branch is only compatible with BloodHound 4.2 and 4.3. For BloodHound CE, check out the bloodhound-ce branch

Installation

There are different install methods for BloodHound Community Edition (CE) and BloodHound legacy.

You can only have one of the two tools installed at the same time, unless you use a virtual environment for both tools, or a package manager like pipx that automatically sets these up.

BloodHound Legacy

The following install methods are available

  • Via pip: pip install bloodhound
  • Via pipx: pipx install bloodhound
  • By cloning this repository git clone https://github.com/dirkjanm/BloodHound.py and running pip install . from the project directory.

The BloodHound.py Legacy installation will add a command line tool bloodhound-python to your PATH.

BloodHound CE

The following install methods are available:

  • Via pip: pip install bloodhound-ce
  • Via pipx: pipx install bloodhound-ce
  • By cloning this repository git clone https://github.com/dirkjanm/BloodHound.py, checking out the CE branch git checkout bloodhound-ce and running pip install . from the project directory.

The BloodHound.py CE ingestor will add a command line tool bloodhound-ce-python to your PATH.

Usage

To use the ingestor, at a minimum you will need credentials of the domain you’re logging in to. Credentials can be specified as username + password, NT hash or AES keys, or a Kerberos TGT in a ccache file.

You will need to specify the -u option with a username of this domain (or username@domain for a user in a trusted domain).

If you have your DNS set up properly and the AD domain is in your DNS search list, then BloodHound.py will automatically detect the domain for you.

If not, you have to specify it manually with the -d option.

By default BloodHound.py will query LDAP and the individual computers of the domain to enumerate users, computers, groups, trusts, sessions and local admins.

If you want to restrict collection, specify the --collectionmethod parameter, which supports the following options (similar to SharpHound):

  • Default – Performs group membership collection, domain trust collection, local admin collection, and session collection
  • Group – Performs group membership collection
  • LocalAdmin – Performs local admin collection
  • RDP – Performs Remote Desktop Users collection
  • DCOM – Performs Distributed COM Users collection
  • Container – Performs container collection (GPO/Organizational Units/Default containers)
  • PSRemote – Performs Remote Management (PS Remoting) Users collection
  • DCOnly – Runs all collection methods that can be queried from the DC only, no connection to member hosts/servers needed. This is equal to Group,Acl,Trusts,ObjectProps,Container
  • Session – Performs session collection
  • Acl – Performs ACL collection
  • Trusts – Performs domain trust enumeration
  • LoggedOn – Performs privileged Session enumeration (requires local admin on the target)
  • ObjectProps – Performs Object Properties collection for properties such as LastLogon or PwdLastSet
  • All – Runs all methods above, except LoggedOn
  • Experimental – Connects to individual hosts to enumerate services and scheduled tasks that may have stored credentials

Multiple collectionmethods should be separated by a comma, for example: -c Group,LocalAdmin

You can override some of the automatic detection options, such as the hostname of the primary Domain Controller if you want to use a different Domain Controller with -dc, or specify your own Global Catalog with -gc.

For more information click here.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

Bottom : Your Ultimate Guide To Mastering System Monitoring Across Platforms

"bottom" (btm) is a powerful, customizable, cross-platform graphical system and process monitor designed for terminal…

23 minutes ago

OpenTelemetry Rust : A Comprehensive Guide For Instrumenting Rust Applications

OpenTelemetry Rust is an implementation of the OpenTelemetry framework tailored for the Rust programming language.…

24 minutes ago

PoC : Understanding PoC Repositories For CVEs And Vulnerabilities

A Proof of Concept (PoC) repository is a valuable tool in the cybersecurity landscape, designed…

1 hour ago

TWEET-MACHINE (TM) : A Powerful Twitter OSINT Tool

TWEET-MACHINE (TM) is an innovative Open-Source Intelligence (OSINT) tool designed specifically for Twitter. It enables…

20 hours ago

Comprehensive Rust : Tools And Workflow

Comprehensive Rust is an open-source, multi-day Rust programming course developed by Google’s Android team. It…

20 hours ago

RustPython : Bridging Python’s Flexibility With Rust’s Performance

RustPython is an open-source Python 3 interpreter written entirely in Rust, designed to provide a…

20 hours ago