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
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