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


Python idaapi.detach_action_from_menu方法代码示例

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


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

示例1: _uninstall_load_file

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _uninstall_load_file(self):
        """
        Remove the 'File->Load file->Code coverage file...' menu entry.
        """

        # remove the entry from the File-> menu
        result = idaapi.detach_action_from_menu(
            "File/Load file/",
            self.ACTION_LOAD_FILE
        )
        if not result:
            return False

        # unregister the action
        result = idaapi.unregister_action(self.ACTION_LOAD_FILE)
        if not result:
            return False

        # delete the entry's icon
        idaapi.free_custom_icon(self._icon_id_file)
        self._icon_id_file = idaapi.BADADDR

        logger.info("Uninstalled the 'Code coverage file' menu entry") 
开发者ID:gaasedelen,项目名称:lighthouse,代码行数:25,代码来源:ida_integration.py

示例2: _uninstall_load_batch

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _uninstall_load_batch(self):
        """
        Remove the 'File->Load file->Code coverage batch...' menu entry.
        """

        # remove the entry from the File-> menu
        result = idaapi.detach_action_from_menu(
            "File/Load file/",
            self.ACTION_LOAD_BATCH
        )
        if not result:
            return False

        # unregister the action
        result = idaapi.unregister_action(self.ACTION_LOAD_BATCH)
        if not result:
            return False

        # delete the entry's icon
        idaapi.free_custom_icon(self._icon_id_batch)
        self._icon_id_batch = idaapi.BADADDR

        logger.info("Uninstalled the 'Code coverage batch' menu entry") 
开发者ID:gaasedelen,项目名称:lighthouse,代码行数:25,代码来源:ida_integration.py

示例3: unregisterAction

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def unregisterAction(self):
        idaapi.detach_action_from_menu(self.menuPath, self.id)
        idaapi.unregister_action(self.id) 
开发者ID:FSecureLABS,项目名称:win_driver_plugin,代码行数:5,代码来源:win_driver_plugin.py

示例4: term

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def term(self):
        self.hooks.unhook()
        idaapi.detach_action_from_menu(MENU_PATH_GRAPHS, ShowXrefsGraphTo.get_name())
        idaapi.detach_action_from_menu(MENU_PATH_GRAPHS, ShowXrefsGraphFrom.get_name())
        ShowXrefsGraphTo.unregister()
        ShowXrefsGraphFrom.unregister() 
开发者ID:tmr232,项目名称:Sark,代码行数:8,代码来源:xrefsgraph.py

示例5: _uninstall_open_coverage_overview

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _uninstall_open_coverage_overview(self):
        """
        Remove the 'View->Open subviews->Coverage Overview' menu entry.
        """

        # remove the entry from the View-> menu
        result = idaapi.detach_action_from_menu(
            "View/Open subviews/Hex dump",
            self.ACTION_COVERAGE_OVERVIEW
        )
        if not result:
            return False

        # unregister the action
        result = idaapi.unregister_action(self.ACTION_COVERAGE_OVERVIEW)
        if not result:
            return False

        # delete the entry's icon
        idaapi.free_custom_icon(self._icon_id_overview)
        self._icon_id_overview = idaapi.BADADDR

        logger.info("Uninstalled the 'Coverage Overview' menu entry")

    #--------------------------------------------------------------------------
    # Helpers
    #-------------------------------------------------------------------------- 
开发者ID:gaasedelen,项目名称:lighthouse,代码行数:29,代码来源:ida_integration.py

示例6: _detach_from_menu_items

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def _detach_from_menu_items(self):
        idaapi.detach_action_from_menu('Edit/Plugins/IdaMagnum/', 'idamagnum:searchmagic')
        idaapi.detach_action_from_menu('Edit/Plugins/IdaMagnum/', 'idamagnum:configure') 
开发者ID:lucasg,项目名称:idamagnum,代码行数:5,代码来源:idamagnum_plugin.py

示例7: detach_menu_actions

# 需要导入模块: import idaapi [as 别名]
# 或者: from idaapi import detach_action_from_menu [as 别名]
def detach_menu_actions():
    idaapi.detach_action_from_menu(DBG_MENU_PATH, '%s:registers' % PLUGIN_NAME)
    idaapi.detach_action_from_menu(DBG_MENU_PATH, '%s:stack' % PLUGIN_NAME)

# ----------------------------------------------------------------------- 
开发者ID:danigargu,项目名称:deREferencing,代码行数:7,代码来源:dereferencing.py


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