{"id":21047201,"url":"https://github.com/labatata101/grep_bin","last_synced_at":"2025-06-29T07:38:07.664Z","repository":{"id":62439779,"uuid":"390549484","full_name":"LaBatata101/grep_bin","owner":"LaBatata101","description":"Search a sequence of bytes in a binary file","archived":false,"fork":false,"pushed_at":"2022-03-02T19:39:40.000Z","size":69,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T05:08:29.339Z","etag":null,"topics":["bgrep","binary","cli","command-line","command-line-tool","grep","recursively-search","rust","search"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaBatata101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-29T00:33:12.000Z","updated_at":"2025-05-10T16:29:52.000Z","dependencies_parsed_at":"2022-11-01T21:52:54.739Z","dependency_job_id":null,"html_url":"https://github.com/LaBatata101/grep_bin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/LaBatata101/grep_bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fgrep_bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fgrep_bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fgrep_bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fgrep_bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaBatata101","download_url":"https://codeload.github.com/LaBatata101/grep_bin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fgrep_bin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262558576,"owners_count":23328560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bgrep","binary","cli","command-line","command-line-tool","grep","recursively-search","rust","search"],"created_at":"2024-11-19T14:35:57.952Z","updated_at":"2025-06-29T07:38:07.642Z","avatar_url":"https://github.com/LaBatata101.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grep_bin\n`grep_bin` can search recursively a directory or multiple files for a sequence of bytes or ascii string.\n\n## Usage\n### Searching for a byte sequence in a file\n`$ grep_bin fffe test.bin`\n\n### Searching recursively a directory for a byte sequence\n`$ grep_bin FFFE ~/Downloads`\n\n### Filtering the filetypes\n`$ grep_bin -f mp3 FFfe0000 ~/Downloads`\n\n### Search for an ASCII string inside the binary\n`$ grep_bin '\"Hello World\"' test.bin`\n\nSearch for an ASCII string with quotes included: `$ grep_bin '\"This is a \\\"quote\\\"\"' test.bin`\n\n### Search a byte sequence in multiple files\n`$ grep_bin fFFe test1.bin test2.bin`\n\n### Specify the number of bytes per line in the output\n`$ grep_bin -c 32 \"information\" README.md`\n\nOutput:\n\u003cpre\u003e\nREADME.md\n00000320:  73 20 68 65 6C 70 20 \u003cb\u003e69  6E 66 6F 72 6D 61 74 69  6F 6E\u003c/b\u003e 0A 0A 20 20 20 20  2D 56 2C 20 2D 2D 76 65   |s help \u003cb\u003einformation\u003c/b\u003e..    -V, --ve|\n00000360:  73 69 6F 6E 20 \u003cb\u003e69 6E 66  6F 72 6D 61 74 69 6F 6E\u003c/b\u003e  0A 0A 0A 4F 50 54 49 4F  4E 53 3A 0A 20 20 20 20   |sion \u003cb\u003einformation\u003c/b\u003e...OPTIONS:.    |\n\u003c/pre\u003e\n* the characters in bold represent the colored match\n### Help\n```\n$ grep_bin -h\n\ngrep_bin 2.0.0\nLaBatata101 \u003clabatata101@linuxmail.org\u003e\nSearches recursively a directory or multiple files for a sequence of bytes or ASCII string.\n\nUSAGE:\n    grep_bin [OPTIONS] \u003cPATTERN\u003e \u003cFILE\u003e...\n\nARGS:\n    \u003cPATTERN\u003e    Ascii strings should be passed inside quotes like so '\"This is a string\"'\n                 Escaping quotes '\"This is a \\\"quoted string\\\"\"'\n                 All of these byte sequence are valid: f9b4ca, F9B4CA and f9B4Ca\n    \u003cFILE\u003e...    The filepath\n\nOPTIONS:\n    -c \u003ccontext_bytes_size\u003e        Defines the number of bytes that will be printed in each line.\n                                   [default: 16]\n    -f \u003cfiletype\u003e                  Filter the search by the file extensions.\n                                   Examples of input: jpg, mp3, exe\n    -h, --help                     Print help information\n    -o, --print-offset             Prints only the offsets of the match.\n    -p, --print-only               Prints only the filename that contais the match.\n    -s, --skip-bytes \u003cn\u003e           Skip n bytes before searching. [default: 0]\n    -V, --version                  Print version information\n```\n\n# Building Manually\n## Dependencies\n- rustc(latest version)\n- cargo\n\n`$ git clone https://github.com/LaBatata101/grep_bin`\n\n`$ cd grep_bin/`\n\n`$ cargo build --release`\n\nThe final binary will be in `target/release/`\n\n# Installing with Cargo\n`cargo install grep_bin`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabatata101%2Fgrep_bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabatata101%2Fgrep_bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabatata101%2Fgrep_bin/lists"}