cloudcheck 6.0.0.655__py3-none-any.whl → 6.0.0.679__py3-none-any.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.
Potentially problematic release.
This version of cloudcheck might be problematic. Click here for more details.
- cloud_providers.json +597 -70
- cloudcheck/providers/arvancloud.py +22 -0
- cloudcheck/providers/cloudfront.py +2 -2
- cloudcheck/test/test_cloudcheck.py +1 -0
- {cloudcheck-6.0.0.655.dist-info → cloudcheck-6.0.0.679.dist-info}/METADATA +10 -8
- {cloudcheck-6.0.0.655.dist-info → cloudcheck-6.0.0.679.dist-info}/RECORD +8 -7
- {cloudcheck-6.0.0.655.dist-info → cloudcheck-6.0.0.679.dist-info}/WHEEL +0 -0
- {cloudcheck-6.0.0.655.dist-info → cloudcheck-6.0.0.679.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from .base import BaseCloudProvider
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Arvancloud(BaseCloudProvider):
|
|
5
|
+
ips_url = "https://www.arvancloud.ir/en/ips.txt"
|
|
6
|
+
domains = [
|
|
7
|
+
"arvancloud.ir",
|
|
8
|
+
]
|
|
9
|
+
asns = [
|
|
10
|
+
57568,
|
|
11
|
+
205585,
|
|
12
|
+
208006,
|
|
13
|
+
210296,
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
provider_type = "cdn"
|
|
17
|
+
|
|
18
|
+
def parse_response(self, response):
|
|
19
|
+
ranges = set()
|
|
20
|
+
if getattr(response, "status_code", 0) == 200:
|
|
21
|
+
ranges.update(response.text.splitlines())
|
|
22
|
+
return ranges
|
|
@@ -16,6 +16,6 @@ class Cloudfront(BaseCloudProvider):
|
|
|
16
16
|
response_json = response.json()
|
|
17
17
|
if not isinstance(response_json, dict):
|
|
18
18
|
raise ValueError(f"Invalid response format: {type(response_json)}")
|
|
19
|
-
for
|
|
20
|
-
ranges.update(
|
|
19
|
+
for r in response_json.values():
|
|
20
|
+
ranges.update(r)
|
|
21
21
|
return ranges
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloudcheck
|
|
3
|
-
Version: 6.0.0.
|
|
3
|
+
Version: 6.0.0.679
|
|
4
4
|
Summary: Check whether an IP address belongs to a cloud provider
|
|
5
5
|
Home-page: https://github.com/blacklanternsecurity/cloudcheck
|
|
6
6
|
License: GPL-3.0
|
|
@@ -55,15 +55,17 @@ print(subnet) # IPv4Network('168.62.0.0/19')
|
|
|
55
55
|
~~~
|
|
56
56
|
|
|
57
57
|
## Supported cloud providers
|
|
58
|
-
-
|
|
58
|
+
- Akamai ([source](https://techdocs.akamai.com/property-manager/pdfs/akamai_ipv4_ipv6_CIDRs-txt.zip))
|
|
59
|
+
- Amazon ([source](https://ip-ranges.amazonaws.com/ip-ranges.json))
|
|
60
|
+
- Arvancloud ([source](https://www.arvancloud.ir/en/ips.txt))
|
|
59
61
|
- Azure ([source](https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519))
|
|
60
|
-
- Google ([source](https://www.gstatic.com/ipranges/cloud.json))
|
|
61
|
-
- Oracle Cloud ([source](https://docs.cloud.oracle.com/en-us/iaas/tools/public_ip_ranges.json))
|
|
62
|
-
- DigitalOcean ([source](http://digitalocean.com/geo/google.csv))
|
|
63
62
|
- Cloudflare ([source](https://api.cloudflare.com/client/v4/ips))
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
- Zoho ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/zoho.py))
|
|
63
|
+
- Cloudfront ([source](https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips))
|
|
64
|
+
- DigitalOcean ([source](http://digitalocean.com/geo/google.csv))
|
|
67
65
|
- Fastly ([source](https://api.fastly.com/public-ip-list))
|
|
66
|
+
- Github ([source](https://api.github.com/meta))
|
|
67
|
+
- Google ([source](https://www.gstatic.com/ipranges/cloud.json))
|
|
68
68
|
- Imperva ([source](https://my.imperva.com/api/integration/v1/ips))
|
|
69
|
+
- Oracle Cloud ([source](https://docs.cloud.oracle.com/en-us/iaas/tools/public_ip_ranges.json))
|
|
70
|
+
- Zoho ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/zoho.py))
|
|
69
71
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
cloud_providers.json,sha256=
|
|
1
|
+
cloud_providers.json,sha256=0NnJLQ6SilmVUcpjgMO0aNWTjK9-xUUxP1CRpOp0mBQ,952248
|
|
2
2
|
cloudcheck/__init__.py,sha256=FuxQNWSWrhThXVwhuaevh57mUQNtVS-KQ_HCIkfnE0M,416
|
|
3
3
|
cloudcheck/cloudcheck.py,sha256=qgXzRXv6z62V2hfhVSnXf8ariaOMleakoxKdeAeGIPQ,924
|
|
4
4
|
cloudcheck/helpers.py,sha256=Qn7vNh_Uw4Wpg1RWWVIkI5OILNFHQI1gYwIQYrHz9l8,605
|
|
5
5
|
cloudcheck/providers/__init__.py,sha256=7kRphvQAu-lU9I_dsVY_DMgDNg202Zhmh487x5QsU88,5365
|
|
6
6
|
cloudcheck/providers/akamai.py,sha256=UzuuAq_V9GwlIWMkOJ56Jfv2vdjQN0umiafAyRAW5aw,3591
|
|
7
7
|
cloudcheck/providers/amazon.py,sha256=U-EF5LqQuownlEzAdqLZQCDxU2VsFEer54yC8zVcbl4,1703
|
|
8
|
+
cloudcheck/providers/arvancloud.py,sha256=ModvIi15JVLYiqEqIJtq89oXQ0l03MZrkLaW0Sf_1I4,479
|
|
8
9
|
cloudcheck/providers/azure.py,sha256=TpyGhd22iAS0aCt-jH90ZdsnwDzIJ10Dog4DcCeltno,4702
|
|
9
10
|
cloudcheck/providers/base.py,sha256=S0APy6rYr4ur1ox9x3-rB6jzFauOtlVQFWMiD_3Ag1Y,5446
|
|
10
11
|
cloudcheck/providers/cloudflare.py,sha256=lsinVyEVLXcKRBCuNnhTv3I99dq5lp3sol6RJcNp63Q,1725
|
|
11
|
-
cloudcheck/providers/cloudfront.py,sha256=
|
|
12
|
+
cloudcheck/providers/cloudfront.py,sha256=Lk894kwiFwqi2C1tU-0pRHDMx3N7r_VVHqCJEW-Bvdg,680
|
|
12
13
|
cloudcheck/providers/digitalocean.py,sha256=yqunC2QNlkRP6ol6pG3XJQl8fwW9baCDmNVfETj1yuM,762
|
|
13
14
|
cloudcheck/providers/fastly.py,sha256=c3Y5cm5R0PMRXGSWDxAiij50X9Mh9ga2xrbHO6RTfKU,575
|
|
14
15
|
cloudcheck/providers/github.py,sha256=iUqdoVQkQbp6lYMzajHCNKgRAIlPrvYEBbWlK6Oj5gM,600
|
|
@@ -18,8 +19,8 @@ cloudcheck/providers/imperva.py,sha256=3RxumRb5Ye5V_3STMWSI2JcAVtb_gijkb-y3wSe_3
|
|
|
18
19
|
cloudcheck/providers/oracle.py,sha256=Xbi9M0dJf6jlGZuZe6vKCyGFQJNBKopQkyBnwEdjb0I,667
|
|
19
20
|
cloudcheck/providers/zoho.py,sha256=4fo0unvG-oVgsKPz5Xa3viq5P5sf69VNu-v0kt1aQK4,477
|
|
20
21
|
cloudcheck/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
-
cloudcheck/test/test_cloudcheck.py,sha256=
|
|
22
|
-
cloudcheck-6.0.0.
|
|
23
|
-
cloudcheck-6.0.0.
|
|
24
|
-
cloudcheck-6.0.0.
|
|
25
|
-
cloudcheck-6.0.0.
|
|
22
|
+
cloudcheck/test/test_cloudcheck.py,sha256=lXIQl-uvZt2GBi-cxaIsL8CU0KVONmbaOyrnKvpY1Yk,2280
|
|
23
|
+
cloudcheck-6.0.0.679.dist-info/METADATA,sha256=61eaj44ezeBtBRmoDZyMggXinK6M7qWOaqYZKXx4QR0,2880
|
|
24
|
+
cloudcheck-6.0.0.679.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
25
|
+
cloudcheck-6.0.0.679.dist-info/entry_points.txt,sha256=SzYzxS8FPIBJdwNT4pQhhSostZyrQMxLqzpyuKkJxDU,57
|
|
26
|
+
cloudcheck-6.0.0.679.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|