lacuscore 1.6.1__py3-none-any.whl → 1.6.3__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.
- lacuscore/lacuscore.py +6 -6
- {lacuscore-1.6.1.dist-info → lacuscore-1.6.3.dist-info}/METADATA +3 -3
- {lacuscore-1.6.1.dist-info → lacuscore-1.6.3.dist-info}/RECORD +5 -5
- {lacuscore-1.6.1.dist-info → lacuscore-1.6.3.dist-info}/LICENSE +0 -0
- {lacuscore-1.6.1.dist-info → lacuscore-1.6.3.dist-info}/WHEEL +0 -0
lacuscore/lacuscore.py
CHANGED
@@ -506,8 +506,8 @@ class LacusCore():
|
|
506
506
|
proxy = to_capture.get('proxy')
|
507
507
|
if self.tor_proxy:
|
508
508
|
# check if onion or forced
|
509
|
-
if (proxy == 'force_tor'
|
510
|
-
or (not proxy
|
509
|
+
if (proxy == 'force_tor' # if the proxy is set to "force_tor", we use the pre-configured tor proxy, regardless the URL.
|
510
|
+
or (not proxy # if the TLD is "onion", we use the pre-configured tor proxy
|
511
511
|
and splitted_url.netloc
|
512
512
|
and splitted_url.hostname
|
513
513
|
and splitted_url.hostname.split('.')[-1] == 'onion')):
|
@@ -520,18 +520,18 @@ class LacusCore():
|
|
520
520
|
try:
|
521
521
|
ips_info = socket.getaddrinfo(splitted_url.hostname, None, proto=socket.IPPROTO_TCP)
|
522
522
|
except socket.gaierror:
|
523
|
-
logger.debug(f'Unable to resolve {splitted_url.hostname}.')
|
524
|
-
result = {'error': f'Unable to resolve {splitted_url.hostname}.'}
|
523
|
+
logger.debug(f'Unable to resolve "{splitted_url.hostname}" - Original URL: "{url}".')
|
524
|
+
result = {'error': f'Unable to resolve "{splitted_url.hostname}" - Original URL: "{url}".'}
|
525
525
|
raise RetryCapture
|
526
526
|
except Exception as e:
|
527
|
-
result = {'error': f'Issue with hostname resolution ({splitted_url.hostname}): {e}.'}
|
527
|
+
result = {'error': f'Issue with hostname resolution ({splitted_url.hostname}): {e}. Original URL: "{url}".'}
|
528
528
|
raise CaptureError
|
529
529
|
for info in ips_info:
|
530
530
|
if not ipaddress.ip_address(info[-1][0]).is_global:
|
531
531
|
result = {'error': f'Capturing ressources on private IPs {info[-1][0]} is disabled.'}
|
532
532
|
raise CaptureError
|
533
533
|
else:
|
534
|
-
result = {'error': f'Unable to find hostname or IP in the query: {url}.'}
|
534
|
+
result = {'error': f'Unable to find hostname or IP in the query: "{url}".'}
|
535
535
|
raise CaptureError
|
536
536
|
|
537
537
|
browser_engine: BROWSER = "chromium"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lacuscore
|
3
|
-
Version: 1.6.
|
3
|
+
Version: 1.6.3
|
4
4
|
Summary: Core of Lacus, usable as a module
|
5
5
|
Home-page: https://github.com/ail-project/LacusCore
|
6
6
|
License: BSD-3-Clause
|
@@ -24,10 +24,10 @@ Classifier: Topic :: Security
|
|
24
24
|
Provides-Extra: docs
|
25
25
|
Requires-Dist: Sphinx (>=7.0.1,<8.0.0) ; extra == "docs"
|
26
26
|
Requires-Dist: defang (>=0.5.3,<0.6.0)
|
27
|
-
Requires-Dist: playwrightcapture[recaptcha] (>=1.21.
|
27
|
+
Requires-Dist: playwrightcapture[recaptcha] (>=1.21.2,<2.0.0)
|
28
28
|
Requires-Dist: redis[hiredis] (>=4.6.0,<5.0.0)
|
29
29
|
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
30
|
-
Requires-Dist: ua-parser (>=0.
|
30
|
+
Requires-Dist: ua-parser (>=0.18.0,<0.19.0)
|
31
31
|
Project-URL: Documentation, https://lacuscore.readthedocs.io/en/latest/
|
32
32
|
Project-URL: Repository, https://github.com/ail-project/LacusCore
|
33
33
|
Description-Content-Type: text/markdown
|
@@ -1,9 +1,9 @@
|
|
1
1
|
README.md,sha256=NVr2b3eX2dwOO917TtyGGhCTLtmFbLCFPy9MH8JPUMU,941
|
2
2
|
lacuscore/__init__.py,sha256=ytBrQRBXO1Q5yV72qyS16Q7Auqebl3EMhhLQUa0Sg4g,169
|
3
3
|
lacuscore/lacus_monitoring.py,sha256=_mhKcfNQxnpiDvZcOEy5HvlNQQtVQy1SrfgMkLaCiTI,2138
|
4
|
-
lacuscore/lacuscore.py,sha256=
|
4
|
+
lacuscore/lacuscore.py,sha256=oWsE1ZFuPT-3WvgZ7B3YvT_ijbwh7gzW0fJLpeB4S-I,33726
|
5
5
|
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
lacuscore-1.6.
|
7
|
-
lacuscore-1.6.
|
8
|
-
lacuscore-1.6.
|
9
|
-
lacuscore-1.6.
|
6
|
+
lacuscore-1.6.3.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
7
|
+
lacuscore-1.6.3.dist-info/METADATA,sha256=2orQj748iY_LB9uLdCmmJ0aLKULKEBa34QpIgJaACqk,2357
|
8
|
+
lacuscore-1.6.3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
9
|
+
lacuscore-1.6.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|