Exemplo n.º 1
0
 def _del_action_bulk(self):
     """
     Delete the bulk prefix action from IDA.
     """
     idaapi.unregister_action(self.ACTION_BULK)
     idaapi.free_custom_icon(self._bulk_icon_id)
     self._bulk_icon_id = idaapi.BADADDR
Exemplo n.º 2
0
 def _del_action_clear(self):
     """
     Delete the clear prefix action from IDA.
     """
     idaapi.unregister_action(self.ACTION_CLEAR)
     idaapi.free_custom_icon(self._clear_icon_id)
     self._clear_icon_id = idaapi.BADADDR
Exemplo n.º 3
0
 def _del_action_recursive(self):
     """
     Delete the recursive rename action from IDA.
     """
     idaapi.unregister_action(self.ACTION_RECURSIVE)
     idaapi.free_custom_icon(self._recursive_icon_id)
     self._recursive_icon_id = idaapi.BADADDR
Exemplo n.º 4
0
 def _del_action_clear(self):
     """
     Delete the clear prefix action from IDA.
     """
     idaapi.unregister_action(self.ACTION_CLEAR)
     idaapi.free_custom_icon(self._clear_icon_id)
     self._clear_icon_id = idaapi.BADADDR
Exemplo n.º 5
0
 def _del_action_bulk(self):
     """
     Delete the bulk prefix action from IDA.
     """
     idaapi.unregister_action(self.ACTION_BULK)
     idaapi.free_custom_icon(self._bulk_icon_id)
     self._bulk_icon_id = idaapi.BADADDR
Exemplo n.º 6
0
 def _del_action_recursive(self):
     """
     Delete the recursive rename action from IDA.
     """
     idaapi.unregister_action(self.ACTION_RECURSIVE)
     idaapi.free_custom_icon(self._recursive_icon_id)
     self._recursive_icon_id = idaapi.BADADDR
Exemplo n.º 7
0
    def Free(self):
        # Call the base
        Form.Free(self)

        # Free icon
        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
            self.icon_id = 0
Exemplo n.º 8
0
    def Free(self):
        del self.EChMain.form
        del self.EChAux.form

        # Call base
        Form.Free(self)

        # Free icon
        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
            self.icon_id = 0
Exemplo n.º 9
0
    def Free(self):
        del self.EChMain.form
        del self.EChAux.form

        # Call base
        Form.Free(self)

        # Free icon
        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
            self.icon_id = 0
Exemplo n.º 10
0
    def _uninstall_open_coverage_xref(self):
        """
        Remove the right click 'Coverage Xref' context menu entry.
        """
        self._ui_hooks.unhook()

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

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

        logger.info("Uninstalled the 'Coverage Xref' 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_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")
Exemplo n.º 13
0
    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
Exemplo n.º 14
0
 def _del_action_bulk(self):
     idaapi.unregister_action(self.ACTION_BULK)
     idaapi.free_custom_icon(self._bulk_icon_id)
     self._bulk_icon_id = idaapi.BADADDR
Exemplo n.º 15
0
    def term(self):

        ConfigStingray.destory()

        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
Exemplo n.º 16
0
 def __del__(self):
     if self._icon:
         idaapi.free_custom_icon(self._icon)
Exemplo n.º 17
0
    def term(self):

        Config.destory()

        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
Exemplo n.º 18
0
 def term(self):
     # Free the custom icon
     if self.icon_id != 0:
         idaapi.free_custom_icon(self.icon_id)
Exemplo n.º 19
0
    def term(self):

        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
Exemplo n.º 20
0
 def term(self):
     # Free the custom icon
     if self.icon_id != 0:
         idaapi.free_custom_icon(self.icon_id)
Exemplo n.º 21
0
Arquivo: Reef.py Projeto: darx0r/Reef
    def term( self ):

        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)