Rating: 4.0
```
from pwn import *
def int_to_base64(n):
temp = hex(n)[2:].strip("L")
return (("0"*(len(temp)%2))+temp).decode("hex").encode("base64")
r = remote('34.249.127.77',31337)
print r.recvuntil("it\n")
r.sendline("1")
print r.recvuntil("data:\n")
r.sendline("\x00".encode("base64"))
hmac = r.recvline().strip()
print hmac
r.close()
i=0
flag=0
for i in xrange(256):
r = remote('34.249.127.77',31337)
print r.recvuntil("it\n")
r.sendline("1")
print r.recvuntil("data:\n")
r.sendline(int_to_base64(1<