当前位置:网站首页>re1攻防世界逆向
re1攻防世界逆向
2022-07-07 21:51:00 【Day-3】
此题无壳,丢入IDA中查看源码,源码比较混乱,进过修改后如下所示:
int __cdecl main(int argc, const char **argv, const char **envp)
{
int v3; // eax
char v5[32]; // [esp+0h] [ebp-44h] BYREF
char v6[32]; // [esp+20h] [ebp-24h] BYREF
*(__m128i *)v5 = _mm_loadu_si128((const __m128i *)&xmmword_633E34);
*(_DWORD *)&v5[24] = 0;
strcpy(&v5[16], "DUTCTF}");
*(_WORD *)&v5[28] = 0;
printf("欢迎来到DUTCTF呦\n");
printf(&byte_633E60);
printf("输入flag吧:");
scanf("%s", v6);
v3 = strcmp(v5, v6);
if ( v3 )
v3 = v3 < 0 ? -1 : 1;
if ( v3 )
printf("flag不太对呦,再试试呗,加油呦\n");
else
printf("flag get√\n");
system("pause");
return 0;
}
此时代码逻辑较为清晰,就是比较我们输入的内容和它自己生成的内容,相同则视为提交了准确地flag,此时我们的任务就是查看v5中的内容,所以我们进行动态调试,很轻松的发现了flag。
边栏推荐
- The 19th Zhejiang Provincial Collegiate Programming Contest 2022浙江省赛 F.EasyFix 主席树
- U盘拷贝东西时,报错卷错误,请运行chkdsk
- The 19th Zhejiang Provincial Collegiate Programming Contest VP记录+补题
- Innovation today | five key elements for enterprises to promote innovation
- About idea cannot find or load the main class
- GEE(三):计算两个波段间的相关系数与相应的p值
- UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
- 十四、数据库的导出和导入的两种方法
- GEE(四):计算两个变量(影像)之间的相关性并绘制散点图
- ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
猜你喜欢
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
【微服务|SCG】gateway整合sentinel
Inftnews | web5 vs Web3: the future is a process, not a destination
30讲 线性代数 第五讲 特征值与特征向量
iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
Wechat forum exchange applet system graduation design (2) applet function
PMP项目管理考试过关口诀-1
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
随机推荐
Brush question 6
Network security - information query of operating system
Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
Wechat forum exchange applet system graduation design (3) background function
Grid
Brush question 3
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
The 19th Zhejiang Provincial Collegiate Programming Contest 2022浙江省赛 F.EasyFix 主席树
30讲 线性代数 第五讲 特征值与特征向量
2021ICPC上海 H.Life is a Game Kruskal重构树
iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
What are the similarities and differences between smart communities and smart cities
位运算(Bit Operation)
js 获取对象的key和value
Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
[network] Introduction to C language
PMP project management exam pass Formula-1
Install a new version of idea. Double click it to open it
Talk about DART's null safety feature