1.下载附件,先查壳,无壳
2.用IDA分析,找到main函数,使用fn+f5,反编译
3.分析代码
4.双击进入条件函数中查看代码
5.编写代码,来源:
https://blog.csdn.net/2303_80796023/article/details/137086655?ops_request_misc=%257B%2522request
#include<stdio.h> int main() { char str1[] = "Dufhbmf"; char str2[] = "pG`imos"; //拆成三个数组,str1,str2,str3 char str3[] = "ewUglpt"; char result; for (int i = 0; i <= 11; i++) { if (i % 3 == 0) { result = str1[2 * (i / 3)] - 1; } else if (i % 3 == 1) { result = str2[2 * (i / 3)] - 1; } else { result = str3[2 * (i / 3)] - 1; } printf("%c", result); } return 0; }
6.运行得flag
Code_Talkers