Skip to main content

bhp

bhp is a BloodHound user file parser!


Installation • Getting started • Usage • Coming Soon



Installation

bhp supports all major operating systems and can be installed for the PyPi using the following command:

pipx install bhp

If this tool is not yet availible via PyPi, you can install it directly from the repository using:

git clone https://github.com/puzzlepeaches/bhp.git
cd bhp && pip3 install .

For development, clone the repository and install it locally using poetry.

git clone https://github.com/puzzlepeaches/bhp.git && cd bhp
poetry shell && poetry install

Getting started

bhp supports the latest BloodHound user json file format. Let's say you ran a BloodHound export on an enagement last summer and now the client is back and asking for social engineering servies. If you want to cheat and get as much coverage as possible, you can parse your previous BloodHound export for users with mailboxes for phishing.

bhp gophish 20210414091456_users.json acmecorp.gophish.csv

With the output file, you can go into the Gophish web application and add the users to the campaign super easily.


Usage

The bhp help menu is shown below:

Usage: bhp [OPTIONS] COMMAND [ARGS]...

  Parse BloodHound JSON userfiles for external use.

Options:
  -h, --help  Show this message and exit.

Commands:
  gophish  Outputs a gophish import compatible csv file.
  stdout   Outputs specified type to stdout.
  txt      Outputs specified type to a text file.

The stdout and txt modules allow the user to specify a desired output type. Let's say you want to get an idea of the most common title for users in your export. You can do something like:

bhp stdout title 20210414091456_users.json | sort -u

Thanks

  • The BloodHound team for making me stare a graphs all day
  • The Gophish team for making me mod their project to land phishing emails.
  • The Sprocket team member that created the first iteration of this tool way back.

Metadata

Release files for bhp 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bhp 0.0.1
File Size Uploaded
bhp-0.0.1.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bhp 0.0.1
File Interpreter ABI Platform
bhp-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / bhp-0.0.1.tar.gz

Download URL bhp-0.0.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e0f28d7a2c24b2163a83dbd88b8699e721cf63605a9f663363ff105a995e8ccb
BLAKE2b-256 checksum
How to use checksums
f68eccc9452cd189026c542a4fd03b1cbe55edf38850a2c40260717006f38bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

Release files / bhp-0.0.1-py3-none-any.whl

Download URL bhp-0.0.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb1a74be4569a575a33ac7685f763f150936172af5ea650f5c3462036ea2afa2
BLAKE2b-256 checksum
How to use checksums
1706b18654a23cadb93bb8dab0a27fd51b1c863a123da735ab1adc28b4f08dc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page