当前位置:网站首页>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。
边栏推荐
- Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
- USB (十八)2022-04-17
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- 智慧社区和智慧城市之间有什么异同
- Inftnews | the wide application of NFT technology and its existing problems
- Wechat forum exchange applet system graduation design completion (6) opening defense ppt
- Network security -burpsuit
- PMP项目管理考试过关口诀-1
- Network security -beef
- opencv scalar传入三个参数只能显示黑白灰问题解决
猜你喜欢
Wechat forum exchange applet system graduation design (3) background function
ArcGIS: two methods of attribute fusion of the same field of vector elements
【编译原理】词法分析设计实现
Database daily question --- day 22: last login
Wechat forum exchange applet system graduation design completion (6) opening defense ppt
Brush question 4
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
14、 Two methods of database export and import
js 获取对象的key和value
leetcode-520. Detect capital letters -js
随机推荐
Solution: prompt "unsupported video format" when inserting avi format video into the message
智慧社区和智慧城市之间有什么异同
UE4_UE5全景相机
Technology at home and abroad people "see" the future of audio and video technology
[record of question brushing] 3 Longest substring without duplicate characters
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
One question per day - pat grade B 1002 questions
UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
Install a new version of idea. Double click it to open it
Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
Network security - Eternal Blue
三菱PLC slmp(mc)协议
FPGA基础篇目录
[microservices SCG] gateway integration Sentinel
网络安全-CSRF
Wechat forum exchange applet system graduation design (5) assignment
Introduction to anomaly detection
How to operate DTC community?
【微服务|SCG】gateway整合sentinel