Check whether an IP address belongs to a cloud provider
Project description
CloudCheck
A simple Python utility to check whether an IP address or hostname belongs to a cloud provider.
cloud_providers.json
contains lists of domains and up-to-date CIDRs for each cloud provider (updated daily 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 test.evilcorp.azurewebsites.net
test.evilcorp.azurewebsites.net belongs to Azure (cloud) (azurewebsites.net)
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-3.0.0.275.tar.gz
(105.0 kB
view hashes)
Built Distribution
cloudcheck-3.0.0.275-py3-none-any.whl
(120.2 kB
view hashes)
Close
Hashes for cloudcheck-3.0.0.275-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0929bac3ffc8b0c7ad9b5348e8511893665acfc93a33e03367e953f277083ee6 |
|
MD5 | bf1a52d18e906f869ca89bc53bac6056 |
|
BLAKE2b-256 | 84c73dd9c98dd4ae982ec45af78fae5f96a052edc8cb0c2e9d142bc7c4e09f3b |