当前位置:网站首页>RE1 attack and defense world reverse
RE1 attack and defense world reverse
2022-07-07 23:18:00 【Day-3】
This question has no shell , Throw in IDA Check the source code , The source code is confusing , After modification, it is shown as follows :
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(" Welcome to DUTCTF yo \n");
printf(&byte_633E60);
printf(" Input flag Well :");
scanf("%s", v6);
v3 = strcmp(v5, v6);
if ( v3 )
v3 = v3 < 0 ? -1 : 1;
if ( v3 )
printf("flag Not quite right , Try again , Come on \n");
else
printf("flag get√\n");
system("pause");
return 0;
}
At this time, the code logic is relatively clear , It is to compare the content we input with the content it generates , The same is deemed to be submitted accurately flag, At this time, our task is to check v5 The content in , So we do dynamic debugging , It's easy to find flag.
边栏推荐
- Inftnews | web5 vs Web3: the future is a process, not a destination
- USB (十七)2022-04-15
- Clean C disk
- 30讲 线性代数 第五讲 特征值与特征向量
- Txt file virus
- 位运算(Bit Operation)
- 聊聊支付流程的设计与实现逻辑
- ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
- 嵌入式音频开发中的两种曲线
- Install Fedora under RedHat
猜你喜欢
Wechat forum exchange applet system graduation design completion (4) opening report
Wechat forum exchange applet system graduation design (3) background function
Unity3D学习笔记5——创建子Mesh
Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?
leetcode-520. 检测大写字母-js
微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
UE4_UE5全景相机
七月第一周
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
随机推荐
Introduction to anomaly detection
2021-01-11
解决:信息中插入avi格式的视频时,提示“unsupported video format”
PMP项目管理考试过关口诀-1
Technology at home and abroad people "see" the future of audio and video technology
Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
U盘拷贝东西时,报错卷错误,请运行chkdsk
微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
leetcode-520. 检测大写字母-js
Handling file exceptions
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
Conversion between commonsmultipartfile and file
USB(十六)2022-04-28
JMeter interface automated test read case, execute and write back result
Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
2021ICPC上海 H.Life is a Game Kruskal重构树
Are the microorganisms in the intestines the same as those on the skin?
1. Sum of two numbers
网络安全-对操作系统进行信息查询
十四、数据库的导出和导入的两种方法