コード例 #1
0
ファイル: calls.py プロジェクト: wflk/idataco
    def initVars(self):
        self._call_table = qt.qtablewidget()()
        self._call_table.setEditTriggers(qt.qabstractitemview().NoEditTriggers)
        self._call_table.setRowCount(0)
        self._call_table.setColumnCount(6)
        self._call_table.setHorizontalHeaderLabels(["Category","Caller","Parent  Caller","API","Return","Args"])
        self.clipboard = qt.qclipboard()
        self.setupTableContextMenu()
        self._marked_up = set()
        self._checkbox_map = {}

        # call color picker setup
        self._color_picker = qt.qcolordialog()()
        self._color_picker.setCurrentColor(qt.qcolor()(0xff,165,0x0))
        self._color_picker.blockSignals(True)
        self._color_picker.currentColorChanged.connect(self.chooseColor)
        self._color_picker.blockSignals(False)
        self._color_button = qt.qpushbutton()("")
        self._color_button.setStyleSheet("font-size:15px;background-color:#ffa500; border: 2px solid #222222")
        self._color_button.setFixedSize(15, 15)
        self._color_button.clicked.connect(self._color_picker.open)

        # func color picker setup
        self._func_color_picker = qt.qcolordialog()()
        self._func_color_picker.setCurrentColor(qt.qcolor()(0xff, 0xff, 0xff))
        self._func_color_picker.blockSignals(True)
        self._func_color_picker.currentColorChanged.connect(self.chooseFuncColor)
        self._func_color_picker.blockSignals(False)
        self._func_color_button = qt.qpushbutton()("")
        self._func_color_button.setStyleSheet("font-size:15px;background-color:#ffffff; border: 2px solid #222222")
        self._func_color_button.setFixedSize(15, 15)
        self._func_color_button.clicked.connect(self._func_color_picker.open)
コード例 #2
0
ファイル: byte_strings.py プロジェクト: arbor-jjones/idataco
 def initVars(self):
     self.byte_strings = {}
     self._bytestring_table = qt.qtablewidget()()
     self._bytestring_table.setRowCount(1)
     self._bytestring_table.setColumnCount(3)
     self._bytestring_table.setHorizontalHeaderLabels(("Address", "Function", "String"))
     self._clipboard = qt.qclipboard()
コード例 #3
0
ファイル: calls.py プロジェクト: 453483289/idataco
    def initVars(self):
        self._call_table = qt.qtablewidget()()
        self._call_table.setEditTriggers(qt.qabstractitemview().NoEditTriggers)
        self._call_table.setRowCount(0)
        self._call_table.setColumnCount(6)
        self._call_table.setHorizontalHeaderLabels(["Category","Caller","Parent  Caller","API","Return","Args"])
        self.clipboard = qt.qclipboard()
        self.setupTableContextMenu()
        self._marked_up = set()
        self._checkbox_map = {}

        # call color picker setup
        self._color_picker = qt.qcolordialog()()
        self._color_picker.setCurrentColor(qt.qcolor()(0xff,165,0x0))
        self._color_picker.blockSignals(True)
        self._color_picker.currentColorChanged.connect(self.chooseColor)
        self._color_picker.blockSignals(False)
        self._color_button = qt.qpushbutton()("")
        self._color_button.setStyleSheet("font-size:15px;background-color:#ffa500; border: 2px solid #222222")
        self._color_button.setFixedSize(15, 15)
        self._color_button.clicked.connect(self._color_picker.open)

        # func color picker setup
        self._func_color_picker = qt.qcolordialog()()
        self._func_color_picker.setCurrentColor(qt.qcolor()(0xff, 0xff, 0xff))
        self._func_color_picker.blockSignals(True)
        self._func_color_picker.currentColorChanged.connect(self.chooseFuncColor)
        self._func_color_picker.blockSignals(False)
        self._func_color_button = qt.qpushbutton()("")
        self._func_color_button.setStyleSheet("font-size:15px;background-color:#ffffff; border: 2px solid #222222")
        self._func_color_button.setFixedSize(15, 15)
        self._func_color_button.clicked.connect(self._func_color_picker.open)
コード例 #4
0
 def initVars(self):
     self.byte_strings = {}
     self._bytestring_table = qt.qtablewidget()()
     self._bytestring_table.setRowCount(1)
     self._bytestring_table.setColumnCount(3)
     self._bytestring_table.setHorizontalHeaderLabels(("Address", "Function", "String"))
     self._clipboard = qt.qclipboard()
コード例 #5
0
ファイル: imports.py プロジェクト: arbor-jjones/idataco
    def initVars(self):
        self._import_table = qt.qtablewidget()()
        self._import_table.setEditTriggers(qt.qabstractitemview().NoEditTriggers)
        self._import_table.setRowCount(0)
        self._import_table.setColumnCount(6)
        self._import_table.setHorizontalHeaderLabels(["Address", "DLL", "ProcName", "ProcAddress", "Type", "IDA Name"])
        self._import_table.setContextMenuPolicy(qt.qtcore().Qt.ActionsContextMenu)
        copyAction = qt.qaction()(self._import_table)
        copyAction.setText("Copy Cell Value")
        copyAction.triggered.connect(self.copyToClipboard)
        self._import_table.addAction(copyAction)
        renameAction = qt.qaction()(self._import_table)
        renameAction.setText("Rename DWORDs to Proc Name")
        renameAction.triggered.connect(self.renameDword)
        self._import_table.addAction(renameAction)

        self.clipboard = qt.qclipboard()
コード例 #6
0
ファイル: imports.py プロジェクト: nihilus/idataco
    def initVars(self):
        self._import_table = qt.qtablewidget()()
        self._import_table.setEditTriggers(qt.qabstractitemview().NoEditTriggers)
        self._import_table.setRowCount(0)
        self._import_table.setColumnCount(6)
        self._import_table.setHorizontalHeaderLabels(["Address","DLL","ProcName","ProcAddress","Type","IDA Name"])
        self._import_table.setContextMenuPolicy(qt.qtcore().Qt.ActionsContextMenu)
        copyAction = qt.qaction()(self._import_table)
        copyAction.setText("Copy Cell Value")
        copyAction.triggered.connect(self.copyToClipboard)
        self._import_table.addAction(copyAction)
        renameAction = qt.qaction()(self._import_table)
        renameAction.setText("Rename DWORDs to Proc Name")
        renameAction.triggered.connect(self.renameDword)
        self._import_table.addAction(renameAction)

        self.clipboard = qt.qclipboard()