python类PLUGIN_KEEP的实例源码

hint_calls.py 文件源码 项目:idawilli 作者: williballenthin 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
def init(self):
        self.hooks = CallsHintsHook()
        if self.hooks.hook():
            return idaapi.PLUGIN_KEEP
        else:
            logger.warning('error setting hooks.')
            return idaapi.PLUGIN_SKIP
cgchelper.py 文件源码 项目:iddaa 作者: 0xddaa 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def init(self):
        print('CGC Helper ({}) plugin has been loaded.'.format(utils.dump_version(version)))
        hotkey_ctx = idaapi.add_hotkey('Shift-R', CGCHelper.revise_syscall)
        if hotkey_ctx:
            print(self.help)
            return idaapi.PLUGIN_KEEP
        else:
            print('Failed to register CGCHelper hotkey!')
            del hotkey_ctx
            return idaapi.PLUGIN_SKIP


问题


面经


文章

微信
公众号

扫码关注公众号