-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
204 lines (166 loc) · 6.17 KB
/
pyproject.toml
File metadata and controls
204 lines (166 loc) · 6.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
[build-system]
requires = ["setuptools>=80", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "dementor"
version = "1.0.0.dev21"
# REVISIT: dynamic version
# dynamic = ["version"]
description = "LLMNR/NBT-NS/mDNS Poisoner and rogue service provider"
readme = "docs/README.pypi.md"
license = "MIT"
# Python 3.11 required as tomllib was added in 3.11
requires-python = ">=3.11"
authors = [{ name = "MatrixEditor" }]
maintainers = [{ name = "MatrixEditor" }]
keywords = [
"llmnr",
"mdns",
"nbt-ns",
"network-security",
"penetration-testing",
"poisoner",
"rogue-services",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: System :: Networking",
]
dependencies = [
"aiosmtpd",
"aioquic",
"caterpillar-py>=2.8.1",
"impacket",
"jinja2",
"pyasn1",
"pyipp",
"rich",
"scapy",
"sqlalchemy",
"typer",
"typing-extensions",
"prompt_toolkit",
]
[project.scripts]
dementor = "dementor.standalone:run_from_cli"
Dementor = "dementor.standalone:run_from_cli"
[project.urls]
Homepage = "https://matrixeditor.github.io/dementor"
Documentation = "https://matrixeditor.github.io/dementor"
Source = "https://github.com/MatrixEditor/dementor"
Issues = "https://github.com/MatrixEditor/dementor/issues"
[tool.setuptools.packages.find]
where = ["."]
include = ["dementor*"]
[tool.setuptools.package-data]
dementor = ["assets/**"]
[dependency-groups]
dev = [
"pytest",
"ruff",
]
docs = [
"shibuya",
"sphinx",
"sphinx-autobuild>=2025.8.25",
"sphinx-copybutton",
"sphinx-design",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
line-length = 90
src = ["dementor", "tests"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# --- A: flake8-builtins ---
"A001", # builtin-variable-shadowing -- unavoidable in Sphinx conf.py (copyright)
"A002", # builtin-argument-shadowing -- common in protocol code (type, id)
# --- ANN: flake8-annotations -- use ty for gradual typing ---
"ANN",
# --- ARG: flake8-unused-arguments ---
"ARG001", # unused-function-argument -- CLI/callback params required by framework
"ARG002", # unused-method-argument -- interface/callback stubs
# --- ASYNC: flake8-async ---
"ASYNC240", # blocking-path-method-in-async -- startup-time checks, not hot path
# --- BLE: flake8-blind-except ---
"BLE001", # blind-except -- legitimate in protocol handlers
# --- C90: mccabe ---
"C901", # complex-structure -- protocol handlers are inherently complex
# --- COM: flake8-commas ---
"COM812", # missing-trailing-comma -- conflicts with formatter
# --- D: pydocstyle ---
"D100", "D101", "D102", "D103", "D104", "D105", "D107", # missing docstrings
"D203", # conflicts with D211
"D212", # conflicts with D213 (must pick one)
"D213", # conflicts with D212 (must pick one)
"D401", # non-imperative-mood -- too opinionated
# --- E: pycodestyle ---
"E501", # line-too-long -- formatter handles what it can
# --- EM: flake8-errmsg ---
"EM101", # raw-string-in-exception -- too pedantic
"EM102", # f-string-in-exception -- too pedantic
# --- ERA: eradicate ---
"ERA001", # REVISIT notes, protocol reference tables, placeholders
# --- EXE: flake8-executable ---
"EXE002", # shebang-missing-executable-file -- not relevant
# --- FBT: flake8-boolean-trap ---
"FBT", # too strict for config-heavy protocol code
# --- FIX: flake8-fixme ---
"FIX002", # line-contains-todo -- TODOs are intentional
# --- G: flake8-logging-format ---
"G004", # logging-f-string -- f-strings in logging are fine
# --- I: isort ---
"I001", # unsorted-imports -- custom import grouping
# --- INP: flake8-no-pep420 ---
"INP001", # standalone script directories don't need __init__.py
# --- ISC: flake8-implicit-str-concat ---
"ISC003", # explicit-string-concatenation -- often more readable
# --- N: pep8-naming ---
"N801", "N802", "N803", "N806", # protocol code uses non-standard names
"N811", "N812", "N815", "N817", # import/variable naming conventions
"N818", # error-suffix -- control-flow exceptions are idiomatic
# --- PL: Pylint ---
"PLR0912", # too-many-branches -- protocol handlers
"PLR0913", # too-many-arguments -- protocol constructors
"PLR0915", # too-many-statements -- protocol handlers
"PLR2004", # magic-value-comparison -- protocol numeric constants
# --- PTH: flake8-use-pathlib ---
"PTH", # os.path -> pathlib -- low priority
# --- RET: flake8-return ---
"RET503", # implicit-return -- idiomatic Python
# --- RUF: Ruff-specific rules ---
"RUF003", # ambiguous-unicode-character-comment -- intentional
"RUF012", # mutable-class-default -- false positives with struct-like patterns
# --- S: flake8-bandit ---
"S101", # assert -- valid in non-production paths
"S104", # hardcoded-bind-all-interfaces -- intentional for network tool
"S311", # suspicious-non-cryptographic-random -- not used for crypto
# --- SLF: flake8-self ---
"SLF001", # private-member-access -- common in internal wiring
# --- T20: flake8-print ---
"T201", # print -- intentional in CLI/diagnostic code
# --- TD: flake8-todos ---
"TD002", # missing-todo-author -- not needed for small team
"TD003", # missing-todo-link -- not needed for small team
# --- TRY: tryceratops ---
"TRY003", # raise-vanilla-args -- too pedantic
]
[tool.ruff.format]
docstring-code-format = true
# REVISIT: dynamic version
# [tool.setuptools_scm]
# version_file = "dementor/version.py"