Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lyciumlee opened this issue Aug 2, 2022 · 2 comments
Closed

Comments

@lyciumlee
Copy link

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 .

@gaasedelen
Copy link
Owner

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

@lyciumlee
Copy link
Author

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants