Documentation > Frequently Asked Questions (FAQ) > How do I patch/hook a function?
How do I patch/hook a function?
Function hooking usually requires you to code and compile a DLL/SO file, and then inject it into the target executable somehow (e.g. manual mapping or by calling LoadLibrary on Windows, or using LD_PRELOAD or ptrace on Linux).
While these techniques do work, Binary Workbench offers a simpler solution, by patching the executable file directly: