Sign inSign up

evanmcbroom/scripts

By evanmcbroom

•Updated about 4 years ago

These are my scripts and utility code for *nix boxes.

Image
0

198

evanmcbroom/scripts repository overview

⁠Scripts

MIT License GitHub All Releases Docker Pulls

These are my scripts and utility code for *nix boxes.

⁠Quickstart – install from source

git clone https://github.com/EvanMcBroom/scripts
pip3 install ./scripts

⁠...or run in a docker container.

docker run -it --rm evanmcbroom/scripts

⁠Commands

⁠bhq (bhquery.py)

Query a BloudHound database. If no arguments are provided, bhq will connect to a local Neo4j server and start an interactive cypher query shell. Arguments may be provided to submit individual queries, search for nodes with properties that contain a value, and list, set, or reset nodes marked as owned or high value. When marking nodes, node names may be specified as an argument or standard input, similar to the base64 utility.

Find any node with a property value that includes Lorem.Ipsum:

bhq -f Lorem.Ipsum

List all high value nodes:

bhq -lv

Mark every node name in a file as owned:

cat names.txt | bhq -o -s
⁠scan

Scan a file or directory for a premade list of identifiers or a provided list of words. The premade list of identifiers includes:

  • emails
  • domain names
  • IMEIs
  • IPv4 addresses
  • IPv6 address
  • MAC addresses
  • US phone numbers

The scanner will automatically unarchive and uncompress files if necessary. Supported archive formats include Tar and Zip. Supported compression formats include Bzip2, Gzip, and Lzma. Files are treated as plaintext by default but my be treated as raw binary data as well.

Scan a binary file for all identifiers and a provided list of words:

scan -ab -w wordlist.txt Program.exe
⁠sserv (https.py)

Start an HTTPS server, similar to Python's built-in HTTP server. You may specify a key and certificate file to use with the server. If you do not specify a key and certificate, then they will be automatically generated for you.

Start an HTTPS server on port 445:

sserv 445
⁠urlparse

URL encode or decode a file(s) or standard input, similar to the base64 utility.

Decode a file:

cat input.txt | urlparse -d

Tag summary

Content type

Image

Digest

sha256:bb201f327…

Size

30.5 MB

Last updated

about 4 years ago

docker pull evanmcbroom/scripts