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.34.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-2.0.0.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce87b23049deca39c366e00956866c48dc37f1660dadf02acdb54c27e99bbf0 |
|
MD5 | 125f75d4b6df4d734669b27242ef7d40 |
|
BLAKE2b-256 | a32630be5113d573639319391fd3b7d25fefffbdc24dfa11f76075438fe9f8df |