gaasedelen/patching

idasm is A Python Assembler Script Tool for IDA Pro based on "patching"

lyciumlee opened this issue · 2 comments

Dear gaasedelen,
I extract core codes from your ingenious "patching" plugin. Now we can use "patching" as an automatic patching work engine for IDA. Here is the repository link: https://github.com/lyciumlee/idasm .

You should be able to script actions using the existing plugin core. I consciously exposed it to the IDA console but I guess I didn't technically document it:

# load the plugin core
self.core = patching.PatchingCore(defer_load=True)
# inject a reference to the plugin context into the IDA console scope
IDA_GLOBAL_SCOPE.patching = self

This shows how you can access or call into the core API:

image

Any of the core API's I created and built the UI / actions on top of can be used for headless scripting / automation:

https://github.com/gaasedelen/patching/blob/main/plugins/patching/core.py#L292-L575

Awesome!