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.110.tar.gz
(67.4 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-2.1.0.110-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37f81235bd1077ad851e771f15217235d6ea03b9d954f30d882dfc97d3d467b3 |
|
MD5 | 102bbd1a640152dd42a095aa3e2d5954 |
|
BLAKE2b-256 | e58fdb7b8d1a971016f0d40a96a87a8d1aba94d22adc46f6881b807f6e7182f2 |