DeLuks2006 / patimat
PublicSimple, header-only, pattern matching and patching class + tool written in modern C++.
Patimat is a C++ library that helps you find and replace specific byte patterns inside program files. It automatically understands different types of program formats (Windows executables, Linux programs, Mac apps, and raw binary files), so you don't have to worry about the technical details. You describe what bytes to look for using simple notation, specify what to replace them with, and the tool does the rest. It's designed for security researchers, reverse engineers, and developers who need to modify compiled programs without source code.
How It Works
You have a program file that isn't working quite right, and you want to change how it behaves without recompiling it.
Using simple notation, you describe the sequence of bytes you want to locate in the program file.
Patimat reads your program file, understands its format, and searches through it to find every match.
Swap out the old pattern with your custom replacement bytes
Use placeholders to keep some bytes unchanged while modifying others
The modified file is written out with your patches applied, ready to use.
You successfully modified the binary exactly where you wanted, without touching anything else.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.