from pwn import *

# set arch (default x86)
context.arch = "amd64"
# set terminal for GDB
context.terminal = ["mate-terminal", "-e"]

# build shellcode
#payload = asm("""
#ASSEMBLY GOES HERE
#""")

# start as subprocess
p = process("./leet_name_gen")
# gdb.attach(p)

print p.recvuntil(">>")
p.sendline("Andrea")

print p.recv() # read remaining output

# profit
p.interactive()
p.close()
