Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binpatcher

binpatcher is a command-line tool for searching and replacing binary blocks in files.

Usage

binpatcher -i <input_file> -s <search_block_file> -r <replace_block_file> [-o <output_file>]

Options

  • -h: Display this help message and exit.
  • -i <input_file>: Path to the input file.
  • -s <search_block_file>: Path to the binary file containing the block to search for.
  • -r <replace_block_file>: Path to the binary file containing the block to replace with.
  • -o <output_file>: Path to the output file. If not specified, the input file will be overwritten.

Example

To search for a specific binary block in input.bin and replace it with another block from replace.bin, saving the result to output.bin, use:

binpatcher -i input.bin -o output.bin -s search.bin -r replace.bin

To search for a specific binary block in input.bin and replace it with another block from replace.bin, overwriting the input file, use:

binpatcher -i input.bin -s search.bin -r replace.bin

Installation

Requirements

  • cmake (version 3.10 or higher)
  • gcc (GNU Compiler Collection)

Build and Install

To compile and install binpatcher, follow these steps:

  1. Create a build directory:

    mkdir build
    cd build
  2. Configure the project with CMake:

    cmake ..
  3. Compile the project:

    make
  4. Install the executable:

    sudo make install

To uninstall:

sudo xargs rm < install_manifest.txt

License

This software is provided under the terms of the MIT License. You are free to use, modify, and distribute this software, subject to the conditions and limitations of the MIT License. For more details, please see the LICENSE file included with this software.

Contact and Support

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages