Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 822 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 822 Bytes

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