cloudcheck 6.0.0.655__py3-none-any.whl → 6.0.0.661__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 +26 -12
- 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.661.dist-info}/METADATA +10 -8
- {cloudcheck-6.0.0.655.dist-info → cloudcheck-6.0.0.661.dist-info}/RECORD +8 -7
- {cloudcheck-6.0.0.655.dist-info → cloudcheck-6.0.0.661.dist-info}/WHEEL +0 -0
- {cloudcheck-6.0.0.655.dist-info → cloudcheck-6.0.0.661.dist-info}/entry_points.txt +0 -0
cloud_providers.json
CHANGED
|
@@ -11738,7 +11738,7 @@
|
|
|
11738
11738
|
"srtcdn.net"
|
|
11739
11739
|
],
|
|
11740
11740
|
"ips_url": "https://techdocs.akamai.com/property-manager/pdfs/akamai_ipv4_ipv6_CIDRs-txt.zip",
|
|
11741
|
-
"last_updated": "2024-11-16T18:
|
|
11741
|
+
"last_updated": "2024-11-16T18:52:05.117959",
|
|
11742
11742
|
"name": "Akamai",
|
|
11743
11743
|
"provider_type": "cdn",
|
|
11744
11744
|
"regexes": {}
|
|
@@ -17947,7 +17947,7 @@
|
|
|
17947
17947
|
"thinkboxsoftware.com"
|
|
17948
17948
|
],
|
|
17949
17949
|
"ips_url": "https://ip-ranges.amazonaws.com/ip-ranges.json",
|
|
17950
|
-
"last_updated": "2024-11-16T18:
|
|
17950
|
+
"last_updated": "2024-11-16T18:52:04.691760",
|
|
17951
17951
|
"name": "Amazon",
|
|
17952
17952
|
"provider_type": "cloud",
|
|
17953
17953
|
"regexes": {
|
|
@@ -21644,7 +21644,7 @@
|
|
|
21644
21644
|
"windowsazurestatus.cn"
|
|
21645
21645
|
],
|
|
21646
21646
|
"ips_url": "https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20200824.xml",
|
|
21647
|
-
"last_updated": "2024-11-16T18:
|
|
21647
|
+
"last_updated": "2024-11-16T18:52:03.618431",
|
|
21648
21648
|
"name": "Azure",
|
|
21649
21649
|
"provider_type": "cloud",
|
|
21650
21650
|
"regexes": {
|
|
@@ -21715,7 +21715,7 @@
|
|
|
21715
21715
|
"workers.dev"
|
|
21716
21716
|
],
|
|
21717
21717
|
"ips_url": "https://api.cloudflare.com/client/v4/ips",
|
|
21718
|
-
"last_updated": "2024-11-16T18:
|
|
21718
|
+
"last_updated": "2024-11-16T18:52:04.126754",
|
|
21719
21719
|
"name": "Cloudflare",
|
|
21720
21720
|
"provider_type": "cdn",
|
|
21721
21721
|
"regexes": {
|
|
@@ -21725,6 +21725,20 @@
|
|
|
21725
21725
|
]
|
|
21726
21726
|
}
|
|
21727
21727
|
},
|
|
21728
|
+
"Cloudfront": {
|
|
21729
|
+
"asns": [],
|
|
21730
|
+
"bucket_name_regex": "",
|
|
21731
|
+
"cidrs": [],
|
|
21732
|
+
"domains": [
|
|
21733
|
+
"cloudfront.com",
|
|
21734
|
+
"cloudfront.net"
|
|
21735
|
+
],
|
|
21736
|
+
"ips_url": "https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips",
|
|
21737
|
+
"last_updated": "0001-01-01T00:00:00",
|
|
21738
|
+
"name": "Cloudfront",
|
|
21739
|
+
"provider_type": "cdn",
|
|
21740
|
+
"regexes": {}
|
|
21741
|
+
},
|
|
21728
21742
|
"DigitalOcean": {
|
|
21729
21743
|
"asns": [],
|
|
21730
21744
|
"bucket_name_regex": "[a-z0-9][a-z0-9-]{2,62}",
|
|
@@ -22882,7 +22896,7 @@
|
|
|
22882
22896
|
"nginxconfig.io"
|
|
22883
22897
|
],
|
|
22884
22898
|
"ips_url": "https://digitalocean.com/geo/google.csv",
|
|
22885
|
-
"last_updated": "2024-11-16T18:
|
|
22899
|
+
"last_updated": "2024-11-16T18:52:04.852592",
|
|
22886
22900
|
"name": "DigitalOcean",
|
|
22887
22901
|
"provider_type": "cloud",
|
|
22888
22902
|
"regexes": {
|
|
@@ -22924,7 +22938,7 @@
|
|
|
22924
22938
|
"zencdn.net"
|
|
22925
22939
|
],
|
|
22926
22940
|
"ips_url": "https://api.fastly.com/public-ip-list",
|
|
22927
|
-
"last_updated": "2024-11-16T18:
|
|
22941
|
+
"last_updated": "2024-11-16T18:52:03.312278",
|
|
22928
22942
|
"name": "Fastly",
|
|
22929
22943
|
"provider_type": "cloud",
|
|
22930
22944
|
"regexes": {}
|
|
@@ -27960,7 +27974,7 @@
|
|
|
27960
27974
|
"github.com"
|
|
27961
27975
|
],
|
|
27962
27976
|
"ips_url": "https://api.github.com/meta",
|
|
27963
|
-
"last_updated": "2024-11-16T18:
|
|
27977
|
+
"last_updated": "2024-11-16T18:52:04.124078",
|
|
27964
27978
|
"name": "GitHub",
|
|
27965
27979
|
"provider_type": "cdn",
|
|
27966
27980
|
"regexes": {}
|
|
@@ -28695,7 +28709,7 @@
|
|
|
28695
28709
|
"googleapis.com"
|
|
28696
28710
|
],
|
|
28697
28711
|
"ips_url": "https://www.gstatic.com/ipranges/cloud.json",
|
|
28698
|
-
"last_updated": "2024-11-16T18:
|
|
28712
|
+
"last_updated": "2024-11-16T18:52:03.376758",
|
|
28699
28713
|
"name": "Google",
|
|
28700
28714
|
"provider_type": "cloud",
|
|
28701
28715
|
"regexes": {
|
|
@@ -29177,7 +29191,7 @@
|
|
|
29177
29191
|
"your-server.de"
|
|
29178
29192
|
],
|
|
29179
29193
|
"ips_url": "",
|
|
29180
|
-
"last_updated": "2024-11-16T18:
|
|
29194
|
+
"last_updated": "2024-11-16T18:52:02.240171",
|
|
29181
29195
|
"name": "Hetzner",
|
|
29182
29196
|
"provider_type": "cloud",
|
|
29183
29197
|
"regexes": {
|
|
@@ -29222,7 +29236,7 @@
|
|
|
29222
29236
|
"imperva.com"
|
|
29223
29237
|
],
|
|
29224
29238
|
"ips_url": "https://my.imperva.com/api/integration/v1/ips",
|
|
29225
|
-
"last_updated": "2024-11-16T18:
|
|
29239
|
+
"last_updated": "2024-11-16T18:52:04.127894",
|
|
29226
29240
|
"name": "Imperva",
|
|
29227
29241
|
"provider_type": "cdn",
|
|
29228
29242
|
"regexes": {}
|
|
@@ -30008,7 +30022,7 @@
|
|
|
30008
30022
|
"sun.com"
|
|
30009
30023
|
],
|
|
30010
30024
|
"ips_url": "https://docs.oracle.com/en-us/iaas/tools/public_ip_ranges.json",
|
|
30011
|
-
"last_updated": "2024-11-16T18:
|
|
30025
|
+
"last_updated": "2024-11-16T18:52:04.750557",
|
|
30012
30026
|
"name": "Oracle",
|
|
30013
30027
|
"provider_type": "cloud",
|
|
30014
30028
|
"regexes": {}
|
|
@@ -30087,7 +30101,7 @@
|
|
|
30087
30101
|
"zohowebstatic.com"
|
|
30088
30102
|
],
|
|
30089
30103
|
"ips_url": "",
|
|
30090
|
-
"last_updated": "2024-11-16T18:
|
|
30104
|
+
"last_updated": "2024-11-16T18:51:51.565121",
|
|
30091
30105
|
"name": "Zoho",
|
|
30092
30106
|
"provider_type": "cloud",
|
|
30093
30107
|
"regexes": {}
|
|
@@ -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.661
|
|
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=KQxptSynPnvbTxYHH42aB9Yx7gyFHV2bI7ZnIsTwMS0,936355
|
|
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.661.dist-info/METADATA,sha256=iAWhe3g1ucj0LvfU1ktCJgaifFT-FP9VeSdUMUPAtUk,2880
|
|
24
|
+
cloudcheck-6.0.0.661.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
25
|
+
cloudcheck-6.0.0.661.dist-info/entry_points.txt,sha256=SzYzxS8FPIBJdwNT4pQhhSostZyrQMxLqzpyuKkJxDU,57
|
|
26
|
+
cloudcheck-6.0.0.661.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|