cloudcheck 6.0.0.629__py3-none-any.whl → 6.0.0.651__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 +496 -38
- cloudcheck/providers/imperva.py +21 -0
- cloudcheck/test/test_cloudcheck.py +1 -0
- {cloudcheck-6.0.0.629.dist-info → cloudcheck-6.0.0.651.dist-info}/METADATA +2 -1
- {cloudcheck-6.0.0.629.dist-info → cloudcheck-6.0.0.651.dist-info}/RECORD +7 -6
- {cloudcheck-6.0.0.629.dist-info → cloudcheck-6.0.0.651.dist-info}/WHEEL +0 -0
- {cloudcheck-6.0.0.629.dist-info → cloudcheck-6.0.0.651.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from .base import BaseCloudProvider
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class Imperva(BaseCloudProvider):
|
|
5
|
+
provider_type = "cdn"
|
|
6
|
+
domains = [
|
|
7
|
+
"imperva.com",
|
|
8
|
+
]
|
|
9
|
+
asns = [
|
|
10
|
+
62571,
|
|
11
|
+
]
|
|
12
|
+
ips_url = "https://my.imperva.com/api/integration/v1/ips"
|
|
13
|
+
|
|
14
|
+
def parse_response(self, response):
|
|
15
|
+
ranges = set()
|
|
16
|
+
data = response.json()
|
|
17
|
+
for ipv4 in data.get("ipRanges", []):
|
|
18
|
+
ranges.add(ipv4)
|
|
19
|
+
for ipv6 in data.get("ipv6Ranges", []):
|
|
20
|
+
ranges.add(ipv6)
|
|
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.651
|
|
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
|
|
@@ -65,4 +65,5 @@ print(subnet) # IPv4Network('168.62.0.0/19')
|
|
|
65
65
|
- Github ([source](https://api.github.com/meta))
|
|
66
66
|
- Zoho ([source](https://github.com/blacklanternsecurity/cloudcheck/blob/master/cloudcheck/providers/zoho.py))
|
|
67
67
|
- Fastly ([source](https://api.fastly.com/public-ip-list))
|
|
68
|
+
- Imperva ([source](https://my.imperva.com/api/integration/v1/ips))
|
|
68
69
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
cloud_providers.json,sha256=
|
|
1
|
+
cloud_providers.json,sha256=vGmA-3sxZ5l2OwuzS8kqvg8CMac_0FaAxIHS9SJNKmA,935915
|
|
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
|
|
@@ -13,11 +13,12 @@ cloudcheck/providers/fastly.py,sha256=c3Y5cm5R0PMRXGSWDxAiij50X9Mh9ga2xrbHO6RTfK
|
|
|
13
13
|
cloudcheck/providers/github.py,sha256=iUqdoVQkQbp6lYMzajHCNKgRAIlPrvYEBbWlK6Oj5gM,600
|
|
14
14
|
cloudcheck/providers/google.py,sha256=Digp6ONhLQHT3HDkTEyhHoljoygFQmUm6SW2EPMTv6s,929
|
|
15
15
|
cloudcheck/providers/hetzner.py,sha256=T4yNegVIGcUs7EONDnUzumw07fUalwfdQnczPCoXe90,503
|
|
16
|
+
cloudcheck/providers/imperva.py,sha256=3RxumRb5Ye5V_3STMWSI2JcAVtb_gijkb-y3wSe_3V4,508
|
|
16
17
|
cloudcheck/providers/oracle.py,sha256=Xbi9M0dJf6jlGZuZe6vKCyGFQJNBKopQkyBnwEdjb0I,667
|
|
17
18
|
cloudcheck/providers/zoho.py,sha256=4fo0unvG-oVgsKPz5Xa3viq5P5sf69VNu-v0kt1aQK4,477
|
|
18
19
|
cloudcheck/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
|
-
cloudcheck/test/test_cloudcheck.py,sha256=
|
|
20
|
-
cloudcheck-6.0.0.
|
|
21
|
-
cloudcheck-6.0.0.
|
|
22
|
-
cloudcheck-6.0.0.
|
|
23
|
-
cloudcheck-6.0.0.
|
|
20
|
+
cloudcheck/test/test_cloudcheck.py,sha256=jdCXLM7wdp5aIUaM_xka1peKgRrR6tP86nnuW4aasOg,2236
|
|
21
|
+
cloudcheck-6.0.0.651.dist-info/METADATA,sha256=Qz88nDottuQ_GZroiGJGv7KhjWHjvsF9PRGMP8mi8Qc,2731
|
|
22
|
+
cloudcheck-6.0.0.651.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
23
|
+
cloudcheck-6.0.0.651.dist-info/entry_points.txt,sha256=SzYzxS8FPIBJdwNT4pQhhSostZyrQMxLqzpyuKkJxDU,57
|
|
24
|
+
cloudcheck-6.0.0.651.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|