[CTFHUB] Late check-in questions

XOR all the characters in the string and
change the file name to the file you downloaded online

with open('task', 'rb') as f:
    b = f.readlines()
print(b)
c = b''
for i in b:
    c += i
print(c)
data = list(c)
print(data)
for k in range(200):

    flag = ""

    for i in range(len(data)):
        flag += chr(data[i] ^ ord('f'))  # 与f的ASCII码进行异或
        print(flag)

Guess you like

Origin blog.csdn.net/solitudi/article/details/108237038