当前位置: 首页>>代码示例>>Python>>正文


Python idaapi.PLUGIN_SKIP属性代码示例

本文整理汇总了Python中idaapi.PLUGIN_SKIP属性的典型用法代码示例。如果您正苦于以下问题:Python idaapi.PLUGIN_SKIP属性的具体用法?Python idaapi.PLUGIN_SKIP怎么用?Python idaapi.PLUGIN_SKIP使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在idaapi的用法示例。


在下文中一共展示了idaapi.PLUGIN_SKIP属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: init

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import PLUGIN_SKIP [as 别名]
def init(self):
        # Print header
        print("=" * 60)
        print("GhIDA Decompiler v{0}".format(gl.ghida_vv))
        print("Andrea Marcelli <anmarcel@cisco.com>")
        print("Cisco Talos, June 2019")
        print("GhIDA Decompiler shortcut key is Ctrl-Alt-D")
        print("=" * 60)

        self.__uihooks = None
        self.__seh = None

        try:
            import pygments
        except Exception:
            print("GhIDA:: [!] pygments library is missing")
            print("pip2 install pygments")
            return idaapi.PLUGIN_SKIP

        try:
            import requests
        except Exception:
            print("GhIDA:: [!] requests library is missing")
            print("pip2 install requests")
            return idaapi.PLUGIN_SKIP

        load_configuration()
        register_handlers()

        # Avoid displaying Running python script dialog
        # Otherwise, it breaks the UI and Cancel button
        idaapi.disable_script_timeout()

        # Hooking
        self.__uihooks = DisasmsHooks()
        self.__uihooks.hook()

        self.__seh = ScreenEAHook()
        self.__seh.hook()
        return idaapi.PLUGIN_KEEP 
开发者ID:Cisco-Talos,项目名称:GhIDA,代码行数:42,代码来源:ghida.py

示例2: init

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import PLUGIN_SKIP [as 别名]
def init(self):
        """
        Ensure plugin's line modification function is called whenever needed.

        If Hex-Rays is not installed, or is not initialized yet, then plugin
        will not load. To ensure that the plugin loads after Hex-Rays, please
        name your plugin's .py file with a name that starts lexicographically
        after "hexx86f"
        """
        try:
            if idaapi.init_hexrays_plugin():
                def hexrays_event_callback(event, *args):
                    if event == idaapi.hxe_refresh_pseudocode:
                        # We use this event instead of hxe_text_ready because
                        #   MacOSX doesn't seem to work well with it
                        # TODO: Look into this
                        vu, = args
                        self.visit_func(vu.cfunc)
                    return 0
                idaapi.install_hexrays_callback(hexrays_event_callback)
            else:
                return idaapi.PLUGIN_SKIP
        except AttributeError:
            idc.Warning('''init_hexrays_plugin() not found.
            Skipping Hex-Rays plugin.''')
        return idaapi.PLUGIN_KEEP 
开发者ID:BinaryAnalysisPlatform,项目名称:bap-ida-python,代码行数:28,代码来源:hexrays.py

示例3: init

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import PLUGIN_SKIP [as 别名]
def init(self):
        if not dbg.supported_cpu():
            return idaapi.PLUGIN_SKIP

        register_dbg_hook()
        register_munu_actions()
        register_desktop_hooks()

        return idaapi.PLUGIN_KEEP 
开发者ID:danigargu,项目名称:deREferencing,代码行数:11,代码来源:dereferencing.py


注:本文中的idaapi.PLUGIN_SKIP属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。