lacuscore 1.6.1__tar.gz → 1.6.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lacuscore
3
- Version: 1.6.1
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.1,<2.0.0)
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.16.1,<0.17.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
@@ -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
  [tool.poetry]
2
2
  name = "lacuscore"
3
- version = "1.6.1"
3
+ version = "1.6.3"
4
4
  description = "Core of Lacus, usable as a module"
5
5
  authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
6
6
  license = "BSD-3-Clause"
@@ -32,18 +32,18 @@ include = ['README.md']
32
32
  python = "^3.8"
33
33
  requests = "^2.31.0"
34
34
  Sphinx = { version = "^7.0.1", optional = true }
35
- playwrightcapture = {extras = ["recaptcha"], version = "^1.21.1"}
35
+ playwrightcapture = {extras = ["recaptcha"], version = "^1.21.2"}
36
36
  defang = "^0.5.3"
37
- ua-parser = "^0.16.1"
37
+ ua-parser = "^0.18.0"
38
38
  redis = {version = "^4.6.0", extras = ["hiredis"]}
39
39
 
40
40
  [tool.poetry.extras]
41
41
  docs = ["Sphinx"]
42
42
 
43
43
  [tool.poetry.group.dev.dependencies]
44
- types-redis = {version = "^4.6.0.2"}
44
+ types-redis = {version = "^4.6.0.3"}
45
45
  mypy = "^1.4.1"
46
- types-requests = "^2.31.0.1"
46
+ types-requests = "^2.31.0.2"
47
47
  ipython = [
48
48
  {version = "<8.13.0", python = "<3.9"},
49
49
  {version = "^8.13.0", python = ">=3.9"}
File without changes
File without changes
File without changes