Skip to content

Tool that returns all IP address blocks of a given Autonomous System Number (ASN) using ipinfo.io

Notifications You must be signed in to change notification settings

bruno-garcia/IPInfo.IO.IPAddressBlockParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

Tool that returns all IP address blocks of a given Autonomous System Number (ASN) using ipinfo.io.

Example

Retrieves all IP address blocks from Netflix:

$ git clone https://github.com/bruno-garcia/IPInfo.IO.IPAddressBlockParser.git
$ cd IPInfo.IO.IPAddressBlockParser
$ dotnet restore
$ dotnet run -- AS2906
108.175.32.0/20
108.175.32.0/24
...

Motivation

ipinfo.io offers a REST API but at the time of writing does not offer a 'GET' IP Address blocks by ASN. This tool doesn't rely on the HTML structure as it extracts IP blocks in the format 0.0.0.0/0 line by line with Regex.

Limitations

Only returning IPv4 blocks.

Dependencies

Requires .NET Core 3.0

License

MIT

About

Tool that returns all IP address blocks of a given Autonomous System Number (ASN) using ipinfo.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages