Skip to main content

No project description provided

Project description

bhp

bhp is a BloodHound user file parser!


InstallationGetting startedUsageComing 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bhp-0.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

bhp-0.0.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file bhp-0.0.1.tar.gz.

File metadata

  • Download URL: bhp-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for bhp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e0f28d7a2c24b2163a83dbd88b8699e721cf63605a9f663363ff105a995e8ccb
MD5 9fe86937f604511428c9009267bcec94
BLAKE2b-256 f68eccc9452cd189026c542a4fd03b1cbe55edf38850a2c40260717006f38bd6

See more details on using hashes here.

File details

Details for the file bhp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: bhp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Darwin/21.5.0

File hashes

Hashes for bhp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb1a74be4569a575a33ac7685f763f150936172af5ea650f5c3462036ea2afa2
MD5 1e60697591f7de08d6c3fa6fb563104c
BLAKE2b-256 1706b18654a23cadb93bb8dab0a27fd51b1c863a123da735ab1adc28b4f08dc9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page