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

边栏推荐
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- Matlab 信号处理【问答随笔·2】
- Network security CSRF
- 2021ICPC上海 H.Life is a Game Kruskal重构树
- Introduction to anomaly detection
- 648. 单词替换
- Opencv scalar passes in three parameters, which can only be displayed in black, white and gray. Solve the problem
- Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to JSP-1
- 微信论坛交流小程序系统毕业设计毕设(2)小程序功能
- 海内外技术人们“看”音视频技术的未来
猜你喜欢

14、 Two methods of database export and import

成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚

USB(十五)2022-04-14
![[microservices SCG] gateway integration Sentinel](/img/f3/410d7228b4b253ebf41015a785099f.png)
[microservices SCG] gateway integration Sentinel

Wechat forum exchange applet system graduation design completion (6) opening defense ppt

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

Install a new version of idea. Double click it to open it

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

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

Innovation today | five key elements for enterprises to promote innovation
随机推荐
leetcode-520. 检测大写字母-js
Oracle-数据库的备份与恢复
[record of question brushing] 3 Longest substring without duplicate characters
Bea-3xxxxx error code
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
About idea cannot find or load the main class
统计电影票房排名前10的电影并存入还有一个文件
Network security - phishing
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
Clean C disk
1. Sum of two numbers
Adrnoid开发系列(二十五):使用AlertDialog创建各种类型的对话框
网格(Grid)
Brush question 6
Comparison of various development methods of applets - cross end? Low code? Native? Or cloud development?
Install Fedora under RedHat
php 使用阿里云存储
USB (十七)2022-04-15
Network security - Eternal Blue
Wechat forum exchange applet system graduation design completion (1) development outline