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-5.0.1.382.tar.gz
(106.5 kB
view hashes)
Built Distribution
cloudcheck-5.0.1.382-py3-none-any.whl
(122.4 kB
view hashes)
Close
Hashes for cloudcheck-5.0.1.382-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d70eddda993447b30b10fce4ef6ac2d05b54a037d2166d7240b55ebe26fe4331 |
|
MD5 | b00223168649e5addaa1e1ca58213671 |
|
BLAKE2b-256 | ef663980e748a3ac90d3f4156a911e311c39f7e35fa44a07bd0c41e8dc615c73 |