defpayload(lo:int): global sh if lo: sh = process(EXE) if lo & 2: gdb.attach(sh) else: sh = remote('222.67.132.186', 21956) libc = ELF('/home/Rocket/glibc-all-in-one/libs/2.27-3ubuntu1.6_amd64/libc.so.6') elf = ELF(EXE)
defgenKey(leng:int) -> bytes: key = 'ddwwwwssdwwssassdwwwsssdww'# a right path to push boxes extend = key[:-2] + 'sw' * ((leng - len(key)) // 2) + key[-1] return extend.encode()