当前位置:网站首页>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.
边栏推荐
- 【微服务|SCG】gateway整合sentinel
- 为什么市场需要低代码?
- Advantages and disadvantages of rest ful API
- Unity3D学习笔记6——GPU实例化(1)
- CXF call reports an error. Could not find conduct initiator for address:
- Exploratory data analysis of heartbeat signal
- php 使用阿里云存储
- Locate to the bottom [easy to understand]
- Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
- When copying something from the USB flash disk, an error volume error is reported. Please run CHKDSK
猜你喜欢
二叉树(Binary Tree)
GEE(四):计算两个变量(影像)之间的相关性并绘制散点图
Binary tree
How to operate DTC community?
【微服务|SCG】gateway整合sentinel
Talk about the design and implementation logic of payment process
Wechat forum exchange applet system graduation design (2) applet function
Inftnews | web5 vs Web3: the future is a process, not a destination
Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!
UE4_UE5全景相机
随机推荐
智慧社区和智慧城市之间有什么异同
Dynamics 365 find field filtering
Why does the market need low code?
FreeLink开源呼叫中心设计思想
Unity3D学习笔记6——GPU实例化(1)
网络安全-联合查询注入
Unity3D学习笔记5——创建子Mesh
2021ICPC上海 H.Life is a Game Kruskal重构树
Brush question 6
Bea-3xxxxx error code
Network security - Eternal Blue
Network security - phishing
Unity3D学习笔记4——创建Mesh高级接口
Bit operation
Talk about the design and implementation logic of payment process
Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
三菱PLC slmp(mc)协议
微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
How to operate DTC community?
FPGA基础篇目录