https://buuoj.cn/challenges#[WUSTCTF2020]level1

exeinfo: NOT Win EXE - .o - ELF [ 64bit obj. Exe file

从文件读入,判断奇数偶数后输出,已知 output.txt,那就反推回去

output = [0, 198, 232, 816, 200, 1536, 300, 6144, 984, 51200, 570, 92160, 1200, 565248, 756, 1474560, 800, 6291456,  
          1782,  
          65536000]  
  
flag = ""  
  
for i in range(1, len(output)):  
    if i % 2 == 0:  
        flag += chr(output[i] // i)  
    else:  
        flag += chr(output[i] >> i)  
  
print(flag)
ctf2020{d9-dE6-20c}