Tool that returns all IP address blocks of a given Autonomous System Number (ASN) using ipinfo.io.
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
...
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.
Only returning IPv4 blocks.
Requires .NET Core 3.0
MIT