cloudcheck 8.4.3__cp312-cp312-musllinux_1_2_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cloudcheck/__init__.py +3 -0
- cloudcheck/cloudcheck.cpython-312-x86_64-linux-musl.so +0 -0
- cloudcheck/helpers.py +249 -0
- cloudcheck/providers/__init__.py +51 -0
- cloudcheck/providers/akamai.py +33 -0
- cloudcheck/providers/alibaba.py +11 -0
- cloudcheck/providers/amazon.py +37 -0
- cloudcheck/providers/arvancloud.py +20 -0
- cloudcheck/providers/azure.py +37 -0
- cloudcheck/providers/backblaze.py +11 -0
- cloudcheck/providers/base.py +269 -0
- cloudcheck/providers/cisco.py +39 -0
- cloudcheck/providers/cloudflare.py +40 -0
- cloudcheck/providers/cloudfront.py +18 -0
- cloudcheck/providers/dell.py +11 -0
- cloudcheck/providers/digitalocean.py +30 -0
- cloudcheck/providers/fastly.py +22 -0
- cloudcheck/providers/github.py +28 -0
- cloudcheck/providers/google.py +61 -0
- cloudcheck/providers/heroku.py +7 -0
- cloudcheck/providers/hetzner.py +18 -0
- cloudcheck/providers/hpe.py +12 -0
- cloudcheck/providers/huawei.py +17 -0
- cloudcheck/providers/ibm.py +57 -0
- cloudcheck/providers/imperva.py +24 -0
- cloudcheck/providers/kamatera.py +17 -0
- cloudcheck/providers/oracle.py +31 -0
- cloudcheck/providers/ovh.py +15 -0
- cloudcheck/providers/rackspace.py +21 -0
- cloudcheck/providers/salesforce.py +15 -0
- cloudcheck/providers/scaleway.py +15 -0
- cloudcheck/providers/tencent.py +15 -0
- cloudcheck/providers/wasabi.py +15 -0
- cloudcheck/providers/zoho.py +25 -0
- cloudcheck-8.4.3.dist-info/METADATA +157 -0
- cloudcheck-8.4.3.dist-info/RECORD +38 -0
- cloudcheck-8.4.3.dist-info/WHEEL +4 -0
- cloudcheck.libs/libgcc_s-6d2d9dc8.so.1 +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Imperva(BaseProvider):
|
|
6
|
+
v2fly_company: str = ""
|
|
7
|
+
domains: List[str] = ["imperva.com"]
|
|
8
|
+
tags: List[str] = ["waf"]
|
|
9
|
+
# {"org_id": "IMPER-62-ARIN", "org_name": "IMPERVA INC", "country": "US", "asns": [62571]}
|
|
10
|
+
org_ids: List[str] = [
|
|
11
|
+
"IMPER-62-ARIN",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
_ips_url = "https://my.imperva.com/api/integration/v1/ips"
|
|
15
|
+
|
|
16
|
+
def fetch_cidrs(self):
|
|
17
|
+
response = self.request(self._ips_url)
|
|
18
|
+
ranges = set()
|
|
19
|
+
data = response.json()
|
|
20
|
+
for ipv4 in data.get("ipRanges", []):
|
|
21
|
+
ranges.add(ipv4)
|
|
22
|
+
for ipv6 in data.get("ipv6Ranges", []):
|
|
23
|
+
ranges.add(ipv6)
|
|
24
|
+
return list(ranges)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Kamatera(BaseProvider):
|
|
6
|
+
tags: List[str] = ["cloud"]
|
|
7
|
+
# {"org_id": "KAMAT-ARIN", "org_name": "Kamatera, Inc.", "country": "US", "asns": [36007,54913,396948,396949]}
|
|
8
|
+
# {"org_id": "ORG-KI35-RIPE", "org_name": "Kamatera Inc", "country": "US", "asns": [41436,204548,210329,215728]}
|
|
9
|
+
# {"org_id": "ORG-KI4-AP-APNIC", "org_name": "Kamatera, Inc.", "country": "US", "asns": [64022]}
|
|
10
|
+
org_ids: List[str] = [
|
|
11
|
+
"KAMAT-ARIN",
|
|
12
|
+
"ORG-KI35-RIPE",
|
|
13
|
+
"ORG-KI4-AP-APNIC",
|
|
14
|
+
]
|
|
15
|
+
domains: List[str] = [
|
|
16
|
+
"kamatera.com",
|
|
17
|
+
]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Oracle(BaseProvider):
|
|
6
|
+
v2fly_company: str = "oracle"
|
|
7
|
+
tags: List[str] = ["cloud"]
|
|
8
|
+
# {"org_id": "ORACLE-4-ARIN", "org_name": "Oracle Corporation", "country": "US", "asns": [90,1630,3457,4184,4191,4192,6142,7160,10884,11049,11479,11506,11625,11887,13832,14506,14544,14919,15135,15179,18837,18916,20037,20054,22435,29976,31898,31925,33517,36282,40921,46403,46558,54253,63295,393218,393314,393676,393773,395010,395738,399966,401341]}
|
|
9
|
+
# {"org_id": "ORACLE-4-Z-ARIN", "org_name": "Oracle Corporation", "country": "US", "asns": [792,793,794,1215,1216,1217,1218,1219]}
|
|
10
|
+
# {"org_id": "ORG-OAI2-RIPE", "org_name": "Oracle America Inc.", "country": "US", "asns": [34135]}
|
|
11
|
+
# {"org_id": "ORG-OC1-AP-APNIC", "org_name": "Oracle Corporation", "country": "US", "asns": [23885,24185,38538,136025]}
|
|
12
|
+
# {"org_id": "ORG-OCMS1-AP-APNIC", "org_name": "ORACLE CUSTOMER MANAGEMENT SOLUTIONS PTY. LTD.", "country": "AU", "asns": [138207]}
|
|
13
|
+
# {"org_id": "ORG-OSA29-RIPE", "org_name": "Oracle Svenska AB", "country": "SE", "asns": [15519,39467,43894,43898,52019,57748,60285,200705,200981,203267,206209]}
|
|
14
|
+
org_ids: List[str] = [
|
|
15
|
+
"ORACLE-4-ARIN",
|
|
16
|
+
"ORACLE-4-Z-ARIN",
|
|
17
|
+
"ORG-OAI2-RIPE",
|
|
18
|
+
"ORG-OC1-AP-APNIC",
|
|
19
|
+
"ORG-OCMS1-AP-APNIC",
|
|
20
|
+
"ORG-OSA29-RIPE",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
_ips_url = "https://docs.oracle.com/en-us/iaas/tools/public_ip_ranges.json"
|
|
24
|
+
|
|
25
|
+
def fetch_cidrs(self):
|
|
26
|
+
response = self.request(self._ips_url)
|
|
27
|
+
ranges = set()
|
|
28
|
+
for region in response.json()["regions"]:
|
|
29
|
+
for cidr in region["cidrs"]:
|
|
30
|
+
ranges.add(cidr["cidr"])
|
|
31
|
+
return list(ranges)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class OVH(BaseProvider):
|
|
6
|
+
tags: List[str] = ["cloud"]
|
|
7
|
+
# {"org_id": "ORG-OS3-RIPE", "org_name": "OVH SAS", "country": "FR", "asns": [16276,35540]}
|
|
8
|
+
org_ids: List[str] = [
|
|
9
|
+
"ORG-OS3-RIPE",
|
|
10
|
+
]
|
|
11
|
+
domains: List[str] = [
|
|
12
|
+
"ovh",
|
|
13
|
+
"ovh.com",
|
|
14
|
+
"ovhcloud.com",
|
|
15
|
+
]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Rackspace(BaseProvider):
|
|
6
|
+
tags: List[str] = ["cloud"]
|
|
7
|
+
# {"org_id": "ORG-BEN1-RIPE", "org_name": "D-hosting die Rackspace & Connectivity GmbH", "country": "DE", "asns": [44716]}
|
|
8
|
+
# {"org_id": "ORG-RA33-RIPE", "org_name": "Rackspace Ltd.", "country": "GB", "asns": [15395,39921,44009]}
|
|
9
|
+
# {"org_id": "ORG-RGG2-RIPE", "org_name": "Rackspace Germany GmbH", "country": "DE", "asns": [213735,213740]}
|
|
10
|
+
# {"org_id": "ORG-RHKL1-AP-APNIC", "org_name": "Rackspace.com Hong Kong Limited", "country": "HK", "asns": [45187,58683]}
|
|
11
|
+
# {"org_id": "RACKS-8-ARIN", "org_name": "Rackspace Hosting", "country": "US", "asns": [10532,12200,19994,22720,27357,33070,33439,36248,54636,397485]}
|
|
12
|
+
org_ids: List[str] = [
|
|
13
|
+
"ORG-BEN1-RIPE",
|
|
14
|
+
"ORG-RA33-RIPE",
|
|
15
|
+
"ORG-RGG2-RIPE",
|
|
16
|
+
"ORG-RHKL1-AP-APNIC",
|
|
17
|
+
"RACKS-8-ARIN",
|
|
18
|
+
]
|
|
19
|
+
domains: List[str] = [
|
|
20
|
+
"rackspace.com",
|
|
21
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Salesforce(BaseProvider):
|
|
6
|
+
v2fly_company: str = "salesforce"
|
|
7
|
+
tags: List[str] = ["cloud"]
|
|
8
|
+
# {"org_id": "ORG-SI12-AP-APNIC", "org_name": "SalesForce.com, Inc.", "country": "US", "asns": [45422,133869,133942]}
|
|
9
|
+
# {"org_id": "SALES-44-ARIN", "org_name": "Salesforce, Inc.", "country": "US", "asns": [393517,396417]}
|
|
10
|
+
# {"org_id": "SALESF-3-ARIN", "org_name": "Salesforce.com, Inc.", "country": "US", "asns": [14340,22606,32542,32870,394808]}
|
|
11
|
+
org_ids: List[str] = [
|
|
12
|
+
"ORG-SI12-AP-APNIC",
|
|
13
|
+
"SALES-44-ARIN",
|
|
14
|
+
"SALESF-3-ARIN",
|
|
15
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Scaleway(BaseProvider):
|
|
6
|
+
tags: List[str] = ["cloud"]
|
|
7
|
+
# {"org_id": "ORG-TT1-RIPE", "org_name": "SCALEWAY S.A.S.", "country": "FR", "asns": [12876,29447,202023]}
|
|
8
|
+
# {"org_id": "SUC-48-ARIN", "org_name": "SCALEWAY US CORPORATION", "country": "US", "asns": [54265]}
|
|
9
|
+
org_ids: List[str] = [
|
|
10
|
+
"ORG-TT1-RIPE",
|
|
11
|
+
"SUC-48-ARIN",
|
|
12
|
+
]
|
|
13
|
+
domains: List[str] = [
|
|
14
|
+
"scaleway.com",
|
|
15
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Tencent(BaseProvider):
|
|
6
|
+
v2fly_company: str = "tencent"
|
|
7
|
+
tags: List[str] = ["cloud"]
|
|
8
|
+
# {"org_id": "ORG-STCS1-AP-APNIC", "org_name": "Shenzhen Tencent Computer Systems Company Limited", "country": "CN", "asns": [132203,132591]}
|
|
9
|
+
# {"org_id": "ORG-TCCC1-AP-APNIC", "org_name": "Tencent Cloud Computing (Beijing) Co., Ltd", "country": "CN", "asns": [133478]}
|
|
10
|
+
# {"org_id": "ORG-TCL14-AP-APNIC", "org_name": "Tencent (Thailand) Company Limited", "country": "TH", "asns": [137876]}
|
|
11
|
+
org_ids: List[str] = [
|
|
12
|
+
"ORG-STCS1-AP-APNIC",
|
|
13
|
+
"ORG-TCCC1-AP-APNIC",
|
|
14
|
+
"ORG-TCL14-AP-APNIC",
|
|
15
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Wasabi(BaseProvider):
|
|
6
|
+
tags: List[str] = ["cloud"]
|
|
7
|
+
# {"org_id": "BLUEA-2-ARIN", "org_name": "Wasabi Technologies, Inc.", "country": "US", "asns": [395717]}
|
|
8
|
+
# {"org_id": "ORG-WTI2-AP-APNIC", "org_name": "Wasabi Technologies Inc.", "country": "US", "asns": [140642]}
|
|
9
|
+
org_ids: List[str] = [
|
|
10
|
+
"BLUEA-2-ARIN",
|
|
11
|
+
"ORG-WTI2-AP-APNIC",
|
|
12
|
+
]
|
|
13
|
+
domains: List[str] = [
|
|
14
|
+
"wasabi.com",
|
|
15
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from cloudcheck.providers.base import BaseProvider
|
|
2
|
+
from typing import List
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Zoho(BaseProvider):
|
|
6
|
+
v2fly_company: str = "zoho"
|
|
7
|
+
# {"org_id": "ORG-ZCB1-RIPE", "org_name": "ZOHO Corporation B.V", "country": "NL", "asns": [205111]}
|
|
8
|
+
# {"org_id": "ORG-ZCPL1-AP-APNIC", "org_name": "ZOHO Corporation Private Limited", "country": "IN", "asns": [56201]}
|
|
9
|
+
# {"org_id": "ORG-ZCPL2-AP-APNIC", "org_name": "Zoho Corporation PTY LTD", "country": "AU", "asns": [139006]}
|
|
10
|
+
# {"org_id": "ORG-ZCPL4-AP-APNIC", "org_name": "ZOHO CORPORATION PTE. LTD.", "country": "SG", "asns": [135102]}
|
|
11
|
+
# {"org_id": "ORG-ZJC1-AP-APNIC", "org_name": "Zoho Japan Corporation", "country": "JP", "asns": [141757]}
|
|
12
|
+
# {"org_id": "ORG-ZSTL1-RIPE", "org_name": "Zoho Software Trading LLC", "country": "AE", "asns": [214227]}
|
|
13
|
+
# {"org_id": "ZCC-22-ARIN", "org_name": "Zoho Canada Corporation", "country": "CA", "asns": [401636]}
|
|
14
|
+
# {"org_id": "ZOHOC-ARIN", "org_name": "ZOHO", "country": "US", "asns": [2639,397849,400780]}
|
|
15
|
+
tags: List[str] = ["cloud"]
|
|
16
|
+
org_ids: List[str] = [
|
|
17
|
+
"ORG-ZCB1-RIPE",
|
|
18
|
+
"ORG-ZCPL1-AP-APNIC",
|
|
19
|
+
"ORG-ZCPL2-AP-APNIC",
|
|
20
|
+
"ORG-ZCPL4-AP-APNIC",
|
|
21
|
+
"ORG-ZJC1-AP-APNIC",
|
|
22
|
+
"ORG-ZSTL1-RIPE",
|
|
23
|
+
"ZCC-22-ARIN",
|
|
24
|
+
"ZOHOC-ARIN",
|
|
25
|
+
]
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cloudcheck
|
|
3
|
+
Version: 8.4.3
|
|
4
|
+
Summary: Detailed database of cloud providers. Instantly look up a domain or IP address
|
|
5
|
+
Requires-Python: >=3.9
|
|
6
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
7
|
+
|
|
8
|
+
# CloudCheck
|
|
9
|
+
|
|
10
|
+
[](https://www.python.org)
|
|
11
|
+
[](https://pypi.org/project/cloudcheck/)
|
|
12
|
+
[](https://www.rust-lang.org)
|
|
13
|
+
[](https://crates.io/crates/cloudcheck)
|
|
14
|
+
[](https://github.com/blacklanternsecurity/cloudcheck/blob/stable/LICENSE)
|
|
15
|
+
[](https://github.com/astral-sh/ruff)
|
|
16
|
+
[](https://github.com/blacklanternsecurity/cloudcheck/actions/workflows/rust-tests.yml)
|
|
17
|
+
[](https://github.com/blacklanternsecurity/cloudcheck/actions/workflows/python-tests.yml)
|
|
18
|
+
[](https://github.com/blacklanternsecurity/cloudcheck/actions/workflows/pipeline-tests.yml)
|
|
19
|
+
|
|
20
|
+
### UPDATE: Now rewritten in Rust, with [34 supported cloud providers](#supported-cloud-providers)!
|
|
21
|
+
|
|
22
|
+
CloudCheck is a simple Rust tool to check whether an IP address or hostname belongs to a cloud provider. It includes:
|
|
23
|
+
|
|
24
|
+
- A Rust CLI
|
|
25
|
+
- A Rust library
|
|
26
|
+
- Python bindings
|
|
27
|
+
|
|
28
|
+
## Cloud Provider Signatures
|
|
29
|
+
|
|
30
|
+
The latest cloud provider signatures are available in [`cloud_providers_v2.json`](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloud_providers_v2.json), which is updated daily via CI/CD. Domains associated with each cloud provider are fetched dynamically from the [v2fly community repository](https://github.com/v2fly/domain-list-community), and CIDRs are fetched from [ASNDB](https://asndb.api.bbot.io/).
|
|
31
|
+
|
|
32
|
+
Used by [BBOT](https://github.com/blacklanternsecurity/bbot) and [BBOT Server](https://github.com/blacklanternsecurity/bbot-server).
|
|
33
|
+
|
|
34
|
+
## CLI Usage
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# installation
|
|
38
|
+
cargo install cloudcheck
|
|
39
|
+
|
|
40
|
+
# usage
|
|
41
|
+
cloudcheck 8.8.8.8
|
|
42
|
+
# output:
|
|
43
|
+
{
|
|
44
|
+
"name": "Google",
|
|
45
|
+
"tags": [
|
|
46
|
+
"cloud"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
cloudcheck asdf.amazon.com
|
|
51
|
+
# output:
|
|
52
|
+
{
|
|
53
|
+
"name": "Amazon",
|
|
54
|
+
"tags": [
|
|
55
|
+
"cloud"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Python Library Usage
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# installation
|
|
64
|
+
pip install cloudcheck
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
import asyncio
|
|
69
|
+
from cloudcheck import CloudCheck
|
|
70
|
+
|
|
71
|
+
async def main():
|
|
72
|
+
cloudcheck = CloudCheck()
|
|
73
|
+
results = await cloudcheck.lookup("8.8.8.8")
|
|
74
|
+
print(results) # [{'name': 'Google', 'tags': ['cloud']}]
|
|
75
|
+
|
|
76
|
+
asyncio.run(main())
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Rust Library Usage
|
|
80
|
+
|
|
81
|
+
```toml
|
|
82
|
+
# Add to Cargo.toml
|
|
83
|
+
[dependencies]
|
|
84
|
+
cloudcheck = "8.0"
|
|
85
|
+
tokio = { version = "1", features = ["full"] }
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
```rust
|
|
89
|
+
use cloudcheck::CloudCheck;
|
|
90
|
+
|
|
91
|
+
#[tokio::main]
|
|
92
|
+
async fn main() {
|
|
93
|
+
let cloudcheck = CloudCheck::new();
|
|
94
|
+
let results = cloudcheck.lookup("8.8.8.8").await.unwrap();
|
|
95
|
+
println!("{:?}", results); // [CloudProvider { name: "Google", tags: ["cloud"] }]
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Update the JSON database
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
export BBOT_IO_API_KEY=<your-api-key>
|
|
103
|
+
|
|
104
|
+
uv sync
|
|
105
|
+
uv run cloudcheck_update/cli.py
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Adding a new cloud provider
|
|
109
|
+
|
|
110
|
+
When adding a new cloud provider:
|
|
111
|
+
|
|
112
|
+
1. Create a new file in the `cloudcheck/providers` directory and name it whatever you want, e.g. `amazon.py`.
|
|
113
|
+
2. Inside that file, create a new class that inherits from `BaseProvider`.
|
|
114
|
+
3. Inside that class, fill out any of the following attributes that are relevant to your provider:
|
|
115
|
+
- `v2fly_company`: The company name for v2fly domain fetching. This will dynamically fetch domains from the v2fly community repository, whose purpose is to keep track of domain ownership across different companies.
|
|
116
|
+
- `org_ids`: A list of organization IDs from ASNDB. These are always preferable to hard-coded ASNs or CIDRs, since they are updated daily from live sources. Big companies like Amazon typically have one organization ID per Regional Internet Registries (ARIN, RIPE, APNIC, LACNIC, AFRINIC), and within that organization ID, they may have multiple ASNs.
|
|
117
|
+
- `asns`: A list of ASNs, e.g. `[12345, 67890]`
|
|
118
|
+
- `cidrs`: A list of CIDRs, e.g. `["1.2.3.4/32", "5.6.7.8/32"]` (it's always preferred to use `org_ids` or if necessary `asns` over manually-specified CIDRs)
|
|
119
|
+
- `domains`: A list of domains, e.g. `["amazon.com", "amazon.co.uk"]` (it's always preferred to use `v2fly_company` instead of hard-coding domains)
|
|
120
|
+
- `tags`: A list of tags for the provider. These are used in BBOT to tag IPs, DNS names etc. that match this provider. Examples: `cloud`, `cdn`, `waf`, etc.
|
|
121
|
+
- `regexes`: A dictionary of regexes for the provider. These are used in BBOT to extract / validate cloud resources like storage buckets. Currently valid regexes are:
|
|
122
|
+
- `STORAGE_BUCKET_NAME`: A regex for the name of a storage bucket (useful when brute-forcing bucket names, as you can discard invalid bucket names early).
|
|
123
|
+
- `STORAGE_BUCKET_HOSTNAME`: A regex for the hostname of a storage bucket
|
|
124
|
+
|
|
125
|
+
In addition to the above attributes, if you have a custom source of CIDRs or domains, you can override the `fetch_cidrs()` or `fetch_domains()` methods (which by default return an empty list) to go fetch your custom TXT/JSON file, etc.
|
|
126
|
+
|
|
127
|
+
## Supported cloud providers
|
|
128
|
+
- Akamai ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/akamai.py))
|
|
129
|
+
- Alibaba ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/alibaba.py))
|
|
130
|
+
- Amazon ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/amazon.py))
|
|
131
|
+
- Arvancloud ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/arvancloud.py))
|
|
132
|
+
- Azure ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/azure.py))
|
|
133
|
+
- Backblaze ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/backblaze.py))
|
|
134
|
+
- Cisco ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/cisco.py))
|
|
135
|
+
- Cloudflare ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/cloudflare.py))
|
|
136
|
+
- Cloudfront ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/cloudfront.py))
|
|
137
|
+
- Dell ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/dell.py))
|
|
138
|
+
- DigitalOcean ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/digitalocean.py))
|
|
139
|
+
- Fastly ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/fastly.py))
|
|
140
|
+
- GitHub ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/github.py))
|
|
141
|
+
- Google ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/google.py))
|
|
142
|
+
- Heroku ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/heroku.py))
|
|
143
|
+
- Hetzner ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/hetzner.py))
|
|
144
|
+
- HPE ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/hpe.py))
|
|
145
|
+
- Huawei ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/huawei.py))
|
|
146
|
+
- IBM ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/ibm.py))
|
|
147
|
+
- Imperva ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/imperva.py))
|
|
148
|
+
- Kamatera ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/kamatera.py))
|
|
149
|
+
- Oracle Cloud ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/oracle.py))
|
|
150
|
+
- OVH ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/ovh.py))
|
|
151
|
+
- Rackspace ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/rackspace.py))
|
|
152
|
+
- Salesforce ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/salesforce.py))
|
|
153
|
+
- Scaleway ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/scaleway.py))
|
|
154
|
+
- Tencent ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/tencent.py))
|
|
155
|
+
- Wasabi ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/wasabi.py))
|
|
156
|
+
- Zoho ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/zoho.py))
|
|
157
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
cloudcheck-8.4.3.dist-info/METADATA,sha256=i6TjeTO7xOgom5MM2rxMDtVwvjt4mlBXePSJRV7xkXA,9051
|
|
2
|
+
cloudcheck-8.4.3.dist-info/WHEEL,sha256=Ap6nlw0cH0rhF7wSMkRKCr81qRCCUY4y7-Tz6vs1yZ4,108
|
|
3
|
+
cloudcheck.libs/libgcc_s-6d2d9dc8.so.1,sha256=K3sghe0OS1atTYJSB8m0plft2csyIC36q20Ii8UMudc,536145
|
|
4
|
+
cloudcheck/__init__.py,sha256=Bhl6yAlOs8SFIL9Qw-EX8QGeHWeKfo7_IyXOeAefMgU,61
|
|
5
|
+
cloudcheck/cloudcheck.cpython-312-x86_64-linux-musl.so,sha256=kKswtqDLBFhlADrrPqlRRm4dh9qvtssAaF3jjoD-Aws,10702849
|
|
6
|
+
cloudcheck/helpers.py,sha256=WQElEwBVpClsdDPXtA8ru-z4g2xubw1-0MpIvslSHvU,7635
|
|
7
|
+
cloudcheck/providers/__init__.py,sha256=rcROp4mie54ZqAOOALUKvRSjA4CA0XISizD6nK6q0H0,1684
|
|
8
|
+
cloudcheck/providers/akamai.py,sha256=nKpQLf6QGO6tqOP4J8T_HKpEGNAP4c43qHzSEnocrCg,1649
|
|
9
|
+
cloudcheck/providers/alibaba.py,sha256=Mssuy9g2YOmqeOlBgvRZoUUHaIfXn-IdWkQLNkc5Fyg,367
|
|
10
|
+
cloudcheck/providers/amazon.py,sha256=8ZdphfLD6fDL37u0jOtvJE9kK74Dah2589ike3AZ0T0,1639
|
|
11
|
+
cloudcheck/providers/arvancloud.py,sha256=-yuJRHUhfmB8gTMdbHxfssl4V5jYqX7Qt_iYcWmWtLk,666
|
|
12
|
+
cloudcheck/providers/azure.py,sha256=l6Q3lIDogWCh1m4HQuMvuynRsLiLMs6Kv2UfDhdv81U,1989
|
|
13
|
+
cloudcheck/providers/backblaze.py,sha256=XmTmhMFM9f2U2VymF0n0qk_-NDXKSwnqLZNCyzf8Fbg,362
|
|
14
|
+
cloudcheck/providers/base.py,sha256=cGxjwjE2Raz9L5QPDRdaSdzx84G2Wl5cysGl9qR6PhI,9450
|
|
15
|
+
cloudcheck/providers/cisco.py,sha256=Ets6jYmoW7g7ZgxjpudOfSsrVoaPprNOOK-COPsF3Uc,2225
|
|
16
|
+
cloudcheck/providers/cloudflare.py,sha256=3mxP5BBKFzUeHJUaMMjwKR06BIPY2vwX-X5lhkqnXMA,1780
|
|
17
|
+
cloudcheck/providers/cloudfront.py,sha256=w-EBAU8wdNySNL1AiuHt-mFKBGOrH3lhj6ScrmWl1dk,584
|
|
18
|
+
cloudcheck/providers/dell.py,sha256=gtp2R3_stFemSHzMMUIplUwTs40xArI_j9NDynUOq8k,394
|
|
19
|
+
cloudcheck/providers/digitalocean.py,sha256=1xvzzL0RJqXHzcvGD139jeYRftmlUQAE50_g16jBGeI,1056
|
|
20
|
+
cloudcheck/providers/fastly.py,sha256=IL5QRV0J27fz0uUEsBeaMXMQ_HYtaGIvhtaWNygLCuQ,696
|
|
21
|
+
cloudcheck/providers/github.py,sha256=DdljaQEj_aZMHhOSb6rEwsKI3SxwGR0bRUFUo-NTKq4,832
|
|
22
|
+
cloudcheck/providers/google.py,sha256=pt_TeEJg1uM0vTyECzecM-h5kF0qBrf1FfNVSX8Z_t0,3208
|
|
23
|
+
cloudcheck/providers/heroku.py,sha256=X4wLbrF_8879KABpkUID6JcSQWOhK1_-SZOK-oKn36Y,171
|
|
24
|
+
cloudcheck/providers/hetzner.py,sha256=rcQ5rCi6XBX5BDAGPZckEcLP17UkZYcy96hoCVkgzf0,641
|
|
25
|
+
cloudcheck/providers/hpe.py,sha256=NvvbaKA1P1_QlYfx-CggPunSQKrBCODlcVTANkdY7sI,516
|
|
26
|
+
cloudcheck/providers/huawei.py,sha256=ARD35uTwbKCmsbKNnkW1H0Qr4cm-AhTWG05Wf6r15zI,803
|
|
27
|
+
cloudcheck/providers/ibm.py,sha256=xc-h0YgkMchL3Jp2KY57czL8OYZaCADLCIO70hZEcOI,3596
|
|
28
|
+
cloudcheck/providers/imperva.py,sha256=_XTihuUbOPB0LkcKSsl3EGqKVQAzJaNZysI7MNYa2jg,731
|
|
29
|
+
cloudcheck/providers/kamatera.py,sha256=oVqD2AV96uJ3njwQxFnLOftEtbzKsC5x8IIiqnbomeA,637
|
|
30
|
+
cloudcheck/providers/oracle.py,sha256=-950XmemaM-PZuWuttQoYmHDbLm1rF69TD_nGYNoVtw,1720
|
|
31
|
+
cloudcheck/providers/ovh.py,sha256=QVEDJ6q75pDnSz_8ohk0UHp3mESb3OqcYCxD9sdR64U,378
|
|
32
|
+
cloudcheck/providers/rackspace.py,sha256=mcURK22jLoZbUqT8pXoB1jdJfSskbPeIEOgI3SkyBLI,992
|
|
33
|
+
cloudcheck/providers/salesforce.py,sha256=HBxLPHl_X6Fddfb0_xtJgQH7yVxYiaDSsbB0V8ZBT1A,650
|
|
34
|
+
cloudcheck/providers/scaleway.py,sha256=iFN1p7K2EkCJanzLlYLmoyNBpnFnHg3EC3gEr9YLO7c,492
|
|
35
|
+
cloudcheck/providers/tencent.py,sha256=RMIW1gEwmIKv6fC0EHMtPe6pLxLijEWayAudlrD8oPY,698
|
|
36
|
+
cloudcheck/providers/wasabi.py,sha256=MT_n6KSpJpc1otKArvWfBzvJ-YEdHWx2yWsD6SZahu0,500
|
|
37
|
+
cloudcheck/providers/zoho.py,sha256=Mz9I_bSp69A43Bw5-GJd_xRTXEt4BVHEF6ofXWD4_wo,1297
|
|
38
|
+
cloudcheck-8.4.3.dist-info/RECORD,,
|
|
Binary file
|