当前位置:网站首页>Buuctf-- happy New Year
Buuctf-- happy New Year
2022-06-29 10:38:00 【X.IO】
1. Preprocessing 
Get information
1.upx shell
2.32 Bit file
2. Shelling ( It can be used Shelling tools Shelling , It can also be shelled manually )
Method 1 : Shelling with tools 
Method 2 : Manual shelling
Not yet , Learning
3. Reexamine
Check to see if the shell has been removed 
Chou Chou , There is no shell , And then put in IDA(32), use shift+F12 Find string ,
You can actually use F5 Go directly to the main function , Pseudocode found ,
But I personally like to look for the string first ,
After all , The final flag Is it usually a string !
So first shift+F12 Take a look at , See if there's any clue 
then , double-click ’ this is true flag!' Disassembly 、F5 Decompile found pseudo code 
4. The code analysis
sub_401910();
qmemcpy(&v1, “HappyNewYear!”, 0xEu);
*(_WORD *)Str1 = 0;
memset(&v3, 0, 0x1Eu);
printf(“please input the true flag:”);
scanf("%s", Str1);
if ( !strncmp(Str1, &v1, strlen(&v1)) )
result = puts(“this is true flag!”);
else
result = puts(“wrong!”);
return result;
This main function is relatively simple ,
Just used it. memcpy、memset、strncmp Three functions
flag Obviously flag{HappyNewYear!}
边栏推荐
- 《CLR via C#》读书笔记-单实例应用程序
- Linux下Redis安装及集群搭建
- 攻防世界-Re-insfsay
- Alibaba cloud server is installed and configured with redis. Remote access is unavailable
- C语言库函数--strstr()
- September 17, 2020 gateway business process has two tasks: referer certification and non commodity Templating
- mysql 8.0 一条insert语句的具体执行流程分析(三)
- WinForm uses zxing to generate QR code
- September 23, 2020 left and right values reference std:: move()
- 《如何阅读一本书》读后总结
猜你喜欢

Arc view and arc viewpager

Comment terminer rapidement une partition de disque

Installing and configuring wmware esxi 6.5.0 in VMware Workstation

《CLR via C#》读书笔记-CLR寄宿与AppDomain

Analysis of reentrantlock source code of AQS

由ASP.NET Core根据路径下载文件异常引发的探究

Use of Azkaban in task scheduler

《MongoDB入门教程》第02篇 MongoDB安装

Downloading and installing VMware (basic idea + detailed process)

Recyclerview universal adapter package
随机推荐
September 17, 2020 gateway business process has two tasks: referer certification and non commodity Templating
Talk about threads and concurrency
C language library function --strstr()
Dynamic planning summary
在实践中学习Spark计算框架(00)
《CLR via C#》读书笔记-加载与AppDomain
Software test model (V model and W model)
Learn spark computing framework in practice (00)
AQS之ReentrantLock源码解析
DevExpress的双击获取单元格数据
Text of the basic component of the shutter
IIS server related error
September 23, 2020 left and right values reference std:: move()
Power strings [KMP cycle section]
全面理解Volatile关键字
在VMware workstation中安装WMware ESXi 6.5.0并进行配置
全面理解MESI缓存一致性协议
由ASP.NET Core根据路径下载文件异常引发的探究
C语言库函数--strstr()
2019.10.30 learning summary