当前位置:网站首页>xtu-ctf Challenges-Reverse 1、2
xtu-ctf Challenges-Reverse 1、2
2022-07-23 11:32:00 【GSflyy】
I have always been interested in network security , But the technology is still unable to get started , Thinking that winter vacation may enable me to officially enter the learning road of network security , The senior said that the tutorial is secondary after all , Brushing questions is fundamental , Now I send you two reverse A simple solution to the problem , My little white level , At present, it is still in the exploratory stage , I hope you guys spray gently
1.FIRST
Title address :http://172.22.114.206:8000/challenges#First
The title has attachments , After downloading, the file name is First.exe
In the PEID Check whether there is a shell , Check no shell , Ready to put directly ida, Start to reverse 
open 32 Bit ida, Select the default loading method 
good , Officially come to the program execution interface 
Direct routine operation , Find string 

Suspicious string found , Double click to the program address where the string is located 
Double click the arrow again , A program execution flowchart appears , There is no need to study , direct f5 Disassembly 
Take a look at the end of the program , There is one strcmp function , Obviously , When two strings are output at the same time congratulations, Then we just need to know what this string is
Inspection procedure , And write a similar program , Make it right str1 Strings do the opposite , You can get str2
Start writing 
Run it , Get the results 
This is it. flag 了
2.SECOND
Title address :http://172.22.114.206:8000/challenges#Second
The biggest difficulty of this problem is to shell …
Also download the source file , Put in PEID Check the shell 
It can be seen that there is a shell , however upx Shell is a relatively simple shell , There are some tools on the Internet that can be shelled directly ( At first I thought od Bypassing the shell , But the technology is not good , I have to find tools )
UPXtools
here , It's like this , Drag the files to be shelled in , Click decompress and then click start , Will generate a shelled file
PEID Check again , See if the shelling is successful 
Good success , Put it in as usual ida Check 
The same is true for the general operation of querying strings , As expected, I found congratulations
Find the same congratulations Part of the program ,f5 After anti compilation, pseudo c as follows :
It doesn't matter if the front doesn't show , It does not affect the reader's understanding of the meaning of the latter part of the program , Compare two strings , If it is identical, output congratulations
therefore , Also write a c Just run the program :
Run it ,flag And then there is 
These two questions are not difficult , The main thing is to have the corresponding tools and master the method of using the tools , Solve the problem and get caught .
边栏推荐
猜你喜欢

数字藏品系统开发/数字藏品方案介绍

Precautions for realizing "real-time data response" on the page

页面实现 “实时数据响应” 的注意事项
![[C language] what is a function? Classification and emphasis of functions (help you quickly classify and remember functions)](/img/3b/39be991aa30b31ff5fb49905de36cf.jpg)
[C language] what is a function? Classification and emphasis of functions (help you quickly classify and remember functions)

MySQL增删改查&&高级查询语句

蚂蚁链NFT数字藏品DAPP商城系统定制开发

ETH转账次数达到一个月高点

sqli-lab 1-16通关随笔记
[email protected]‘] failed with code 1"/>npm init vite-app <project-name> 报错 Install for [‘[email protected]‘] failed with code 1

Vite x sigma creates designer specific I18N plug-ins
随机推荐
数字藏品系统开发:企业布局元宇宙数字藏品
Py program can run, but the packaged exe prompts an error: recursion is detected when loading the "CV2" binary extension. Please check the opencv installation.
手写Promise.resolve,Promise.reject, Promise.all
TypeScript 高级类型
Basis of penetration test
Federal Reserve governor Waller: decentralized finance may eventually change the traditional financial market
Php+ code cloud code hook automatically updates online code
sqli-lab 1-16通关随笔记
slice()和splice()区别
Simple implementation of rectangular area block
MySQL functions & views & import and export
高阶函数的应用:手写Promise源码(三)
sql-labs 5-6通关笔记
Application of higher-order functions: handwritten promise source code (I)
How pycharm packages OCR correctly and makes the packaged exe as small as possible
【C语言】什么是函数?函数的分类和侧重(帮你快速分类和记忆函数)
Custom MVC (Part 1)
数字藏品系统开发/数字藏品方案介绍
蚂蚁链NFT数字藏品DAPP商城系统定制开发
XML modeling