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

边栏推荐
- 成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
- 网络安全-sqlmap与DVWA爆破
- Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
- 14、 Two methods of database export and import
- ArcGIS:矢量要素相同字段属性融合的两种方法
- Adrnoid开发系列(二十五):使用AlertDialog创建各种类型的对话框
- Introduction to anomaly detection
- 七月第一周
- Inftnews | web5 vs Web3: the future is a process, not a destination
- About idea cannot find or load the main class
猜你喜欢

ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions

微信论坛交流小程序系统毕业设计毕设(7)中期检查报告

ArcGIS: two methods of attribute fusion of the same field of vector elements

iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地

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

U盘拷贝东西时,报错卷错误,请运行chkdsk

Introduction to redis and jedis and redis things

Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?

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

Inftnews | the wide application of NFT technology and its existing problems
随机推荐
Wechat forum exchange applet system graduation design (2) applet function
V20变频器手自动切换(就地远程切换)的具体方法示例
【编译原理】词法分析设计实现
Network security - install CentOS
十四、数据库的导出和导入的两种方法
智慧社区和智慧城市之间有什么异同
Brush question 3
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
The wonderful relationship between message queue and express cabinet
ArcGIS: two methods of attribute fusion of the same field of vector elements
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
Binary tree
1. Sum of two numbers
Specific method example of V20 frequency converter manual automatic switching (local remote switching)
Solution: prompt "unsupported video format" when inserting avi format video into the message
为什么市场需要低代码?
解决:信息中插入avi格式的视频时,提示“unsupported video format”
Talk about the design and implementation logic of payment process
网络安全-对操作系统进行信息查询