Exemple #1
0
    def uninstall(self):
        if not ida_kernwin.detach_action_from_menu(self._menu, self._action_name):
            self._plugin.logger.error('Failed to detach action save to server from menu')
            return False

        if not ida_kernwin.unregister_action(self._action_name):
            self._plugin.logger.error('Failed to unregister action save to server')
            return False

        return True
Exemple #2
0
    def uninstall(self):
        # Detach the action from the chosen menu
        result = ida_kernwin.detach_action_from_menu(self._menu,
                                                     self._ACTION_ID)
        if not result:
            return False

        # Un-register the action using its id
        result = ida_kernwin.unregister_action(self._ACTION_ID)
        if not result:
            return False

        # Free the custom icon using its id
        ida_kernwin.free_custom_icon(self._icon_id)
        self._icon_id = ida_idaapi.BADADDR

        self._plugin.logger.debug("Uninstalled the action")
        return True
Exemple #3
0
    def _uninstall_load_trace(self):

        logger.info("Removing the 'Tenet trace file...' menu entry...")

        # remove the entry from the File-> menu
        result = ida_kernwin.detach_action_from_menu("File/Load file/",
                                                     self.ACTION_LOAD_TRACE)
        if not result:
            logger.warning("Failed to detach action from menu...")
            return False

        # unregister the action
        result = ida_kernwin.unregister_action(self.ACTION_LOAD_TRACE)
        if not result:
            logger.warning("Failed to unregister action...")
            return False

        # delete the entry's icon
        #ida_kernwin.free_custom_icon(self._icon_id_file) # TODO
        self._icon_id_file = ida_idaapi.BADADDR

        logger.info("Successfully removed the menu entry!")
        return True
Exemple #4
0
 def _detach_menu_action(self):
     ida_kernwin.detach_action_from_menu(MENU_PATH, self.act_static)
     ida_kernwin.detach_action_from_menu(MENU_PATH, self.act_dbg_hook)
     ida_kernwin.detach_action_from_menu(MENU_PATH, self.act_pattern)
     ida_kernwin.detach_action_from_menu(MENU_PATH, self.act_assist)
     ida_kernwin.detach_action_from_menu(MENU_PATH, self.act_test)
Exemple #5
0
 def unregisterAction(self):
     ida_kernwin.detach_action_from_menu(self.menuPath, self.id)
     ida_kernwin.unregister_action(self.id)