Tags: programming
Rating: 5.0
*This code will help you get the flag*
```
from pwn import *
from string import ascii_lowercase
host = 'code.deadface.io'
port = 50000
def receive_response(r, amt, is_word=False):
for _ in range(amt):
response = r.recvline().decode()
print(response)
if is_word:
return response.split(':')[1].strip()
chars = {}
for num in range(len(ascii_lowercase)):
chars.update({ascii_lowercase[num]: num})
with remote(host, port) as r:
receive_response(r, 5)
word = receive_response(r, 1, True)
answer = str(sum([chars.get(el) for el in word]))
r.sendline((answer + '\n').encode())
receive_response(r, 2)
```