HGAME2020-re-Level-Week1- advance
新手一枚,如有错误(不足)请指正,谢谢!!
<mark>个人博客:点击进入</mark>
题目链接:HGAME2020-re-Level-Week1- advance
题目下载:点击下载
IDA64位载入
shift+F12查询字符串
交叉引用到关键代码
程序将用户输入后进行base64加密,然后与字符串进行比较,写脚本
import base64
data = "0g371wvVy9qPztz7xQ+PxNuKxQv74B/5n/zwuPfX"
zf = "abcdefghijklmnopqrstuvwxyz0123456789+/ABCDEFGHIJKLMNOPQRSTUVWXYZ"
biao = str.maketrans(zf,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")
data1 = data.translate(biao)
flag = str(base64.b64decode(data1.encode('utf-8')),'utf-8')
print(flag)
得到flag为hgame{b45e6a_i5_50_eazy_6VVSQ}