Hi,
The title says it all. Is there an API call to save the patched bytes into the inputfile.
There is a menu entry but is the actual call exposed?
Avi.
Hi,
The title says it all. Is there an API call to save the patched bytes into the inputfile.
There is a menu entry but is the actual call exposed?
Avi.
I haven’t found any way to do it directly but you can call idc.gen_file() to generate a DIF
file that is the difference and then use a thirdparty program to actually make the modifications. I have written a replacement for idc.gen_file on Github: community_base.py
Perhaps patching/plugins/patching/util/ida.py at f7902033f9c2be9ea71017ce9eb13691906cc858 · gaasedelen/patching · GitHub could help you.