コード例 #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
ファイル: formchooser.py プロジェクト: killbug2004/IDAplugins
    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
ファイル: formchooser.py プロジェクト: bronxc/IDAplugins-1
    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")
コード例 #11
0
    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")
コード例 #12
0
    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
ファイル: actions.py プロジェクト: fcccode/IDAConnect
    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
ファイル: Stingray.py プロジェクト: trietptm/Stingray
    def term(self):

        ConfigStingray.destory()

        if self.icon_id != 0:
            idaapi.free_custom_icon(self.icon_id)
コード例 #16
0
ファイル: base.py プロジェクト: gitter-badger/rematch
 def __del__(self):
     if self._icon:
         idaapi.free_custom_icon(self._icon)
コード例 #17
0
ファイル: Stingray.py プロジェクト: unixfreaxjp/Stingray
    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
ファイル: VirusTotal.py プロジェクト: EiNSTeiN-/idapython
 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)