Check whether an IP address belongs to a cloud provider
Project description
CloudCheck
A simple Python utility to check whether an IP address belongs to a cloud provider.
cloud_providers.json
contains up-to-date lists of CIDRs for each cloud provider (updated weekly via CI/CD).
Used by Bighuge BLS OSINT Tool (BBOT).
Installation
pip install cloudcheck
Usage - CLI
$ cloudcheck 168.62.20.37
168.62.20.37 belongs to Azure (cloud) (168.62.0.0/19)
$ cloudcheck 104.16.0.1
104.16.0.1 belongs to Cloudflare (cdn) (104.16.0.0/13)
Usage - Python
import cloudcheck
provider, provider_type, subnet = cloudcheck.check("168.62.20.37")
print(provider) # "Azure"
print(provider_type) # "cloud"
print(subnet) # IPv4Network('168.62.0.0/19')
Supported cloud providers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cloudcheck-2.0.0.30.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-2.0.0.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65e38b2bd3ce91f9606968db0814a60196474de5a8cfbf5930a4c77c299c577e |
|
MD5 | c76eeb2ccefa71eb7ca5d2a10ac2f9c1 |
|
BLAKE2b-256 | 9655f60905702da6568a98cbb89f27dc9930a17c7880ae3fea9b6a029d61dd58 |