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


Python idaapi.UI_Hooks方法代码示例

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


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

示例1: __start_ida__

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import UI_Hooks [as 别名]
def __start_ida__(cls):
        api = [
            ('idp', idaapi.IDP_Hooks),
            ('idb', idaapi.IDB_Hooks),
            ('ui', idaapi.UI_Hooks),
        ]

        # Create an alias so we save typing 19 chars..
        priorityhook = internal.interface.priorityhook
        for attr, hookcls in api:

            # Attach a priority hooking queue to an instance of IDA's hooks
            instance = priorityhook(hookcls)

            # Explicitly assign the priority instance into our object
            if not hasattr(cls, attr):
                setattr(cls, attr, instance)

            # Now we can enable all the hooks so the user can use them
            instance.hook()
        return 
开发者ID:arizvisa,项目名称:ida-minsc,代码行数:23,代码来源:ui.py

示例2: __init__

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import UI_Hooks [as 别名]
def __init__(self, cc):
        idaapi.UI_Hooks.__init__(self)
        self.cc = cc
        self.selected_icon_number = idaapi.load_custom_icon(config['icons_path'] + "icons8-asterisk-24.png") 
开发者ID:AirbusCyber,项目名称:grap,代码行数:6,代码来源:PatternGenerationWidget.py

示例3: idaview_hooks

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import UI_Hooks [as 别名]
def idaview_hooks(idaview_handler):
    class Hooks(idaapi.UI_Hooks):
        def finish_populating_widget_popup(self, form, popup):
            if idaapi.get_widget_type(form) == idaapi.BWN_DISASM:
                idaapi.attach_action_to_popup(form, popup, idaview_handler.get_name(), "")

    return Hooks 
开发者ID:tmr232,项目名称:Sark,代码行数:9,代码来源:lca.py

示例4: __init__

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import UI_Hooks [as 别名]
def __init__(self):
        idaapi.UI_Hooks.__init__(self) 
开发者ID:L4ys,项目名称:LazyIDA,代码行数:4,代码来源:LazyIDA.py

示例5: __init__

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import UI_Hooks [as 别名]
def __init__(self):
        idaapi.UI_Hooks.__init__(self)
        
        self.popups = [] 
开发者ID:Tekiter,项目名称:WatchDBG-IDA,代码行数:6,代码来源:util.py

示例6: __init__

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import UI_Hooks [as 别名]
def __init__(self, plugin):
        self.plugin = plugin
        idaapi.UI_Hooks.__init__(self) 
开发者ID:Riscure,项目名称:DROP-IDA-plugin,代码行数:5,代码来源:drop.py

示例7: _create_hooks

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import UI_Hooks [as 别名]
def _create_hooks(self, install_idabuddy):
        class InstallerUiHooks(idaapi.UI_Hooks):
            def updating_actions(self, ctx):
                if ctx.form_type == idaapi.BWN_DISASM:
                    ida_widget = form_to_widget(ctx.form)
                    idaview = ida_widget.children()[0]
                    install_idabuddy(idaview)
                return super(InstallerUiHooks, self).updating_actions(ctx)

        return InstallerUiHooks() 
开发者ID:tmr232,项目名称:IDABuddy,代码行数:12,代码来源:installer.py


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