Last active
December 6, 2023 12:36
-
-
Save icecr4ck/3654145d854f218ab406bdc44619615e to your computer and use it in GitHub Desktop.
IDAPython plugin template.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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