cloudcheck-2.0.0.36
توضیحات
Check whether an IP address belongs to a cloud provider
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cloudcheck-2.0.0.36 |
| نام | cloudcheck |
| نسخه کتابخانه | 2.0.0.36 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | TheTechromancer |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cloudcheck/ |
| مجوز | GPL-3.0 |
# 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)](https://github.com/blacklanternsecurity/bbot).
## Installation
~~~bash
pip install cloudcheck
~~~
## Usage - CLI
~~~bash
$ 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
~~~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
- Amazon ([source](https://ip-ranges.amazonaws.com/ip-ranges.json))
- Azure ([source](https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519))
- Google ([source](https://www.gstatic.com/ipranges/cloud.json))
- Oracle Cloud ([source](https://docs.cloud.oracle.com/en-us/iaas/tools/public_ip_ranges.json))
- DigitalOcean ([source](http://digitalocean.com/geo/google.csv))
- Cloudflare ([source](https://api.cloudflare.com/client/v4/ips))
- Akamai ([source](https://techdocs.akamai.com/property-manager/pdfs/akamai_ipv4_ipv6_CIDRs-txt.zip))
- Github ([source](https://api.github.com/meta))
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.2,<3.0.0 | requests |
| >=0.9.7,<0.10.0 | requests-cache |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl cloudcheck-2.0.0.36:
pip install cloudcheck-2.0.0.36.whl
نصب پکیج tar.gz cloudcheck-2.0.0.36:
pip install cloudcheck-2.0.0.36.tar.gz