-
Notifications
You must be signed in to change notification settings - Fork 435
/
Copy pathpyproject.toml
189 lines (170 loc) · 4.5 KB
/
pyproject.toml
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
[tool.poetry]
name = "CAPEv2"
version = "0.1.0"
description = "CAPE: Malware Configuration And Payload Extraction"
authors = ["Kevin O'Reilly <[email protected]>", "doomedraven <[email protected]>"]
license = "MIT"
package-mode = false
requires-poetry = ">=2.0"
[tool.poetry.dependencies]
python = ">=3.10, <4.0"
alembic = "1.9.4"
gevent = "24.2.1"
greenlet = "3.0.3"
Pebble = "5.1.0"
# pymisp = "2.4.144"
cryptography = ">=44.0.1"
requests = {version = "2.32.2", extras = ["security", "socks"]}
# pyOpenSSL = "24.0.0"
pefile = "*"
tldextract = ">=5.1.2"
oletools = "0.60.2"
olefile = "0.47"
# mixbox = "1.0.5"
capstone = "5.0.5"
pycryptodomex = ">=3.20.0"
# xmltodict = "0.12.0"
requests-file = ">=1.5.1"
orjson = ">=3.9.15"
# maec = "4.1.0.17"
# regex = "2021.7.6"
SFlock2 = {version = ">=0.3.66", extras = ["shellcode","linux"]}
# volatility3 = "2.11.0"
# XLMMacroDeobfuscator = "0.2.7"
pyzipper = "0.3.6"
flare-capa = "9.0.0"
Cython = "3.0.11"
Django = ">=4.2.18"
SQLAlchemy = "1.4.50"
SQLAlchemy-Utils = "0.41.1"
Jinja2 = "^3.1.5"
chardet = "4.0.0"
pygal = "2.4.0"
dpkt = "1.9.6"
dnspython = "2.7.0"
pytz = "2021.1"
maxminddb = "2.6.3"
Pillow = ">=8.2.0"
python-whois = "0.9.5"
bs4 = "0.0.1"
pydeep2 = "0.5.1"
django-recaptcha = "4.0.0" # https://pypi.org/project/django-recaptcha/
django-crispy-forms = "2.3"
crispy-bootstrap4 = "2024.10"
django-settings-export = "1.2.1"
django-csp = "3.8"
django-extensions = "3.2.3"
django-ratelimit = "4.1.0"
# qrcode = "7.2"
python-tlsh = "4.5.0"
djangorestframework = "3.15.2"
yara-python = "4.5.1"
pymongo = ">=4.0.1"
# ImageHash = "4.3.1"
LnkParse3 = "1.5.0"
cachetools = "^5.5.1"
django-allauth = "65.3.1" # https://django-allauth.readthedocs.io/en/latest/configuration.html
# socks5man = {git = "https://github.com/CAPESandbox/socks5man.git", rev = "7b335d027297b67abdf28f38cc7d5d42c9d810b5"}
# httpreplay = {git = "https://github.com/CAPESandbox/httpreplay.git", rev = "0d5a5b3144ab15f93189b83ca8188afde43db134"}
# bingraph = {git = "https://github.com/CAPESandbox/binGraph.git", rev = "552d1210ac6770f8b202d0d1fc4610cc14d878ec"}
psycopg2-binary = "^2.9.10"
ruff = ">=0.7.2"
paramiko = "3.5.0"
psutil = "6.1.1"
peepdf-3 = "4.1.0"
pyre2-updated = ">=0.3.8"
Werkzeug = "3.1.3"
packaging = "24.2"
setuptools = "75.8.0"
# command line config manipulation
crudini = "0.9.5"
python-dateutil = "2.9.0.post0"
# guac-session
pyguacamole = "^0.11"
uvicorn = {extras = ["standard"], version = "^0.18.2"}
gunicorn = "^22.0.0"
channels = "^3.0.5"
setproctitle = "1.3.2"
CAPE-parsers = "*"
maco = "1.1.8"
[tool.poetry.extras]
maco = ["maco"]
[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
isort = "^5.10.1"
mypy = "1.14.1"
pytest = "7.2.2"
pytest-pretty = "1.1.0"
pytest-cov = "3.0.0"
pytest-mock = "3.7.0"
pytest-django = "4.5.2"
pytest_asyncio = "0.18.3"
pytest-xdist = "3.6.1"
pytest-asyncio = "0.18.3"
pytest-freezer = "0.4.8"
tenacity = "8.1.0"
types-requests = "^2.32"
httpretty = "^1.1.4"
func-timeout = "^4.3.5"
pre-commit = "^2.19.0"
[tool.black]
line-length = 132
include = "\\.py(_disabled)?$"
[tool.isort]
profile = "black"
no_lines_before = ["FUTURE", "STDLIB"]
line_length = 132
supported_extensions = ["py", "py_disabled"]
[tool.flake8]
max-line-length = 132
exclude = ".git,__pycache__,.cache,.venv"
[tool.pytest.ini_options]
django_find_project = false
DJANGO_SETTINGS_MODULE = "web.settings"
pythonpath = [".", "web"]
testpaths = ["tests", "agent"]
norecursedirs = "tests/zip_compound"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 132
exclude = [
"./analyzer/linux/dbus_next",
]
[tool.ruff.lint]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
# "N", # pep8-naming
"G", # flake8-logging-format
]
ignore = [
"E501", # ignore due to conflict with formatter
"N818", # exceptions don't need the Error suffix
"E741", # allow ambiguous variable names
"E402",
"W605", # ToDo to fix - Invalid escape sequence
]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"stubs/*" = [
"N", # naming conventions don't matter in stubs
"F403", # star imports are okay in stubs
"F405", # star imports are okay in stubs
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["libqtile", "test"]
default-section = "third-party"
[tool.mypy]
warn_unused_configs = true
files = [
"agent/**/*.py",
]