当前位置:网站首页>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。
边栏推荐
- Matlab-SEIR传染病模型预测
- Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
- Installing vmtools is gray
- js 获取对象的key和value
- Adrnoid开发系列(二十五):使用AlertDialog创建各种类型的对话框
- GEE(三):计算两个波段间的相关系数与相应的p值
- kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
- Network security - information query of operating system
- Bit operation
- Matlab 信号处理【问答随笔·2】
猜你喜欢
微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
leetcode-520. 检测大写字母-js
Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
ArcGIS: two methods of attribute fusion of the same field of vector elements
Wechat forum exchange applet system graduation design (5) assignment
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
微信论坛交流小程序系统毕业设计毕设(3)后台功能
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
随机推荐
opencv scalar传入三个参数只能显示黑白灰问题解决
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
网络安全-永恒之蓝
CXF call reports an error. Could not find conduct initiator for address:
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
I wish you all the best and the year of the tiger
Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram
13、 System optimization
leetcode-520. Detect capital letters -js
【编译原理】词法分析设计实现
Network security - phishing
Two kinds of curves in embedded audio development
Opencv scalar passes in three parameters, which can only be displayed in black, white and gray. Solve the problem
648. 单词替换
./ setup. Insufficient sh permission
Install Fedora under RedHat
[untitled] reprint melting ice - track icedid server with a few simple steps
1. Sum of two numbers
Specific method example of V20 frequency converter manual automatic switching (local remote switching)
STL标准模板库(Standard Template Library)一周学习总结