dementor 1.0.0.dev19__tar.gz → 1.0.0.dev20__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 (129) hide show
  1. dementor-1.0.0.dev20/.github/workflows/ci-docs.yml +80 -0
  2. dementor-1.0.0.dev20/.github/workflows/ci-lint.yml +53 -0
  3. dementor-1.0.0.dev20/.github/workflows/ci-test.yml +60 -0
  4. dementor-1.0.0.dev20/.github/workflows/wheel-publish.yml +69 -0
  5. dementor-1.0.0.dev20/.gitignore +319 -0
  6. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/PKG-INFO +15 -2
  7. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/__init__.py +1 -1
  8. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/__main__.py +1 -1
  9. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/config/session.py +2 -2
  10. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/config/toml.py +2 -1
  11. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/config/util.py +1 -3
  12. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/db/__init__.py +1 -0
  13. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/db/model.py +8 -3
  14. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/filters.py +15 -11
  15. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/loader.py +1 -3
  16. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/log/logger.py +5 -9
  17. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/log/stream.py +1 -3
  18. {dementor-1.0.0.dev19/dementor/protocols/msrpc → dementor-1.0.0.dev20/dementor/protocols}/__init__.py +1 -1
  19. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/ftp.py +1 -1
  20. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/http.py +26 -17
  21. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/imap.py +1 -1
  22. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/ipp.py +13 -10
  23. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/kerberos.py +5 -1
  24. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/mdns.py +2 -4
  25. {dementor-1.0.0.dev19/dementor/protocols → dementor-1.0.0.dev20/dementor/protocols/msrpc}/__init__.py +1 -1
  26. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/msrpc/dcom.py +2 -2
  27. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/msrpc/rpc.py +8 -5
  28. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/mssql.py +9 -12
  29. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/mysql.py +6 -7
  30. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/netbios.py +1 -1
  31. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/ntlm.py +8 -19
  32. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/quic.py +1 -2
  33. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/smb.py +20 -19
  34. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/smtp.py +3 -1
  35. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/ssdp.py +6 -15
  36. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/upnp.py +4 -1
  37. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/x11.py +1 -2
  38. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/servers.py +11 -11
  39. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/standalone.py +11 -11
  40. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor.egg-info/PKG-INFO +15 -2
  41. dementor-1.0.0.dev20/dementor.egg-info/SOURCES.txt +126 -0
  42. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor.egg-info/entry_points.txt +1 -0
  43. dementor-1.0.0.dev20/dementor.egg-info/requires.txt +23 -0
  44. dementor-1.0.0.dev20/docs/Makefile +20 -0
  45. dementor-1.0.0.dev20/docs/make.bat +35 -0
  46. dementor-1.0.0.dev20/docs/source/_static/favicon.ico +0 -0
  47. dementor-1.0.0.dev20/docs/source/_static/images/asreqroast-kdc_dark.png +0 -0
  48. dementor-1.0.0.dev20/docs/source/_static/images/http-server_page-style.png +0 -0
  49. dementor-1.0.0.dev20/docs/source/_static/images/http_webdav-fallback.png +0 -0
  50. dementor-1.0.0.dev20/docs/source/_static/images/index-video.gif +0 -0
  51. dementor-1.0.0.dev20/docs/source/_static/images/ipp_cups-browsed.png +0 -0
  52. dementor-1.0.0.dev20/docs/source/_static/images/ipp_cups-ppd_file.png +0 -0
  53. dementor-1.0.0.dev20/docs/source/_static/images/kerberos-flow_dark.png +0 -0
  54. dementor-1.0.0.dev20/docs/source/_static/images/smtp-downgrade_wireshark.png +0 -0
  55. dementor-1.0.0.dev20/docs/source/_static/images/x11-xterm_remote_display.png +0 -0
  56. dementor-1.0.0.dev20/docs/source/_static/logo-new-big-transparent.png +0 -0
  57. dementor-1.0.0.dev20/docs/source/_static/logo-new-big.png +0 -0
  58. dementor-1.0.0.dev20/docs/source/_static/logo-new-circle.ico +0 -0
  59. dementor-1.0.0.dev20/docs/source/_static/theme.css +61 -0
  60. dementor-1.0.0.dev20/docs/source/cli.rst +80 -0
  61. dementor-1.0.0.dev20/docs/source/compat.rst +816 -0
  62. dementor-1.0.0.dev20/docs/source/conf.py +123 -0
  63. dementor-1.0.0.dev20/docs/source/config/database.rst +81 -0
  64. dementor-1.0.0.dev20/docs/source/config/dcerpc.rst +181 -0
  65. dementor-1.0.0.dev20/docs/source/config/ftp.rst +58 -0
  66. dementor-1.0.0.dev20/docs/source/config/globals.rst +137 -0
  67. dementor-1.0.0.dev20/docs/source/config/http.rst +243 -0
  68. dementor-1.0.0.dev20/docs/source/config/imap.rst +171 -0
  69. dementor-1.0.0.dev20/docs/source/config/index.rst +65 -0
  70. dementor-1.0.0.dev20/docs/source/config/ipp.rst +234 -0
  71. dementor-1.0.0.dev20/docs/source/config/kerberos.rst +100 -0
  72. dementor-1.0.0.dev20/docs/source/config/ldap.rst +145 -0
  73. dementor-1.0.0.dev20/docs/source/config/llmnr.rst +70 -0
  74. dementor-1.0.0.dev20/docs/source/config/logging.rst +159 -0
  75. dementor-1.0.0.dev20/docs/source/config/main.rst +213 -0
  76. dementor-1.0.0.dev20/docs/source/config/mdns.rst +116 -0
  77. dementor-1.0.0.dev20/docs/source/config/mssql.rst +201 -0
  78. dementor-1.0.0.dev20/docs/source/config/mysql.rst +106 -0
  79. dementor-1.0.0.dev20/docs/source/config/netbios.rst +47 -0
  80. dementor-1.0.0.dev20/docs/source/config/ntlm.rst +385 -0
  81. dementor-1.0.0.dev20/docs/source/config/pop3.rst +152 -0
  82. dementor-1.0.0.dev20/docs/source/config/protocols.rst +30 -0
  83. dementor-1.0.0.dev20/docs/source/config/quic.rst +111 -0
  84. dementor-1.0.0.dev20/docs/source/config/smb.rst +336 -0
  85. dementor-1.0.0.dev20/docs/source/config/smtp.rst +239 -0
  86. dementor-1.0.0.dev20/docs/source/config/ssdp.rst +96 -0
  87. dementor-1.0.0.dev20/docs/source/config/upnp.rst +130 -0
  88. dementor-1.0.0.dev20/docs/source/config/winrm.rst +40 -0
  89. dementor-1.0.0.dev20/docs/source/config/x11.rst +57 -0
  90. dementor-1.0.0.dev20/docs/source/examples/cups.rst +120 -0
  91. dementor-1.0.0.dev20/docs/source/examples/kdc.rst +77 -0
  92. dementor-1.0.0.dev20/docs/source/examples/multicast.rst +170 -0
  93. dementor-1.0.0.dev20/docs/source/examples/smtp_downgrade.rst +146 -0
  94. dementor-1.0.0.dev20/docs/source/examples/webdav_fallback.rst +77 -0
  95. dementor-1.0.0.dev20/docs/source/examples/x11_cookies.rst +70 -0
  96. dementor-1.0.0.dev20/docs/source/index.rst +111 -0
  97. dementor-1.0.0.dev20/docs/source/intro.rst +73 -0
  98. dementor-1.0.0.dev20/docs/source/proto.rst +72 -0
  99. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/pyproject.toml +47 -5
  100. dementor-1.0.0.dev20/requirements.docs.txt +4 -0
  101. dementor-1.0.0.dev19/dementor.egg-info/requires.txt → dementor-1.0.0.dev20/requirements.txt +3 -3
  102. dementor-1.0.0.dev20/tests/.gitkeep +0 -0
  103. dementor-1.0.0.dev20/tests/test_version.py +8 -0
  104. dementor-1.0.0.dev19/dementor.egg-info/SOURCES.txt +0 -62
  105. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/LICENSE +0 -0
  106. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/README.md +0 -0
  107. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/assets/Dementor.toml +0 -0
  108. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/assets/banner.txt +0 -0
  109. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/assets/www/error_page.html +0 -0
  110. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/assets/www/upnp-default/dd.xml +0 -0
  111. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/assets/www/upnp-default/present.html +0 -0
  112. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/assets/www/upnp-default/scpd.xml +0 -0
  113. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/assets/www/wpad.dat +0 -0
  114. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/config/__init__.py +0 -0
  115. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/config/attr.py +0 -0
  116. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/db/connector.py +0 -0
  117. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/log/__init__.py +0 -0
  118. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/log/hexdump.py +0 -0
  119. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/paths.py +0 -0
  120. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/ldap.py +0 -0
  121. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/llmnr.py +0 -0
  122. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/msrpc/epm.py +0 -0
  123. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/msrpc.py +0 -0
  124. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/pop3.py +0 -0
  125. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor/protocols/spnego.py +0 -0
  126. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor.egg-info/dependency_links.txt +0 -0
  127. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/dementor.egg-info/top_level.txt +0 -0
  128. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/docs/README.pypi.md +0 -0
  129. {dementor-1.0.0.dev19 → dementor-1.0.0.dev20}/setup.cfg +0 -0
@@ -0,0 +1,80 @@
1
+ name: "CI: Build and Deploy Sphinx Documentation"
2
+
3
+ on:
4
+ # pull_request:
5
+ # branches: [master]
6
+ push:
7
+ branches: [master]
8
+ release:
9
+ types: [published]
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ defaults:
16
+ run:
17
+ shell: bash
18
+
19
+ concurrency:
20
+ group: ${{ github.workflow }}-${{ github.ref }}
21
+ cancel-in-progress: true
22
+
23
+ jobs:
24
+ build:
25
+ name: Build docs
26
+ runs-on: ubuntu-latest
27
+ timeout-minutes: 15
28
+
29
+ steps:
30
+ - name: Checkout repository
31
+ uses: actions/checkout@v6.0.2
32
+ with:
33
+ persist-credentials: false
34
+
35
+ - name: Set up Python
36
+ uses: actions/setup-python@v6.2.0
37
+ with:
38
+ python-version: "3.14"
39
+ check-latest: true
40
+
41
+ - name: Set up uv
42
+ uses: astral-sh/setup-uv@v7.3.1
43
+ with:
44
+ enable-cache: true
45
+ cache-dependency-glob: "**/pyproject.toml"
46
+
47
+ - name: Configure Pages
48
+ # if: github.event_name == 'release'
49
+ uses: actions/configure-pages@v5.0.0
50
+
51
+ - name: Build docs
52
+ run: |
53
+ set -euo pipefail
54
+ uv run --extra docs sphinx-build -M html docs/source docs/build
55
+ touch docs/build/html/.nojekyll
56
+ - name: Upload Pages artifact
57
+ # if: github.event_name == 'release'
58
+ uses: actions/upload-pages-artifact@v4.0.0
59
+ with:
60
+ path: docs/build/html
61
+
62
+ deploy:
63
+ name: Deploy docs
64
+ # REVISIT: documentation should be updated on all push events
65
+ # if: github.event_name == 'release'
66
+ needs: build
67
+
68
+ permissions:
69
+ pages: write
70
+ id-token: write
71
+
72
+ environment:
73
+ name: github-pages
74
+ url: ${{ steps.deployment.outputs.page_url }}
75
+
76
+ runs-on: ubuntu-latest
77
+ steps:
78
+ - name: Deploy to GitHub Pages
79
+ id: deployment
80
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,53 @@
1
+ name: "CI: Run Linter"
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ defaults:
14
+ run:
15
+ shell: bash
16
+
17
+ concurrency:
18
+ group: ${{ github.workflow }}-${{ github.ref }}
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ lint:
23
+ name: Ruff
24
+ runs-on: ubuntu-latest
25
+ timeout-minutes: 10
26
+
27
+ steps:
28
+ - name: Checkout repository
29
+ uses: actions/checkout@v6.0.2
30
+ with:
31
+ persist-credentials: false
32
+
33
+ - name: Setup Python
34
+ uses: actions/setup-python@v6.2.0
35
+ with:
36
+ python-version: "3.14"
37
+ check-latest: true
38
+
39
+ - name: Setup uv
40
+ uses: astral-sh/setup-uv@v7.3.1
41
+ with:
42
+ enable-cache: true
43
+ cache-dependency-glob: "**/pyproject.toml"
44
+
45
+ - name: Run Ruff
46
+ run: |
47
+ set -euo pipefail
48
+ uv run --extra dev ruff check .
49
+
50
+ - name: Run Ruff formatter check
51
+ run: |
52
+ set -euo pipefail
53
+ uv run --extra dev ruff format --check .
@@ -0,0 +1,60 @@
1
+ name: "CI: Run Tests"
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ defaults:
14
+ run:
15
+ shell: bash
16
+
17
+ concurrency:
18
+ group: ${{ github.workflow }}-${{ github.ref }}
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ test:
23
+ name: Python ${{ matrix.python-version }}
24
+ runs-on: ubuntu-latest
25
+ timeout-minutes: 15
26
+ strategy:
27
+ fail-fast: false
28
+ matrix:
29
+ include:
30
+ - python-version: "3.11"
31
+ check-latest: false
32
+ - python-version: "3.12"
33
+ check-latest: false
34
+ - python-version: "3.13"
35
+ check-latest: false
36
+ - python-version: "3.14"
37
+ check-latest: true
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v6.0.2
42
+ with:
43
+ persist-credentials: false
44
+
45
+ - name: Setup Python
46
+ uses: actions/setup-python@v6.2.0
47
+ with:
48
+ python-version: ${{ matrix.python-version }}
49
+ check-latest: ${{ matrix.check-latest }}
50
+
51
+ - name: Setup uv
52
+ uses: astral-sh/setup-uv@v7.3.1
53
+ with:
54
+ enable-cache: true
55
+ cache-dependency-glob: "**/pyproject.toml"
56
+
57
+ - name: Run test suite
58
+ run: |
59
+ set -euo pipefail
60
+ uv run --extra dev pytest
@@ -0,0 +1,69 @@
1
+ name: "CI: Build and Publish wheels"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ release:
6
+ types:
7
+ - published
8
+
9
+
10
+ jobs:
11
+ build:
12
+ name: Build distributions
13
+ runs-on: ubuntu-latest
14
+ timeout-minutes: 15
15
+
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v6.0.2
19
+ with:
20
+ persist-credentials: false
21
+
22
+ - name: Setup Python
23
+ uses: actions/setup-python@v6.2.0
24
+ with:
25
+ python-version: "3.14"
26
+ check-latest: true
27
+
28
+ - name: Setup uv
29
+ uses: astral-sh/setup-uv@v7.3.1
30
+ with:
31
+ enable-cache: true
32
+ cache-dependency-glob: "**/pyproject.toml"
33
+
34
+ - name: Build distributions
35
+ run: |
36
+ set -euo pipefail
37
+ uv build --sdist --wheel
38
+
39
+ - name: Validate distributions
40
+ run: |
41
+ set -euo pipefail
42
+ uv run --with twine twine check --strict dist/*
43
+
44
+ - name: Upload distributions
45
+ uses: actions/upload-artifact@v7.0.0
46
+ with:
47
+ name: release-dists
48
+ path: dist/*
49
+ if-no-files-found: error
50
+
51
+ upload_all:
52
+ needs: [build]
53
+ environment: pypi
54
+ permissions:
55
+ id-token: write
56
+ runs-on: ubuntu-latest
57
+ if: github.event_name == 'release' && github.event.action == 'published'
58
+ steps:
59
+ - name: Download distributions
60
+ uses: actions/download-artifact@v8.0.0
61
+ with:
62
+ name: release-dists
63
+ path: dist
64
+
65
+ - name: Publish to PyPI
66
+ uses: pypa/gh-action-pypi-publish@v1.13.0
67
+ with:
68
+ packages-dir: dist/
69
+
@@ -0,0 +1,319 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+ *.db
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # UV
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ #poetry.lock
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ #pdm.lock
114
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
115
+ # in version control.
116
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
117
+ .pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
122
+ __pypackages__/
123
+
124
+ # Celery stuff
125
+ celerybeat-schedule
126
+ celerybeat.pid
127
+
128
+ # SageMath parsed files
129
+ *.sage.py
130
+
131
+ # Environments
132
+ .env
133
+ .venv
134
+ env/
135
+ venv/
136
+ ENV/
137
+ env.bak/
138
+ venv.bak/
139
+
140
+ # Spyder project settings
141
+ .spyderproject
142
+ .spyproject
143
+
144
+ # Rope project settings
145
+ .ropeproject
146
+
147
+ # mkdocs documentation
148
+ /site
149
+
150
+ # mypy
151
+ .mypy_cache/
152
+ .dmypy.json
153
+ dmypy.json
154
+
155
+ # Pyre type checker
156
+ .pyre/
157
+
158
+ # pytype static type analyzer
159
+ .pytype/
160
+
161
+ # Cython debug symbols
162
+ cython_debug/
163
+
164
+ # PyCharm
165
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
166
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
167
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
168
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
169
+ #.idea/
170
+
171
+ # Ruff stuff:
172
+ .ruff_cache/
173
+
174
+ # PyPI configuration file
175
+ .pypirc
176
+ Original/
177
+
178
+ # === NodeJS ===
179
+ # Logs
180
+ logs
181
+ *.log
182
+ npm-debug.log*
183
+ yarn-debug.log*
184
+ yarn-error.log*
185
+ lerna-debug.log*
186
+ .pnpm-debug.log*
187
+
188
+ # Diagnostic reports (https://nodejs.org/api/report.html)
189
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
190
+
191
+ # Runtime data
192
+ pids
193
+ *.pid
194
+ *.seed
195
+ *.pid.lock
196
+
197
+ # Directory for instrumented libs generated by jscoverage/JSCover
198
+ lib-cov
199
+
200
+ # Coverage directory used by tools like istanbul
201
+ coverage
202
+ *.lcov
203
+
204
+ # nyc test coverage
205
+ .nyc_output
206
+
207
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
208
+ .grunt
209
+
210
+ # Bower dependency directory (https://bower.io/)
211
+ bower_components
212
+
213
+ # node-waf configuration
214
+ .lock-wscript
215
+
216
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
217
+ build/Release
218
+
219
+ # Dependency directories
220
+ node_modules/
221
+ jspm_packages/
222
+
223
+ # Snowpack dependency directory (https://snowpack.dev/)
224
+ web_modules/
225
+
226
+ # TypeScript cache
227
+ *.tsbuildinfo
228
+
229
+ # Optional npm cache directory
230
+ .npm
231
+
232
+ # Optional eslint cache
233
+ .eslintcache
234
+
235
+ # Optional stylelint cache
236
+ .stylelintcache
237
+
238
+ # Microbundle cache
239
+ .rpt2_cache/
240
+ .rts2_cache_cjs/
241
+ .rts2_cache_es/
242
+ .rts2_cache_umd/
243
+
244
+ # Optional REPL history
245
+ .node_repl_history
246
+
247
+ # Output of 'npm pack'
248
+ *.tgz
249
+
250
+ # Yarn Integrity file
251
+ .yarn-integrity
252
+
253
+ # dotenv environment variable files
254
+ .env
255
+ .env.development.local
256
+ .env.test.local
257
+ .env.production.local
258
+ .env.local
259
+
260
+ # parcel-bundler cache (https://parceljs.org/)
261
+ .cache
262
+ .parcel-cache
263
+
264
+ # Next.js build output
265
+ .next
266
+ out
267
+
268
+ # Nuxt.js build / generate output
269
+ .nuxt
270
+ dist
271
+
272
+ # Gatsby files
273
+ .cache/
274
+ # Comment in the public line in if your project uses Gatsby and not Next.js
275
+ # https://nextjs.org/blog/next-9-1#public-directory-support
276
+ # public
277
+
278
+ # vuepress build output
279
+ .vuepress/dist
280
+
281
+ # vuepress v2.x temp and cache directory
282
+ .temp
283
+ .cache
284
+
285
+ # vitepress build output
286
+ **/.vitepress/dist
287
+
288
+ # vitepress cache directory
289
+ **/.vitepress/cache
290
+
291
+ # Docusaurus cache and generated files
292
+ .docusaurus
293
+
294
+ # Serverless directories
295
+ .serverless/
296
+
297
+ # FuseBox cache
298
+ .fusebox/
299
+
300
+ # DynamoDB Local files
301
+ .dynamodb/
302
+
303
+ # TernJS port file
304
+ .tern-port
305
+
306
+ # Stores VSCode versions used for testing VSCode extensions
307
+ .vscode-test
308
+
309
+ # yarn v2
310
+ .yarn/cache
311
+ .yarn/unplugged
312
+ .yarn/build-state.yml
313
+ .yarn/install-state.gz
314
+ .pnp.*
315
+
316
+ docs/.vitepress/dist
317
+ docs/.vitepress/cache
318
+ .vscode/
319
+ *.pcapng
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dementor
3
- Version: 1.0.0.dev19
3
+ Version: 1.0.0.dev20
4
4
  Summary: LLMNR/NBT-NS/mDNS Poisoner and rogue service provider
5
5
  Author: MatrixEditor
6
6
  Maintainer: MatrixEditor
@@ -11,7 +11,10 @@ Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: Intended Audience :: Science/Research
13
13
  Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
14
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
15
18
  Classifier: Programming Language :: Python :: 3 :: Only
16
19
  Classifier: Programming Language :: Python :: Implementation :: CPython
17
20
  Classifier: Topic :: Security
@@ -19,7 +22,7 @@ Classifier: Topic :: System :: Networking
19
22
  Classifier: Typing :: Typed
20
23
  Classifier: Operating System :: POSIX
21
24
  Classifier: Operating System :: Unix
22
- Requires-Python: >=3.10
25
+ Requires-Python: >=3.11
23
26
  Description-Content-Type: text/markdown
24
27
  License-File: LICENSE
25
28
  Requires-Dist: rich
@@ -31,8 +34,18 @@ Requires-Dist: pyasn1
31
34
  Requires-Dist: aioquic
32
35
  Requires-Dist: typer
33
36
  Requires-Dist: jinja2
37
+ Requires-Dist: typing-extensions
34
38
  Requires-Dist: caterpillar-py>=2.8.1
35
39
  Requires-Dist: pyipp
40
+ Provides-Extra: docs
41
+ Requires-Dist: sphinx; extra == "docs"
42
+ Requires-Dist: shibuya; extra == "docs"
43
+ Requires-Dist: sphinx-copybutton; extra == "docs"
44
+ Requires-Dist: sphinx-design; extra == "docs"
45
+ Provides-Extra: dev
46
+ Requires-Dist: pytest; extra == "dev"
47
+ Requires-Dist: ruff; extra == "dev"
48
+ Requires-Dist: ty; extra == "dev"
36
49
  Dynamic: license-file
37
50
 
38
51
  # Dementor
@@ -18,5 +18,5 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
  # SOFTWARE.
20
20
 
21
- __version__ = "1.0.0.dev19"
21
+ __version__ = "1.0.0.dev20"
22
22
  __author__ = "MatrixEditor"
@@ -19,4 +19,4 @@
19
19
  # SOFTWARE.
20
20
  from dementor.standalone import run_from_cli
21
21
 
22
- run_from_cli()
22
+ run_from_cli()
@@ -21,8 +21,9 @@
21
21
  import asyncio
22
22
  import typing
23
23
 
24
- from typing import Any, override
24
+ from typing import Any
25
25
  from pathlib import Path
26
+ from typing_extensions import override
26
27
 
27
28
  from dementor.config.toml import TomlConfig, Attribute
28
29
  from dementor.config.util import is_true
@@ -202,4 +203,3 @@ class SessionConfig(TomlConfig):
202
203
  return config
203
204
 
204
205
  return config[".".join(parts)]
205
-
@@ -18,7 +18,8 @@
18
18
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
  # SOFTWARE.
20
20
  # pyright: reportAny=false, reportExplicitAny=false
21
- from typing import ClassVar, NamedTuple, Callable, Any, TypeVar
21
+ from typing import ClassVar, NamedTuple, Any, TypeVar
22
+ from collections.abc import Callable
22
23
 
23
24
  from dementor.config.util import get_value
24
25
 
@@ -127,9 +127,7 @@ class BytesValue:
127
127
 
128
128
  case bytes():
129
129
  if self.length is not None and len(value) != self.length:
130
- raise ValueError(
131
- f"Expected {self.length} bytes, got {len(value)}"
132
- )
130
+ raise ValueError(f"Expected {self.length} bytes, got {len(value)}")
133
131
  return value
134
132
  case _:
135
133
  return self(str(value))
@@ -30,6 +30,7 @@ _NO_USER = "<missing-user>"
30
30
  _HOST_INFO = "_host_info"
31
31
  """Key used in extras dict to store host information for credential logging."""
32
32
 
33
+
33
34
  def normalize_client_address(client: str) -> str:
34
35
  """Normalize IPv6-mapped IPv4 addresses by stripping IPv6 prefix.
35
36