简体   繁体   English

从 ASN 输入获取 IP 地址范围?

[英]Get IP address ranges from ASN input?

Its possible to get all the IP address ranges from an ASN to my knowledge, but what about getting all IP addresses that belong to an ASN?据我所知,可以从 ASN 获取所有 IP 地址范围,但是如何获取属于 ASN 的所有 IP 地址呢? and could you figure out who the range belongs to as well?你能找出范围属于谁吗?

I have seen solutions in Unix but is this doable in Python?我在 Unix 中看到了解决方案,但这在 Python 中可行吗?

This is a script I found for doing this process in Unix but I'd prefer Python if possible这是我在 Unix 中找到的用于执行此过程的脚本,但如果可能的话我更喜欢 Python

$ whois -h whois.radb.net -- '-i origin ASN' | grep -Eo "([0-9.]+){4}/[0-9]+" | head

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM