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.32.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-2.0.0.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de9117a1536b2b5a40d17832757052347820f94c13e33dbadad5cb15fe429e4 |
|
MD5 | 62d03861ed0304dea2d8e8debe54410c |
|
BLAKE2b-256 | 6ea877768a2234ada47f4055b9f61043424b29c3a7a8a5dd4e587ece25dfa931 |