Skip to content

Instantly share code, notes, and snippets.

@icecr4ck
Last active December 6, 2023 12:36
Show Gist options
  • Save icecr4ck/3654145d854f218ab406bdc44619615e to your computer and use it in GitHub Desktop.
Save icecr4ck/3654145d854f218ab406bdc44619615e to your computer and use it in GitHub Desktop.
IDAPython plugin template.
# https://www.hexblog.com/?p=886
class MyHandler(ida_kernwin.action_handler_t):
def __init__(self):
ida_kernwin.action_handler_t.__init__(self)
# Say hello when invoked.
def activate(self, ctx):
print "Hello!"
return 1
# This action is always available.
def update(self, ctx):
return idaapi.AST_ENABLE_ALWAYS
ida_kernwin.attach_action_to_menu(""
# plugin_t instance
def PLUGIN_ENTRY():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment