detecti-cli 2.0.10__tar.gz → 2.0.11__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.
Files changed (80) hide show
  1. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/PKG-INFO +1 -1
  2. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/utils/updater.py +8 -2
  3. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/pyproject.toml +1 -1
  4. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/.env.example +0 -0
  5. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/.github/workflows/publish.yml +0 -0
  6. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/.gitignore +0 -0
  7. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/README.md +0 -0
  8. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/__init__.py +0 -0
  9. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/__main__.py +0 -0
  10. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/__init__.py +0 -0
  11. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/banner +0 -0
  12. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/cli.py +0 -0
  13. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/config.py +0 -0
  14. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/core/__init__.py +0 -0
  15. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/core/database/__init__.py +0 -0
  16. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/core/database/config_db.py +0 -0
  17. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/core/database/schema.py +0 -0
  18. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/core/database/storage.py +0 -0
  19. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/core/engine.py +0 -0
  20. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/core/models.py +0 -0
  21. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/data/config.sqlite +0 -0
  22. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/data/dbs/.gitkeep +0 -0
  23. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/data/dbs/example.com.sqlite +0 -0
  24. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/__init__.py +0 -0
  25. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/base.py +0 -0
  26. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/censys.py +0 -0
  27. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/crtsh.py +0 -0
  28. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/exploitdb.py +0 -0
  29. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/masscan.py +0 -0
  30. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/nuclei.py +0 -0
  31. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/nvd.py +0 -0
  32. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/reverse_whois.py +0 -0
  33. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/modules/shodan.py +0 -0
  34. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/reporters/__init__.py +0 -0
  35. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/reporters/csv_reporter.py +0 -0
  36. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/reporters/html_reporter.py +0 -0
  37. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/reporters/json_reporter.py +0 -0
  38. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/reporters/markdown_reporter.py +0 -0
  39. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/utils/__init__.py +0 -0
  40. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/utils/http.py +0 -0
  41. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/utils/logger.py +0 -0
  42. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/utils/setup.py +0 -0
  43. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/__init__.py +0 -0
  44. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/api/__init__.py +0 -0
  45. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/api/auth.py +0 -0
  46. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/api/graph_builder.py +0 -0
  47. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/api/routes.py +0 -0
  48. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/process_manager.py +0 -0
  49. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/server.py +0 -0
  50. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/android-chrome-192x192.png +0 -0
  51. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/android-chrome-512x512.png +0 -0
  52. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/apple-touch-icon.png +0 -0
  53. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/css/__init__.py +0 -0
  54. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/css/dashboard.css +0 -0
  55. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/favicon-16x16.png +0 -0
  56. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/favicon-32x32.png +0 -0
  57. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/favicon.ico +0 -0
  58. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/img/DetecTI_Security_Logo.png +0 -0
  59. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/img/detecti-ico.png +0 -0
  60. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/index.html +0 -0
  61. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/__init__.py +0 -0
  62. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/api.js +0 -0
  63. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/cytoscape-cose-bilkent.js +0 -0
  64. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/cytoscape-dagre.js +0 -0
  65. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/cytoscape.min.js +0 -0
  66. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/dagre.min.js +0 -0
  67. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/graph.js +0 -0
  68. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/js/lucide.min.js +0 -0
  69. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/login.html +0 -0
  70. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/detecti/web/static/site.webmanifest +0 -0
  71. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/requirements.txt +0 -0
  72. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/__init__.py +0 -0
  73. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/conftest.py +0 -0
  74. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/test_engine_cli.py +0 -0
  75. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/test_http.py +0 -0
  76. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/test_masscan.py +0 -0
  77. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/test_models.py +0 -0
  78. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/test_modules.py +0 -0
  79. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/test_nuclei.py +0 -0
  80. {detecti_cli-2.0.10 → detecti_cli-2.0.11}/tests/test_reporters.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: detecti-cli
3
- Version: 2.0.10
3
+ Version: 2.0.11
4
4
  Summary: Modern Attack Surface Management & Threat Intelligence Engine
5
5
  Author-email: "Lucas S. (Ls4ss)" <lucas@lucassouza.io>
6
6
  License: MIT
@@ -12,8 +12,14 @@ def check_for_updates(current_version: str) -> None:
12
12
  try:
13
13
  data = json.loads(cache_file.read_text())
14
14
  if time.time() - data.get("last_check", 0) < 43200: # 12 hours
15
- if data.get("newer_version"):
16
- _print_update_warning(current_version, data["newer_version"])
15
+ cached_newer = data.get("newer_version")
16
+ if cached_newer:
17
+ from packaging.version import parse, InvalidVersion
18
+ try:
19
+ if parse(cached_newer) > parse(current_version):
20
+ _print_update_warning(current_version, cached_newer)
21
+ except InvalidVersion:
22
+ pass
17
23
  return
18
24
  except Exception:
19
25
  pass
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "detecti-cli"
7
- version = "2.0.10"
7
+ version = "2.0.11"
8
8
  description = "Modern Attack Surface Management & Threat Intelligence Engine"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
File without changes
File without changes
File without changes
File without changes
File without changes