當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。