The Count
El problema
└─$ nc code.deadface.io 50000
DEADFACE gatekeeper: Let us see how good your programming skills are.
If a = 0, b = 1, c = 2, etc.. Tell me what the sum of this word is:
You have 5 seconds to give me an answer.
Your word is: attend
Too slow!! Word has been reset!
Stop wasting my time.
Connection Closed.
Solución
from pwn import *
def sumWords(palabra):
suma=0
for i in palabra:
suma += ord(i)-(ord('a'))
return suma
p = remote('code.deadface.io', 50000)
word = p.recvlines(6)[5].split(b': ')
suma = sumWords(word[1].decode('utf'))
log.info('Word: '+ word[1].decode('utf') + ' | Sum: ' + str(suma))
p.sendline(str(suma).encode())
p.recvline()
log.info('Flag >> ' + p.recvline().decode('utf'))
p.close()Last updated