[WUSTCTF2020]level1

真无语啊
加密算法是从 index 1—19
19个数
然后也给了19个数

真服了

with open("./output.txt", "rb") as file:
    data = file.read()

ptr = [0,198,232,816,200,1536,300,6144,984,51200,570,92160,1200,565248,756,1474560,800,6291456,1782,65536000]


print(ptr)

for i in range(1,20):
    if i % 2 != 0:
        ptr[i]=ptr[i] >> i
    else:
        ptr[i]=ptr[i]//i
    print(chr(ptr[i]))
#print(ptr)

flag=""
for x in ptr:
    flag+=chr(x)

print(flag)

你可能感兴趣的:(python,开发语言,re)