forked from BC-SECURITY/Empire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (126 loc) · 3.45 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
[tool.poetry]
name = "empire-bc-security-fork"
version = "5.7.3"
description = ""
authors = ["BC Security <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/BC-SECURITY/Empire"
repository = "https://github.com/BC-SECURITY/Empire.git"
packages = [
{ include = "empire.py" },
{ include = "empire/server/**/*.py" },
{ include = "empire/client/**/*.py" },
]
[tool.poetry.dependencies]
python = ">=3.8,<3.12"
urllib3 = "^2.0.3"
requests = "^2.31.0"
iptools = "^0.7.0"
macholib = "^1.16.2"
dropbox = "^11.36.2"
pyOpenSSL = "^23.2.0"
zlib_wrapper = "^0.1.3"
netifaces = "^0.11.0"
jinja2 = "^3.1.2"
xlutils = "^2.0.0"
pyparsing = "^3.1.0"
PyMySQL = "^1.1.0"
SQLAlchemy = "^2.0.18"
PyYAML = "^6.0.1"
SQLAlchemy-Utc = "^0.14.0"
prompt-toolkit = "^3.0.39"
terminaltables = "^3.1.10"
docopt = "^0.6.2"
humanize = "^4.7.0"
pycryptodome = "^3.18.0"
cryptography = "^41.0.1"
fastapi = "^0.99.1"
uvicorn = "^0.22.0"
jq = "^1.4.1"
aiofiles = "^23.1.0"
python-multipart = "^0.0.6"
python-jose = {version = "^3.3.0", extras = ["cryptography"]}
passlib = {version = "^1.7.4", extras = ["bcrypt"]}
websockify = "^0.10.0"
websockets = "^11.0.3"
pyperclip = "^1.8.2"
pyvnc = {git = "https://github.com/BC-SECURITY/pyVNC.git"}
python-socketio = {extras = ["client"], version = "^5.8.0"}
Flask = "^2.3.2"
pysecretsocks = {git = "https://github.com/BC-SECURITY/PySecretSOCKS.git"}
donut-shellcode = "^1.0.2"
python-obfuscator = "^0.0.2"
pyinstaller = "^5.13.0"
md2pdf = "^1.0.1"
tabulate = "^0.9.0"
stix2 = "^3.0.1"
[tool.poetry.group.dev.dependencies]
httpx = "^0.24.1" # For starlette TestClient
black = "^23.7.0"
pytest = "^7.4.0"
pytest-timeout = "^2.1.0"
ruff = "^0.0.283"
pytest-cov = "^4.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
extend-exclude = '''
(empire/server/data*)
| (empire/server/downloads*)
| (empire/client/generated-stagers*)
| (empire/client/downloads*)
'''
force-exclude = '''
(empire/server/data*)
| (empire/server/downloads*)
| (empire/client/generated-stagers*)
| (empire/client/downloads*)
'''
#include = '.*\.(plugin)$'
[tool.ruff]
extend-exclude = [
'empire/server/data',
'empire/server/downloads',
'empire/server/common/malleable',
'empire/client/generated-stagers',
'empire/client/downloads',
'empire/server/plugins/Report-Generation-Plugin'
]
# Will revisit line lengths later. Black won't format the strings and comments
# by default. And the experimental flag still has some issues.
# fixes right now: https://github.com/psf/black/issues/2188
extend-ignore = ["E501"]
select = [
"E", # Pycodestyle
"W", # Pycodestyle
"F", # Pyflakes
"I", # Isort (I)
"UP", # PyUpgrade
"B" # Bugbear
]
target-version = "py38"
[tool.ruff.pyupgrade]
# https://docs.astral.sh/ruff/settings/#pyupgrade-keep-runtime-typing
keep-runtime-typing = true
[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.params.Depends", "fastapi.Query", "fastapi.params.Query", "fastapi.File"]
[tool.coverage.run]
omit = [
"empire/server/data/*",
]
[tool.coverage.report]
# https://coverage.readthedocs.io/en/latest/config.html
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
ignore_errors = true