cloudcheck 7.0.47__py3-none-any.whl → 7.1.5__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.
- cloudcheck/__init__.py +1 -1
- cloudcheck/providers/__init__.py +1 -1
- cloudcheck/providers/base.py +1 -0
- {cloudcheck-7.0.47.dist-info → cloudcheck-7.1.5.dist-info}/METADATA +4 -4
- {cloudcheck-7.0.47.dist-info → cloudcheck-7.1.5.dist-info}/RECORD +7 -8
- {cloudcheck-7.0.47.dist-info → cloudcheck-7.1.5.dist-info}/WHEEL +1 -1
- cloud_providers.json +0 -1
- {cloudcheck-7.0.47.dist-info → cloudcheck-7.1.5.dist-info}/entry_points.txt +0 -0
cloudcheck/__init__.py
CHANGED
|
@@ -9,6 +9,6 @@ def check(ip):
|
|
|
9
9
|
|
|
10
10
|
async def update(cache_hrs=168 + 24, force=False):
|
|
11
11
|
time_since_last_update = datetime.now() - cloud_providers.last_updated
|
|
12
|
-
hours_since_last_update = time_since_last_update /
|
|
12
|
+
hours_since_last_update = time_since_last_update.total_seconds() / 3600
|
|
13
13
|
if force or hours_since_last_update >= cache_hrs:
|
|
14
14
|
await cloud_providers.update()
|
cloudcheck/providers/__init__.py
CHANGED
|
@@ -118,7 +118,7 @@ class CloudProviders:
|
|
|
118
118
|
j = self.to_json()
|
|
119
119
|
if j:
|
|
120
120
|
with open(self.json_path, "w") as f:
|
|
121
|
-
json.dump(self.to_json(), f, sort_keys=True, cls=CustomJSONEncoder)
|
|
121
|
+
json.dump(self.to_json(), f, sort_keys=True, indent=1, cls=CustomJSONEncoder)
|
|
122
122
|
self.load_from_json(force=True)
|
|
123
123
|
|
|
124
124
|
def to_json(self):
|
cloudcheck/providers/base.py
CHANGED
|
@@ -64,6 +64,7 @@ class BaseCloudProvider:
|
|
|
64
64
|
self._log = None
|
|
65
65
|
self.ranges = set()
|
|
66
66
|
self.radix = Target()
|
|
67
|
+
self.last_updated = datetime.min
|
|
67
68
|
if j is not None:
|
|
68
69
|
p = CloudProviderJSON(**j)
|
|
69
70
|
self.update_domains([d.lower() for d in set(list(self.domains) + list(p.domains))])
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: cloudcheck
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.1.5
|
|
4
4
|
Summary: Check whether an IP address belongs to a cloud provider
|
|
5
|
-
Home-page: https://github.com/blacklanternsecurity/cloudcheck
|
|
6
5
|
License: GPL-3.0
|
|
7
6
|
Author: TheTechromancer
|
|
8
7
|
Requires-Python: >=3.9,<4.0
|
|
@@ -18,6 +17,7 @@ Requires-Dist: pydantic (>=2.4.2,<3.0.0)
|
|
|
18
17
|
Requires-Dist: radixtarget (>=3.0.13,<4.0.0)
|
|
19
18
|
Requires-Dist: regex (>=2024.4.16,<2025.0.0)
|
|
20
19
|
Project-URL: Discord, https://discord.com/invite/PZqkgxu5SA
|
|
20
|
+
Project-URL: Homepage, https://github.com/blacklanternsecurity/cloudcheck
|
|
21
21
|
Project-URL: PyPi, https://pypi.org/project/cloudcheck/
|
|
22
22
|
Project-URL: Repository, https://github.com/blacklanternsecurity/cloudcheck
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
@@ -28,7 +28,7 @@ A simple Python utility to check whether an IP address or hostname belongs to a
|
|
|
28
28
|
|
|
29
29
|
`cloud_providers.json` contains lists of domains and up-to-date CIDRs for each cloud provider (updated daily via CI/CD).
|
|
30
30
|
|
|
31
|
-
Used by [
|
|
31
|
+
Used by [BBOT](https://github.com/blacklanternsecurity/bbot) and [BBOT Server](https://github.com/blacklanternsecurity/bbot-server).
|
|
32
32
|
|
|
33
33
|
## Installation
|
|
34
34
|
~~~bash
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
cloudcheck/__init__.py,sha256=FuxQNWSWrhThXVwhuaevh57mUQNtVS-KQ_HCIkfnE0M,416
|
|
1
|
+
cloudcheck/__init__.py,sha256=5cqeefaxua19rrU9nOgDtvHoPRc6OwKjc6RAPkAHupk,429
|
|
3
2
|
cloudcheck/cloudcheck.py,sha256=U9kiSiRYS6SXPDQMrFJcZDyMPvmkmgvAPLNOViVYDXw,902
|
|
4
3
|
cloudcheck/helpers.py,sha256=Qw_dyJQ_HF71-1j6-9X1hZu1beA8UvnVj7i4Alrgumw,604
|
|
5
|
-
cloudcheck/providers/__init__.py,sha256=
|
|
4
|
+
cloudcheck/providers/__init__.py,sha256=kEI1e99Qy-XSdXBYYReJTlnhbaKOAX284bVeiy5OdV4,5277
|
|
6
5
|
cloudcheck/providers/akamai.py,sha256=UzuuAq_V9GwlIWMkOJ56Jfv2vdjQN0umiafAyRAW5aw,3591
|
|
7
6
|
cloudcheck/providers/amazon.py,sha256=fkDOOQLhlasXQcLywlh-VfQbcjHeNCUXBKFYFhfNfwc,1667
|
|
8
7
|
cloudcheck/providers/arvancloud.py,sha256=ModvIi15JVLYiqEqIJtq89oXQ0l03MZrkLaW0Sf_1I4,479
|
|
9
8
|
cloudcheck/providers/azure.py,sha256=Sk3ZhfdFJ2PciXVKRCRUiH8ht_yNdwzXNSMIO72dw-U,4704
|
|
10
|
-
cloudcheck/providers/base.py,sha256=
|
|
9
|
+
cloudcheck/providers/base.py,sha256=cwD6c8kGGutwyrn9n6qkrvZkpDxR6tEuuRNuBZ_y8cU,5419
|
|
11
10
|
cloudcheck/providers/cloudflare.py,sha256=lsinVyEVLXcKRBCuNnhTv3I99dq5lp3sol6RJcNp63Q,1725
|
|
12
11
|
cloudcheck/providers/cloudfront.py,sha256=Lk894kwiFwqi2C1tU-0pRHDMx3N7r_VVHqCJEW-Bvdg,680
|
|
13
12
|
cloudcheck/providers/digitalocean.py,sha256=m_uurDwkdZMSXR2pUSNwNJaJYTHmXjUGuSYSPyExhZw,726
|
|
@@ -20,7 +19,7 @@ cloudcheck/providers/oracle.py,sha256=Xbi9M0dJf6jlGZuZe6vKCyGFQJNBKopQkyBnwEdjb0
|
|
|
20
19
|
cloudcheck/providers/zoho.py,sha256=4fo0unvG-oVgsKPz5Xa3viq5P5sf69VNu-v0kt1aQK4,477
|
|
21
20
|
cloudcheck/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
21
|
cloudcheck/test/test_cloudcheck.py,sha256=BaTwFFcr4vO9U7yhCTaXJXbWE_DUpCtN_x59j_CEHwU,2279
|
|
23
|
-
cloudcheck-7.
|
|
24
|
-
cloudcheck-7.
|
|
25
|
-
cloudcheck-7.
|
|
26
|
-
cloudcheck-7.
|
|
22
|
+
cloudcheck-7.1.5.dist-info/METADATA,sha256=gYqif1UqW_iTkhzRV1ELoHvZ78ldr8zX5IKn48jOdeg,2930
|
|
23
|
+
cloudcheck-7.1.5.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
24
|
+
cloudcheck-7.1.5.dist-info/entry_points.txt,sha256=SzYzxS8FPIBJdwNT4pQhhSostZyrQMxLqzpyuKkJxDU,57
|
|
25
|
+
cloudcheck-7.1.5.dist-info/RECORD,,
|