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

边栏推荐
- Solution: prompt "unsupported video format" when inserting avi format video into the message
- Brush question 5
- USB(十五)2022-04-14
- The wonderful relationship between message queue and express cabinet
- Quelles sont les similitudes et les différences entre les communautés intelligentes et les villes intelligentes?
- php 使用阿里云存储
- 云原生数据仓库AnalyticDB MySQL版用户手册
- CAIP2021 初赛VP
- Brush question 6
- Advantages and disadvantages of rest ful API
猜你喜欢

Software test classification

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

Binary tree

STL标准模板库(Standard Template Library)一周学习总结

30讲 线性代数 第五讲 特征值与特征向量

ArcGIS:矢量要素相同字段属性融合的两种方法

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

微信论坛交流小程序系统毕业设计毕设(5)任务书

Technology at home and abroad people "see" the future of audio and video technology

Innovation today | five key elements for enterprises to promote innovation
随机推荐
Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
Why does the market need low code?
云原生数据仓库AnalyticDB MySQL版用户手册
2021-01-11
Bit operation
树后台数据存储(採用webmethod)[通俗易懂]
The 19th Zhejiang Provincial Collegiate Programming Contest 2022浙江省赛 F.EasyFix 主席树
Introduction to anomaly detection
Dynamics 365 find field filtering
Database daily question --- day 22: last login
Grid
kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
./ setup. Insufficient sh permission
Opencv scalar passes in three parameters, which can only be displayed in black, white and gray. Solve the problem
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
JS triangle
Txt file virus
Clean C disk
Guessing game (read data from file)
The 19th Zhejiang Provincial Collegiate Programming Contest VP记录+补题