当前位置:网站首页>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.
边栏推荐
- Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
- 微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
- 成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
- About idea cannot find or load the main class
- 漏洞复现----49、Apache Airflow 身份验证绕过 (CVE-2020-17526)
- Matlab-SEIR传染病模型预测
- Wechat forum exchange applet system graduation design (3) background function
- 网络安全-beef
- How to operate DTC community?
- Txt file virus
猜你喜欢
Inftnews | web5 vs Web3: the future is a process, not a destination
Wechat forum exchange applet system graduation design completion (4) opening report
ROS2专题(03):ROS1和ROS2的区别【01】
Wechat forum exchange applet system graduation design (2) applet function
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
Wechat forum exchange applet system graduation design (5) assignment
Talk about the design and implementation logic of payment process
【编译原理】词法分析设计实现
七月第一周
Cases of agile innovation and transformation of consumer goods enterprises
随机推荐
Brush question 3
经纬度PLT文件格式说明
[untitled] reprint melting ice - track icedid server with a few simple steps
Unity dynamically merges mesh textures
I wish you all the best and the year of the tiger
系统架构设计师备考经验分享:论文出题方向
opencv scalar传入三个参数只能显示黑白灰问题解决
kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
JS triangle
Network security sqlmap and DVWA explosion
What are the similarities and differences between smart communities and smart cities
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
【微服务|SCG】gateway整合sentinel
CAIP2021 初赛VP
USB (十八)2022-04-17
Unity3D学习笔记4——创建Mesh高级接口
30讲 线性代数 第五讲 特征值与特征向量
网络安全-burpsuit
How to generate unique file names