# flake8: noqa #!/usr/bin/env python3 from dn3 import * from pwn import asm, disasm exe = ELF("BINARY") l{ libc = ELF("LIBC") }l ctx.binary = exe ctx.terminal = "tmux new-window".split() #ctx.log = 0 #ctx.aslr = False global io breakpoints = ''' break main '''+"continue\n"*1 r{host, port = "HOST",PORT if len(sys.argv) > 1 and sys.argv[1] == "-r": io = remote(host,port) el}rif len(sys.argv) > 1 and sys.argv[1] == "-ng": io = process(exe.path) else: io = gdb(exe.path, gdbscript=breakpoints) DeathNot3(iol{, libc=libc}l) shell()