Character
Description
Solution
➜ ncat 94.237.62.149 59156
Which character (index) of the flag do you want? Enter an index: 0
Character at Index 0: H
Which character (index) of the flag do you want? Enter an index: 1
Character at Index 1: T
Which character (index) of the flag do you want? Enter an index: 2
Character at Index 2: B
Which character (index) of the flag do you want? Enter an index:from pwn import remote, context
IP = '94.237.62.149'
PORT = 59156
context.log_level = 'WARNING'
io = remote(IP, PORT)
flag = ""
i = 0
while True:
io.sendlineafter(b'index: ', str(i).encode())
char = io.recvline().decode().split(': ')[1].strip()
flag += char
print(flag)
if char == '}': break
i += 1Last updated