当前位置:网站首页>Ida Pro reverse tool finds the IP and port of the socket server
Ida Pro reverse tool finds the IP and port of the socket server
2022-07-07 15:36:00 【Xiaoxiangzai】
When reverse analyzing code , Sometimes we need to find some software provided by the server ip:port.
Use IDA pro Decompiled code , Find the socket setting code , Find what we expect IP and port Where is the number
What should we do then ?
First step : Turn the address information into 16 A positive number in hexadecimal
Check the number , Right click selection invert sign and Hexadecimal.


The second step :ip The address is converted to an integer
Use the online address translation tool to ip The address is converted to an integer

If you want to write it yourself C Language code implementation , have access to atoi function , Refer to this article :
The third step : Byte order conversion
There are four kinds of byte order conversion functions
htons : take 16 Wei Wu Symbolic integers are converted from local byte order to network byte order
htonl : take 32 Wei Wu Symbolic integers are converted from local byte order to network byte order
ntohs : take 16 Wei Wu Symbolic integers are converted from network byte order to local byte order
ntohl : take 32 Wei Wu Symbolic integers are converted from network byte order to local byte order
You can also do it by hand .
there IP yes 1.0.0.127 -> 127.0.0.1
there port yes 0xA822 -> 0x228A = 8872
边栏推荐
- Connecting FTP server tutorial
- 【原创】一切不谈考核的管理都是扯淡!
- Oracle控制文件丢失恢复归档模式方法
- Win10 or win11 taskbar, automatically hidden and transparent
- 【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类
- Implementation of crawling web pages and saving them to MySQL using the scrapy framework
- Oracle control file loss recovery archive mode method
- 使用Scrapy框架爬取网页并保存到Mysql的实现
- Ctfshow, information collection: web6
- Ctfshow, information collection: web2
猜你喜欢

简述keepalived工作原理

【数字IC验证快速入门】26、SystemVerilog项目实践之AHB-SRAMC(6)(APB协议基本要点)

微信小程序 01

There is a cow, which gives birth to a heifer at the beginning of each year. Each heifer has a heifer at the beginning of each year since the fourth year. Please program how many cows are there in the

Bye, Dachang! I'm going to the factory today

【深度学习】图像超分实验:SRCNN/FSRCNN

Summer safety is very important! Emergency safety education enters kindergarten

#HPDC智能基座人才发展峰会随笔

Win10 or win11 taskbar, automatically hidden and transparent

【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
随机推荐
【数字IC验证快速入门】19、SystemVerilog学习之基本语法6(线程内部通信...内含实践练习)
Why do we use UTF-8 encoding?
CTFshow,信息搜集:web7
Database exception resolution caused by large table delete data deletion
Ctfshow, information collection: web8
HW primary flow monitoring, what should we do
Basic knowledge sorting of mongodb database
【数字IC验证快速入门】23、SystemVerilog项目实践之AHB-SRAMC(3)(AHB协议基本要点)
CTFshow,信息搜集:web9
Used by Jetson AgX Orin canfd
【深度学习】语义分割实验:Unet网络/MSRC2数据集
What are the safest securities trading apps
Ctfshow, information collection: web10
【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
【数字IC验证快速入门】26、SystemVerilog项目实践之AHB-SRAMC(6)(APB协议基本要点)
Oracle控制文件丢失恢复归档模式方法
最安全的证券交易app都有哪些
Niuke real problem programming - day16
2.Golang基础知识
What is data leakage