两种方法:
ida打开,一直找到最后的函数打开,发现是运算,还有个输出,猜测这就是flag的输出,拿出来写个脚本运行
a = []
file = open('a.txt','r');
for lines in file:
line = lines.strip(";\n").split("=")[1].strip()
a.append(int(line))
b = []
file = open('b.txt','r');
for lines in file:
line = lines.strip(";\n").split("=")[1].strip()
b.append(int(line))
s=""
for index in range(len(a)):
s+=(chr(a[index]^b[index]^0x13))
print(s)
得到flag:zsctf{T9is_tOpic_1s_v5ry_int7resting_b6t_others_are_n0t}