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)
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()
def initVars(self): self._interesting_xors = [] self._interesting_xor_table = qt.qtablewidget()() self._interesting_xor_table.setRowCount(1) self._interesting_xor_table.setColumnCount(3) self._interesting_xor_table.setHorizontalHeaderLabels( ("Function", "Address", "Loop", "Disassembly"))
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()
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()
def initVars(self): self._interesting_xors = [] self._interesting_xor_table = qt.qtablewidget()() self._interesting_xor_table.setRowCount(1) self._interesting_xor_table.setColumnCount(3) self._interesting_xor_table.setHorizontalHeaderLabels(("Function", "Address", "Loop", "Disassembly"))
def __init__(self, parent): qt.qwidget().__init__(self) qt.qtablewidget()() self.parent = parent self.initVars() self.initLayout()
def initVars(self): self._signature_table = qt.qtablewidget()() self._signature_table.setRowCount(0) self._signature_table.setColumnCount(3) self._signature_table.setHorizontalHeaderLabels( ["Signature", "Information", "Severity"])
def initVars(self): self._signature_table = qt.qtablewidget()() self._signature_table.setRowCount(0) self._signature_table.setColumnCount(3) self._signature_table.setHorizontalHeaderLabels(["Signature","Information","Severity"])