Most cloud providers publish up to date lists of their IP address ranges. This tools identifies if an IP belongs to a provider's ranges by fetching and parsing the latest lists.
Supports:
- AWS (source)
- Azure (source)
- Google Cloud Platform (source)
- Alibaba Cloud (currently doesn't publish lists)
- Oracle Cloud Infrastructure (source)
- IBM Cloud (currently doesn't publish lists)
This tool is inspired by Nimbusland by Bryce Kunz.
Setup a virtual environment and install dependencies:
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip -r requirements.txt
Run the tool:
$ python cloud_ip_ranges.py -h
usage: cloud_ip_ranges.py [-h] ip
positional arguments:
ip The IP to evaluate, e.g.: 8.8.8.8
optional arguments:
-h, --help show this help message and exit
$ python cloud_ip_ranges.py 52.4.0.0
2020-09-18 17:38:42 host __main__[21549] INFO Starting
2020-09-18 17:38:42 host __main__[21549] INFO Checking for AWS
2020-09-18 17:38:43 host __main__[21549] INFO Match for AWS range "52.4.0.0/14", region "us-east-1" and service "AMAZON"
2020-09-18 17:38:43 host __main__[21549] INFO Match for AWS range "52.4.0.0/14", region "us-east-1" and service "EC2"
2020-09-18 17:38:43 host __main__[21549] INFO Checking for Azure
2020-09-18 17:38:44 host __main__[21549] INFO Checking for GCP
2020-09-18 17:38:44 host __main__[21549] INFO Checking for OCI
2020-09-18 17:38:44 host __main__[21549] INFO Done