当前位置:网站首页>IDA pro逆向工具寻找socket server的IP和port
IDA pro逆向工具寻找socket server的IP和port
2022-07-07 12:48:00 【晓翔仔】
在逆向分析代码的时候,我们有时需要找到某软件做服务端时提供的ip:port。
使用IDA pro反编译代码,找到套接字设置的代码处,发现我们期待的IP和port的地方是数字
这时我们该怎么办呢?
第一步:将地址信息转为16进制的正数
选中数字,右击选择invert sign和Hexadecimal。
第二步:ip地址转为整数
使用在线地址转换工具将ip地址转为整数
如果你想自己编写C语言代码实现,可以使用atoi函数,参考这篇文章:
C语言实现字符串IP与整数型IP的相互转换 - 丁培飞 - 博客园
第三步:字节序转换
字节序转换函数主要有四种
htons :将16位无 符号整数从本地字节序转换成网络字节序
htonl :将32位无 符号整数从本地字节序转换成网络字节序
ntohs :将16位无 符号整数从网络字节序转换成本地字节序
ntohl :将32位无 符号整数从网络字节序转换成本地字节序
你也可以直接手算。
这里的IP是 1.0.0.127 -> 127.0.0.1
这里的port是0xA822 -> 0x228A = 8872
边栏推荐
- Delete a whole page in word
- Instructions for mictr01 tester vibrating string acquisition module development kit
- Cocos creator direction and angle conversion
- 电脑Win7系统桌面图标太大怎么调小
- Lidar knowledge drops
- Es log error appreciation -- allow delete
- Instructions d'utilisation de la trousse de développement du module d'acquisition d'accord du testeur mictr01
- EfficientNet模型的完整细节
- 安恒堡垒机如何启用Radius双因素/双因子(2FA)身份认证
- PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight
猜你喜欢
Base64 encoding
Five pain points for big companies to open source
什么是云原生?这回终于能搞明白了!
Navigation — 这么好用的导航框架你确定不来看看?
Pandora IOT development board learning (HAL Library) - Experiment 12 RTC real-time clock experiment (learning notes)
STM32CubeMX,68套组件,遵循10条开源协议
leetcode:648. Word replacement [dictionary tree board + find the shortest matching prefix among several prefixes]
内部排序——插入排序
Leetcode one question per day (636. exclusive time of functions)
潘多拉 IOT 开发板学习(HAL 库)—— 实验12 RTC实时时钟实验(学习笔记)
随机推荐
Today's sleep quality record 78 points
多商戶商城系統功能拆解01講-產品架構
Es log error appreciation -maximum shards open
Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an
[server data recovery] a case of RAID data recovery of a brand StorageWorks server
Source code analysis of ArrayList
Démontage de la fonction du système multi - Merchant Mall 01 - architecture du produit
Mmkv use and principle
一文读懂数仓中的pg_stat
Ascend 910 realizes tensorflow1.15 to realize the Minist handwritten digit recognition of lenet network
【历史上的今天】7 月 7 日:C# 发布;Chrome OS 问世;《仙剑奇侠传》发行
小程序目录结构
JS in the browser Base64, URL, blob mutual conversion
用于增强压缩视频质量的可变形卷积密集网络
What is cloud primordial? This time, I can finally understand!
大厂做开源的五大痛点
激光雷达lidar知识点滴
Pytorch model trains practical skills and breaks through the bottleneck of speed
Instructions for mictr01 tester vibrating string acquisition module development kit
2022 cloud consulting technology series high availability special sharing meeting