Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
    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()