Beispiel #1
0
 def _treeElementDoubleClicked(self, item, column):
     """
     QTreeWidgetElement callback. Basically it jumps to
     the selected address in IDA disassembly window.
     """
     try:
         # Only interested in addresses
         addr_int = int(item.text(column), 16)
         jump_to_address(addr_int)
         # Paint some color
         item.setBackground(column, QColor('green'))
     except Exception as e:
         self._console_output("[!] That does not look like an address...", err = True)
Beispiel #2
0
    def _tableCellDoubleClicked(self, row, col):
        """
        Most of the info displayed in QTableWidgets represent addresses.
        Default action: try to jump to it.
        """
        it = self.table.item(row, col).text()

        try:
            addr = int(it, 16)
            jump_to_address(addr)

        except ValueError:
            self._console_output("[!] That does not look like an address...", err = True)
            return