bgrep
« Back to VersTracker
Description:
Like grep but for binary strings
Type: Formula  |  Latest Version: 0.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: binary search grep cli developer-tools
Install: brew install bgrep
About:
bgrep is a command-line utility designed to search for binary patterns within files, similar to how grep searches for text. It allows users to specify hexadecimal or binary search strings, making it invaluable for analyzing compiled code, firmware images, and raw data. This tool solves the problem of locating specific byte sequences where standard text-based search tools fall short.
Key Features:
  • Supports hexadecimal and binary pattern input
  • Works on any file type, not just text
  • Outputs offsets and context for found matches
  • Simple, focused command-line interface
Use Cases:
  • Reverse engineering binaries to find specific function calls or data
  • Analyzing firmware images for known strings or signatures
  • Debugging memory dumps for specific byte patterns
Alternatives:
  • hexdump + grep – More cumbersome as it requires piping output and converting patterns manually
  • ripgrep (rg) – Primarily optimized for text searching; lacks native binary pattern matching capabilities
License: BSD-2-Clause
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, arm64_big_sur, sonoma, ventura, monterey, big_sur, catalina, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 11:57am 0 VERSION_BUMP 6e4d9123