Anybody know, how via IDC scripts applying patching for input file (i mean context menu: "Edit - Patch program - Apply patches to input file"). I viewed entire idc.idc and didn't see desired function
1 Answer
Look at patch_bytes()
and put_bytes()
in bytes.hpp
, they should do what you need.
You can also look at this python script on GitHub that produces a patched file from the patched bytes in the db.