https://github.com/onitake/bgrep
A binary string search tool.
https://github.com/onitake/bgrep
Last synced: about 1 year ago
JSON representation
A binary string search tool.
- Host: GitHub
- URL: https://github.com/onitake/bgrep
- Owner: onitake
- License: bsd-3-clause
- Created: 2019-02-09T00:30:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-09T00:30:50.000Z (over 7 years ago)
- Last Synced: 2025-04-11T21:18:47.288Z (about 1 year ago)
- Language: C
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bgrep
bgrep - a binary string search tool.
No fancy features like regular expressions or case insensitivity,
just a bland tool that can find a needle (aka string) in a haystack
(aka binary file).
Prints a list of offsets in decimal and hex form from the start of the file.
Built around `mmap()` and `memcmp()` to speed up the search.
Requires long pointers to map large files - or in other words:
It will crash if you try to scan a file > 4GiB on a 32-bit system.
## Compile
```bash
make
```
## Use
```bash
bgrep filename.ext string-to-search
```