win下 python 版 直接放到\IDA_Pro_v6.8\plugins

//test.py
import idaapi

class myplugin_t(idaapi.plugin_t):
   flags = idaapi.PLUGIN_UNL
   comment = "This is a comment"
   
   help = "This is help"
   wanted_name = "My Python plugin"
   wanted_hotkey = "Alt-F8"
   
   def init(self):
       idaapi.msg("init() called!\n")
       return idaapi.PLUGIN_OK
   
   def run(self, arg):
       idaapi.msg("run() called with %d!\n" % arg)
   
   def term(self):
       idaapi.msg("term() called!\n")

def PLUGIN_ENTRY():
   return myplugin_t()

linux 下 一样的

mac 下有点不同 是放在 idabin 目录下