Skip to content

Instantly share code, notes, and snippets.

@icecr4ck
Last active December 6, 2023 12:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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.
import idaapi
class ExamplePlugin(idaapi.plugin_t):
flags = idaapi.PLUGIN_DRAW
comment = "This plugin does nothing useful"
help = "No help is needed"
wanted_name = "Example"
wanted_hotkey = "Alt-F11"
def init(self):
return idaapi.PLUGIN_KEEP # On garde le plugin chargé en mémoire
def run(self, arg):
# Code à exécuter lors du lancement via l'interface
return
def term(self):
# Code à exécuter lors du déchargement du plugin
# par exemple, lors de la fermeture de l'idb.
pass
def PLUGIN_ENTRY():
return ExamplePlugin()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment