forked from OWASP/SecureTea-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_debian.py
96 lines (89 loc) · 3.23 KB
/
setup_debian.py
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
# -*- coding: utf-8 -*-
u"""SecureTea setup.
Project:
╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐
╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤
╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴
Version: 2.2
Module: SecureTea
Attributes:
distros (list): Description
files_definition (TYPE): Description
os_name (TYPE): Description
"""
from setuptools import find_packages
from setuptools import setup
import platform
import subprocess
import re
files_definition = [
('/etc/securetea', ['securetea.conf']),
('', ['securetea.conf']),
('/etc/securetea/asp', [
'securetea/lib/auto_server_patcher/configs/commands.json',
'securetea/lib/auto_server_patcher/configs/config.json'
]),
('/etc/securetea/log_monitor/server_log/payloads', [
'securetea/lib/log_monitor/server_log/rules/payloads/bad_ua.txt',
'securetea/lib/log_monitor/server_log/rules/payloads/lfi.txt',
'securetea/lib/log_monitor/server_log/rules/payloads/port_scan_ua.txt',
'securetea/lib/log_monitor/server_log/rules/payloads/sqli.txt',
'securetea/lib/log_monitor/server_log/rules/payloads/web_shell.txt',
'securetea/lib/log_monitor/server_log/rules/payloads/xss.txt']),
('/etc/securetea/log_monitor/server_log/regex', [
'securetea/lib/log_monitor/server_log/rules/regex/sqli.txt',
'securetea/lib/log_monitor/server_log/rules/regex/xss.txt']),
('/etc/securetea/log_monitor/system_log', [
'securetea/lib/log_monitor/system_log/harmful_command.txt'
]),
('/etc/securetea/web_deface', [
'securetea/lib/web_deface/config/path_map.json'
]),
('/etc/securetea/antivirus', [
'securetea/lib/antivirus/config/config.json'
])
]
entry_points = {
'console_scripts': [
'securetea=securetea.entry_points.securetea_core_ep:run_core',
'securetea-server=securetea.entry_points.server_ep:start_server_process',
'securetea-system=securetea.entry_points.system_ep:start_system_process',
'securetea-iot=securetea.entry_points.iot_ep:start_iot_process'
]
}
setup(
name='securetea',
version='2.2',
packages=find_packages(exclude=[
"test",
"*.test",
"*.test.*",
"test.*"
]),
data_files=files_definition,
entry_points=entry_points,
license='MIT',
description='SecureTea',
long_description=open('doc/en-US/user_guide_pypi.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/OWASP/SecureTea-Project',
author='OWASP SecureTea',
author_email='[email protected]',
install_requires=[
],
extras_require={
},
python_requires='>=3.5',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Natural Language :: English',
'Topic :: Software Development :: Version Control :: Git',
'Topic :: Software Development :: Testing :: Unit',
],
zip_safe=False
)