当前位置:网站首页>IP反查域名
IP反查域名
2022-06-10 21:38:00 【天下 (天衍师)】
IP反查域名
ip反查域名的三种方法,方法有很多,我这边只描述三种,也算是两种
1,在线网站 http://stool.chinaz.com/same
2,在线网站 https://site.ip138.com/
3,工具 https://github.com/Sma11New/ip2domain
以下以CSDN解析出来的IP 39.106.226.142为例,实际测试三种方法
1,站长之家 http://stool.chinaz.com/same

7个
2,查询网https://site.ip138.com/

同样也是7个
3,ip2domain工具
只有一个
实际测试结果而言,ip2domain的效果比较拉胯,可能是因为接口过期等原因,此工具即时实在IP大数量需要反查的情况下,仍不具备相应优势,在测试其他网站时,百度,哔哩哔哩等,ip2domain一如既往,但是站长之家会比查询网显示出来的会多一些,个人测试过站长之家和查询网的数据包,站长之家的请求包,会带有一个token值,个人暂未解决,但是查询网并未有相应限制,使用requests和lxml即可成功获取,写了个简单的小脚本,只能说可以用,
import requests
from lxml import etree
header={
'Cache-Control': 'max-age=0"',
'Sec-Ch-Ua': '"(Not(A:Brand";v="8", "Chromium";v="99"',
'Sec-Ch-Ua-Mobile': '?0"',
'Sec-Ch-Ua-Platform': '"Linux"',
'Upgrade-Insecure-Requests': '1',
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Sec-Fetch-Site': 'none',
'Sec-Fetch-Mode': 'navigate',
'Sec-Fetch-User': '?1',
'Sec-Fetch-Dest': 'document',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'en-US,en;q=0.9',
'Connection': 'close'
}
resul=requests.get("https://site.ip138.com/39.106.226.142/",verify=False,headers=header)
html = resul.text
htm=etree.HTML(html,etree.HTMLParser())
result=htm.xpath('//ul[@id="list"]/li/a[@target="_blank"]/text()') #获取a节点下的内容
result1=htm.xpath('//div[@class="result result2"]/h3/text()')
print(result1)
使用时需要修改https://site.ip138.com/39.106.226.142/ 后面的ip即可,还好可以用

边栏推荐
- vulnhub之dc4
- 【TcaplusDB知识库】TcaplusDB查看线上运行情况介绍
- Advanced advanced programmers must know and master Or else, stupid
- [tcapulusdb knowledge base] tcapulusdb machine initialization and launch introduction
- 【TcaplusDB知识库】TcaplusDB查看进程状态介绍
- 【TcaplusDB知识库】TcaplusDB进程启动介绍
- 【TcaplusDB知识库】TcaplusDB TcapDB扩缩容介绍
- How Photoshop opens, edits and exports pictures in webp format
- [tcapulusdb knowledge base] Introduction to tcapulusdb process startup
- [tcapulusdb knowledge base] tcapulusdb tcapproxy capacity expansion introduction
猜你喜欢

【TcaplusDB知识库】TcaplusDB引擎参数调整介绍

【TcaplusDB知识库】TcaplusDB TcapDB扩缩容介绍

Whale conference empowers intelligent epidemic prevention

Matlab - Implementation of evolutionary game theory

Interpreting the registry class of mmcv

Missing heritability

Reading notes on the way of Huawei data

dc_ Study and summary of labs--lab1

1.Tornado简介&&本专栏搭建tornado项目简介

Vulnhub练习 DC-1靶机
随机推荐
汇编:汇编与C派系语言混用以及对应LLDB常用指令
Solution de gestion de la zone pittoresque intelligente pour la réunion des baleines
Can Huawei matepad become the secondary screen of your laptop?
"Draw the bow as strong, use the arrow as long", Manfu technology opens a new track for the data service industry
Keras深度学习实战(8)——使用数据增强提高神经网络性能
[raise bar C #] how to call the base of the interface
Tcapulusdb Jun · industry news collection (IV)
Blue Bridge Cup_ A fool sends a letter_ recursion
[applet] the vant wearp radio radio radio component cannot trigger the bind:change event
Keras deep learning practice (8) -- using data enhancement to improve neural network performance
Opencv_100问_第四章 (16-20)
【TcaplusDB知识库】TcaplusDB shard搬迁介绍
Open source project PM how to design official website
Bottom layer communication protocol ① of single chip microcomputer -- synchronous and asynchronous, parallel and serial, full duplex and half duplex, simplex, level signal and differential signal
[tcapulusdb knowledge base] Introduction to tcapulusdb patrol inspection statistics
Interpreting the registry class of mmcv
Multus CNI deployment and basic use of kubernetes multi network card scheme
Face recognition software based on deepface model
Management solution for whale conference smart scenic spot
Software project management 6.10 Cost budget