def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.menu_tab, self.action_name) else: if self.menu_context is not None: idaapi.del_menu_item(self.menu_context) return None
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.root_tab, self.action_name) else: if self.menu_context is not None: idaapi.del_menu_item(self.menu_context) return None
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.menu_tab, self.fluorescence_action_name) else: if self.context_menu is not None: idaapi.del_menu_item(self.context_menu) return None
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu("Search/", "act:mipsrop") #idaapi.unregister_action("act:mipsrop") else: idaapi.del_menu_item(self.menu_context) return None
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.menu_tab, self.leaf_function_action_name) idaapi.detach_action_from_menu(self.menu_tab, self.format_string_action_name) else: for context in self.menu_context: idaapi.del_menu_item(context) return None
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()
def close(self): self.YaCoUI.unhook() self.ida_hooks.unhook() ya.StopYatools() for menu_item in self.yaco_menus: name = menu_item[0] idaapi.detach_action_from_menu("Edit/YaTools/", name) idaapi.unregister_action(name)
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.menu_tab, self.xref_current_func_action_name) idaapi.detach_action_from_menu(self.menu_tab, self.all_xref_action_name) else: for context in self.menu_context: idaapi.del_menu_item(context) return None
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.menu_tab, self.code_action_name) idaapi.detach_action_from_menu(self.menu_tab, self.data_action_name) else: for context in self.menu_context: idaapi.del_menu_item(context) return None
def term(self): if idaapi.IDA_SDK_VERSION <= 695: idaapi.del_menu_item(self.menu_context_1) idaapi.del_menu_item(self.menu_context_2) if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu('Search/', 'my:opaction') idaapi.detach_action_from_menu('Search/', 'my:sigaction') else: pass return None
def OnClose(self, form): ''' OnClose event, overriden. Just unhook stuff. ''' try: idaapi.unregister_action('pyrebox:show_funcs') idaapi.detach_action_from_menu( 'Edit/PyREBox/Show function arguments...', 'pyrebox:show_funcs') self.hooks.is_closed = True pass except Exception: traceback.print_exc()
def del_menu_items(self): """ Clear Ida Rop plugin menu entries """ if idaapi.IDA_SDK_VERSION <= 695: for addmenu_item_ctx in self.addmenu_item_ctxs: idaapi.del_menu_item(addmenu_item_ctx) elif idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu('Search/IdaRop/', 'idarop:listgadgets') idaapi.detach_action_from_menu('Search/IdaRop/', 'idarop:searchgadgets') else: pass
def term(self): if idaapi.IDA_SDK_VERSION < 700: idaapi.del_menu_item(self.menu_context_load) idaapi.del_menu_item(self.menu_context_produce) else: idaapi.detach_action_from_menu('File/Load file/', 'my:rizzoloadsig') idaapi.detach_action_from_menu('File/Produce file/', 'my:rizzoproducesig') idaapi.unregister_action('my:rizzoloadsig') idaapi.unregister_action('my:rizzoproducesig') return None
def term(self): if idaapi.IDA_SDK_VERSION <= 695: idaapi.del_menu_item(self.menu_context_1) idaapi.del_menu_item(self.menu_context_2) if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu( 'Search/', 'my:opaction') idaapi.detach_action_from_menu( 'Search/', 'my:sigaction') else: pass return None
def main(): # Unregister previous action idaapi.detach_action_from_menu( 'Edit/Other/', 'DronCode:GenerateClassRepresentationCxxAction') idaapi.unregister_action('DronCode:GenerateClassRepresentationCxxAction') # Register our action action_description = idaapi.action_desc_t( 'DronCode:GenerateClassRepresentationCxxAction', 'Generate C/C++ Class Defs', GenerateClassRepresentationAction()) idaapi.register_action(action_description) idaapi.attach_action_to_menu( 'Edit/Other/Toggle border', 'DronCode:GenerateClassRepresentationCxxAction', idaapi.SETMENU_APP) print("Plugin registered!")
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.menu_name, self.to_from_action_name) idaapi.detach_action_from_menu(self.menu_name, self.from_to_action_name) idaapi.detach_action_from_menu(self.menu_name, self.curr_func_curr_block_action_name) else: for context in self.menu_context: idaapi.del_menu_item(context) return None
def term(self): ui_path = 'View/Graphs/' idaapi.detach_action_from_menu(ui_path, 'ac:from_many') idaapi.detach_action_from_menu(ui_path, 'ac:to_many') idaapi.detach_action_from_menu(ui_path, 'ac:to_current') idaapi.unregister_action('ac:from_many') idaapi.unregister_action('ac:to_many') idaapi.unregister_action('ac:to_current') return None
def term(self): if idaapi.IDA_SDK_VERSION >= 700: idaapi.detach_action_from_menu(self.menu_name, self.to_from_action_name) idaapi.detach_action_from_menu(self.menu_name, self.from_to_action_name) idaapi.detach_action_from_menu( self.menu_name, self.curr_func_curr_block_action_name) else: for context in self.menu_context: idaapi.del_menu_item(context) return None
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")
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")
def uninstall(self): """ Uninstall the action from the IDA UI. :return: did the uninstall succeed """ # Detach the action from the chosen menu result = idaapi.detach_action_from_menu(self._menu, self._ACTION_ID) if not result: return False # Un-register the action using its id result = idaapi.unregister_action(self._ACTION_ID) if not result: return False # Free the custom icon using its id idaapi.free_custom_icon(self._iconId) self._iconId = idaapi.BADADDR logger.debug("Uninstalled the action") return True
def unregisterAction(self): idaapi.detach_action_from_menu(self.menuPath, self.id) idaapi.detach_action_from_toolbar("SearchToolBar", self.id) idaapi.unregister_action(self.id)
def remove_idaipython_menu(): idaapi.detach_action_from_menu('View/IDAIPython QtConsole', 'IDAIPython:QtConsole')
def del_menu_item(ctx): if idaapi.IDA_SDK_VERSION < 700: return idaapi.del_menu_item(ctx) idaapi.detach_action_from_menu(ctx['path'], ctx['id']) idaapi.unregister_action(ctx['id'])
def unregisterAction(self): idaapi.detach_action_from_menu(self.menuPath, self.id) idaapi.unregister_action(self.id)
def detach_main_menu_actions(self): for item in self.MENU_ITEMS: idaapi.detach_action_from_menu( "Edit/" + self.plugin_name + "/" + item.title, item.action)
def fini(): idaapi.detach_action_from_menu('Edit/Other/Manual instruction...', 'jni_native_method:rename') idaapi.unregister_action('jni_native_method:rename')
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)
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')
def detach(self): idaapi.detach_action_from_menu(self.menu_path, self.id)
def term(self): idaapi.detach_action_from_menu( 'File/Load file/Rizzo signature file...', 'rizzo:load') idaapi.detach_action_from_menu( 'File/Produce file/Rizzo signature file...', 'rizzo:produce') return None
def term(self): idaapi.detach_action_from_menu(self.menu_category, self.act_name) idaapi.unregister_action(self.act_name) return None
def term(self): idaapi.detach_action_from_menu(MenuAttach.menu_name, self.testAction.name)
def term(self): idaapi.detach_action_from_menu('View/Graphs/Find paths to the current function from...', 'alleycat:find_from') idaapi.detach_action_from_menu('View/Graphs/Find paths from the current function to...', 'alleycat:find_to') idaapi.detach_action_from_menu('View/Graphs/Find paths in the current function to the current code block', 'alleycat:find_current') return None
def del_menu_items(self): for item in self.addmenu_item_ctxs: idaapi.detach_action_from_menu(item[0], item[1])