天天看点

bugku_love

1.查壳发现无壳,OD载入查看字符串发现提示,尝试爆破发现爆破出来的没有可用内容。在输入字符串处下断点单步调试

bugku_love

2.单步调试发现我们输入的内容被装换为base64

bugku_love
bugku_love

3.继续单步调试发现,我们转换成base64后的内容与[email protected]@dh进行比较,如果相同,就会输出成功,对这串字符串base64解密得flag:

python代码:
import base64
s = "[email protected]@dH"
f = ''
n = len(s)
for i in range(n):
    f += chr(ord(s[i]) - i)
print (f)
print(base64.b64decode(f))