当前位置:网站首页>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。

边栏推荐
- Locate to the bottom [easy to understand]
- Guessing game (read data from file)
- USB (十八)2022-04-17
- 智慧社区和智慧城市之间有什么异同
- Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
- Network security -beef
- 二叉树(Binary Tree)
- Introduction to anomaly detection
- 解决:信息中插入avi格式的视频时,提示“unsupported video format”
- Handling file exceptions
猜你喜欢

Are the microorganisms in the intestines the same as those on the skin?

I wish you all the best and the year of the tiger

Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!

leetcode-520. 检测大写字母-js

When copying something from the USB flash disk, an error volume error is reported. Please run CHKDSK

微信论坛交流小程序系统毕业设计毕设(4)开题报告

聊聊支付流程的设计与实现逻辑

微信论坛交流小程序系统毕业设计毕设(3)后台功能

Wechat forum exchange applet system graduation design completion (4) opening report

UE4_UE5结合罗技手柄(F710)使用记录
随机推荐
13、 System optimization
解决:信息中插入avi格式的视频时,提示“unsupported video format”
Unity3D学习笔记5——创建子Mesh
ArcGIS: two methods of attribute fusion of the same field of vector elements
网络安全-burpsuit
UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
UE4_UE5全景相机
Oracle-数据库的备份与恢复
2021-01-12
USB(十四)2022-04-12
Binary tree
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
USB(十六)2022-04-28
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to JSP-1
Bea-3xxxxx error code
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
Technology at home and abroad people "see" the future of audio and video technology
Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram