#!/usr/bin/python

from pwn import *

context.arch = 'amd64'
payload = 'C'*8

p = process('./vuln')

while 1:
	p.sendafter("> ", "2")
	p.sendline(payload)
	print(p.recvline())

#p.sendafter("> ", "4")		
p.interactive()

