拖入ida,是一个base64串,但是用工具还原不了
猜测是密钥变了,此时看到了另一个函数,这个函数改变了base64密钥
写个脚本给他运行一下,后面是改完的key和输出结果
import base64
a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
b = list(a)
for i in range(10):
x = b[i]
b[i] = b[19-i]
b[19-i] = x
c = ''.join(b)
line = 'd2G0ZjLwHjS7DmOzZAY0X2lzX3CoZV9zdNOydO9vZl9yZXZlcnGlfD=='
flag = base64.b64decode(line.translate(str.maketrans(a, c)))
print(flag)
b'TSRQPONMLKJIHGFEDCBAUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
b'wctf2020{Base64_is_the_start_of_reverse}'
标签:WUSTCTF2020,19,base64,flag,level3,line
From: https://www.cnblogs.com/yee-l/p/18302486