ida 脚本编写

win下 python 版
直接放到\IDA_Pro_v6.8\plugins
ida 脚本编写

 //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 下 一样的
ida 脚本编写

mac 下有点不同
是放在 idabin 目录下
ida 脚本编写
ida 脚本编写

猜你喜欢

转载自blog.51cto.com/haidragon/2153107
IDA