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 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 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-2.1.0.181.tar.gz
(68.8 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-2.1.0.181-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb9ebd5d546038974ed13bd7c9edc83fe481af791bf53decf7ecdd9070deb23a |
|
MD5 | c0927252059040909c9b24b5fcf61f7b |
|
BLAKE2b-256 | 107796ae68163ca54aa060d4b58964c061627f39e908f17d33d47c7fa7403e30 |