自学内容网 自学内容网

re题(36)BUUCTF-[WUSTCTF2020]Cr0ssfun

BUUCTF在线评测 (buuoj.cn)

查一下壳,64位elf文件

ctrl+e找到main()函数

只进行了一个比较函数,看一下check()

猜测是a1中存放的flag,往下继续查看函数

把a1中存的数据都给出来了

写个脚本,输出一下a1,直接就是我们要的flag

a1 = 33*[0]
a1[1] = 99
a1[25] = 64
a1[27] = 101
a1[4] = 50
a1[17] = 114
a1[29] = 102
a1[17] = 114
a1[24] = 95
a1[2] = 116
a1[9] = 99
a1[32] = 125
a1[19] = 118
a1[5] = 48
a1[14] = 110
a1[15] = 100
a1[8] = 123
a1[18] = 51
a1[28] = 95
a1[21] = 114
a1[0] = 119
a1[6] = 50
a1[22] = 115
a1[31] = 110
a1[12] = 95
a1[7] = 48
a1[16] = 95
a1[11] = 112
a1[23] = 101
a1[30] = 117
a1[10] = 112
a1[13] = 64
a1[3] = 102
a1[26] = 114
a1[20] = 101
flag = ''
for i in range(0,len(a1)):
    flag += chr(a1[i])
print(flag)


#wctf2020{cpp_@nd_r3verse_@re_fun}

本题考察了一个对数据的提取,可以手动提取,也可以用ida python提取(数据多的话建议使用)IDAPython入门教程 基于IDA7.5_Python3 第一讲 简介与地址获取 - iBinary - 博客园 (cnblogs.com)


原文地址:https://blog.csdn.net/2301_80907001/article/details/142383618

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!