from pwn import *
context(arch='amd64', os='linux')
binary            = ELF('server/secretHolder')
conn              = ""

#context.log_level = True
local             = True

if not local:
    conn = remote("52.68.31.117",5556)
else:
    conn = remote("localhost", 1234)



def recvOpt():
    print conn.recvuntil("3.") +  conn.recvline()

def sendLine(option):
    conn.sendline(str(option))
    print(str(option) +"\n")

#There is probably a use after free vulnerability
def setUpMemory():
    recvOpt()
    sendline(1) #create secret
    recvOpt()

#=========set up payload=========
def payload():










if __name__ == "__main__":
    setUpMemory
