예제 #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
예제 #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
예제 #3
0
파일: ida_prefix.py 프로젝트: lucasg/prefix
 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
예제 #4
0
파일: ida_prefix.py 프로젝트: lucasg/prefix
 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
예제 #5
0
파일: ida_prefix.py 프로젝트: lucasg/prefix
 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
예제 #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
예제 #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
예제 #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
예제 #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
예제 #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")
예제 #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
예제 #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
예제 #15
0
    def term(self):

        ConfigStingray.destory()

        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
예제 #16
0
 def __del__(self):
     if self._icon:
         idaapi.free_custom_icon(self._icon)
예제 #17
0
    def term(self):

        Config.destory()

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

        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
예제 #20
0
 def term(self):
     # Free the custom icon
     if self.icon_id != 0:
         idaapi.free_custom_icon(self.icon_id)
예제 #21
0
파일: Reef.py 프로젝트: darx0r/Reef
    def term( self ):

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