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

边栏推荐
- Opencv scalar passes in three parameters, which can only be displayed in black, white and gray. Solve the problem
- Redhat下安装fedora
- Quelles sont les similitudes et les différences entre les communautés intelligentes et les villes intelligentes?
- 网络安全-burpsuit
- Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
- GEE(四):计算两个变量(影像)之间的相关性并绘制散点图
- GEE(三):计算两个波段间的相关系数与相应的p值
- 网络安全-安装CentOS
- 经纬度PLT文件格式说明
- Install Fedora under RedHat
猜你喜欢

Wechat forum exchange applet system graduation design completion (7) Interim inspection report

Matlab-SEIR传染病模型预测

When copying something from the USB flash disk, an error volume error is reported. Please run CHKDSK

Wechat forum exchange applet system graduation design completion (4) opening report

Matlab 信号处理【问答随笔·2】

ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值

Software test classification

Cases of agile innovation and transformation of consumer goods enterprises

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

Specific method example of V20 frequency converter manual automatic switching (local remote switching)
随机推荐
网络安全-sqlmap与DVWA爆破
Clean C disk
Coreseek:第二步建索引及測试
Inftnews | the wide application of NFT technology and its existing problems
14、 Two methods of database export and import
STL标准模板库(Standard Template Library)一周学习总结
Wechat forum exchange applet system graduation design (5) assignment
网络安全-联合查询注入
经纬度PLT文件格式说明
USB (十七)2022-04-15
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
Txt file virus
About idea cannot find or load the main class
648. 单词替换
定位到最底部[通俗易懂]
Brush question 6
iNFTnews | NFT技术的广泛应用及其存在的问题
微信论坛交流小程序系统毕业设计毕设(1)开发概要
How to generate unique file names
Network security sqlmap and DVWA explosion