Character
Challenge
Explications
Script de résolution
from pwnlib.tubes.remote import remote
def solve(host, port):
client = remote(host, port)
client.recvuntil(b'Enter an index: ')
flag = ''
while not flag.endswith('}'):
client.sendline(f'{len(flag)}'.encode())
data = client.recvuntil(b'Enter an index: ')
flag += data.decode().splitlines()[0].split(': ')[1].strip()
print(f'Flag: {flag}')
if __name__ == '__main__':
solve('94.237.60.39', 44111)Mis à jour