def ea_view(): global h global form global a a = QtWidgets.QFrame() form = View_UI() form.setupUi(a) form.textEdit.setReadOnly(True) form.textEdit_2.setReadOnly(True) form.listWidget.itemClicked.connect(select_item) form.listWidget.itemClicked.connect(select_item) form.pushButton.clicked.connect(dump_state) form.pushButton_2.clicked.connect(clear) form.pushButton_3.clicked.connect(rewind) form.textEdit.setLineWrapMode(form.textEdit.NoWrap) form.textEdit_2.setLineWrapMode(form.textEdit.NoWrap) form.spinBox.valueChanged.connect(lambda x: change_stack_length(x)) form.spinBox.setValue(config["stack_display_length"]) a.closeEvent = close a.show() a_sync(anchor_scrollbar) h = Hook() h.hook()
def set_config(restart): global b b = QtWidgets.QWidget() form = Set_Offset_UI() form.setupUi(b) b.show() form.pushButton.clicked.connect(lambda: get_text(form, restart))
def ea_cmd(): global a global form a = QtWidgets.QFrame() form = Cmd_UI() form.setupUi(a) form.textEdit.setReadOnly(True) form.lineEdit.returnPressed.connect(do_cmd) form.pushButton.clicked.connect(do_cmd) a.show()
def ea_heap(): global form global a global item_no global hook global main_arena_addr global malloc_addr if "ELF" not in get_file_type_name(): ea_warning("Executable must be ELF fomat (glibc)") else: if main_arena_offset == 0 and malloc_offset == 0: set_config(True) else: if not is_debugger_on(): ea_warning("Application must be running") else: base_addr = get_main_arena() if not base_addr: ea_warning("Could not find C Library in Segments") else: malloc_addr = find_ins("ret", base_addr + malloc_offset) main_arena_addr = base_addr + main_arena_offset a = QtWidgets.QWidget() form = Heap_UI() form.setupUi(a) form.textEdit.setReadOnly(True) form.textEdit_2.setReadOnly(True) a.show() hook = Hook() hook.hook() a.closeEvent = lambda x: hook.unhook() form.listWidget.itemClicked.connect(select_bin) form.listWidget_3.itemClicked.connect(select_bin) form.listWidget_2.itemClicked.connect( lambda x: select_chunk(x, chunkmap)) form.listWidget_4.itemClicked.connect( lambda x: select_chunk(x, chunkmap_2)) form.pushButton_2.clicked.connect( lambda: set_config(False)) form.pushButton.clicked.connect(get_malloc_state) form.checkBox.stateChanged.connect( lambda x: (add_bp(malloc_addr, 10), hook.hook()) if x else (add_bp(malloc_addr, 2), hook.unhook())) get_malloc_state()
def ea_view(): global h global form global a global style style = ( ("<style> " r"div{") + (r"color:white;background-color:#212121;" if config["current_skin"][0] not in ("1c1c2a", "212121") else "") + ( "font-family:Hack;font-size:14px}\n" ".title{font-family:Ariel;font-size:14px;padding-top:1000px;}\n" ".blue{color:'#00FFFF'}" ".red{}" ".green{color:'#C4F0C5'}" ".yellow{color:'#737DFF'}" "</style>") ) a = QtWidgets.QFrame() form = View_UI() form.setupUi(a) form.textEdit.setReadOnly(True) form.textEdit_2.setReadOnly(True) form.listWidget.itemClicked.connect(select_item) form.listWidget.itemClicked.connect(select_item) form.pushButton.clicked.connect(dump_state) form.pushButton_2.clicked.connect(clear) form.pushButton_3.clicked.connect(rewind) form.textEdit.setLineWrapMode(form.textEdit.NoWrap) form.textEdit_2.setLineWrapMode(form.textEdit.NoWrap) form.spinBox.valueChanged.connect(lambda x: change_stack_length(x)) form.spinBox.setValue(config["stack_display_length"]) a.closeEvent = close a.show() a_sync(anchor_scrollbar) h = Hook(send) h.hook()
def ea_emulate(): global form global a global server_running if not server_running: launch_server() a = QtWidgets.QFrame() form = Emulate_UI() form.setupUi(a) if hooked: form.checkBox.click() form.checkBox.stateChanged.connect(toggle_hooking) form.pushButton.clicked.connect(a.close) form.pushButton_2.clicked.connect(send) form.checkBox_3.stateChanged.connect(set_annotate) form.checkBox_2.stateChanged.connect(set_server_print) # a.setWindowFlags(a.windowFlags() | QtCore.Qt.WindowStaysOnTopHint) a.closeEvent = close_server a.show()