Skip to main content

Binary files search utility

Project description

hrep

grep for binary files.

Usage

usage: hrep [-h] [-x HEX] [-a ASCII] [-e REGEX] [--chunk-size CHUNK_SIZE] [-d]
            [-X] [-C] [-w DUMP_WIDTH] [-s] [-A AFTER] [-B BEFORE]
            [HEX] [filename [filename ...]]

Search for binary sequences in files

positional arguments:
  HEX                   Hex encoded binary sequence to search for
  filename              List of files to search in

optional arguments:
  -h, --help            show this help message and exit
  -x HEX, --hex HEX     Search for a hexadecimal pattern('?' matches a single
                        nibble, '*' matches any number of bytes)
  -a ASCII, --ascii ASCII
                        Search for an ASCII string
  -e REGEX, --regex REGEX
                        Search for a regular expression
  --chunk-size CHUNK_SIZE
                        Override default buffer size
  -d, --decimal-offset  Output decimal file offsets (by default prints hex)
  -X, --no-hexdump      Disable hex dump
  -C, --no-colors       Don't use colors in dump output
  -w DUMP_WIDTH, --dump-width DUMP_WIDTH
                        Width of hex dump
  -s, --summary         Print summary at the end
  -A AFTER, --after AFTER
                        Number of additional dump lines to display after match
  -B BEFORE, --before BEFORE
                        Number of additional dump lines to display before
                        match

Each output line corresponds to a match in the format:
<filename>:<offset>:<match>

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

hrep-0.2.1a0.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file hrep-0.2.1a0.tar.gz.

File metadata

  • Download URL: hrep-0.2.1a0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.1

File hashes

Hashes for hrep-0.2.1a0.tar.gz
Algorithm Hash digest
SHA256 f60ff8e426638542535aa0f730327c610942d80dcd0e5251f38e76cd9d527099
MD5 85f403a138fcbc9aeac888abba7c0c62
BLAKE2b-256 0aac21757328c76b8fd34ccb3d59b019b2063d330656daed63c1aa93667c9b4e

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