Hackfut Security File Manager
Current Path:
/opt/alt/python37/lib/python3.7/site-packages/wmt/common
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
wmt
/
common
/
📁
..
📄
__init__.py
(270 B)
📁
__pycache__
📄
config.py
(4.46 KB)
📄
const.py
(956 B)
📄
exceptions.py
(939 B)
📄
notification.py
(9.37 KB)
📄
report.py
(5.14 KB)
📄
service.py
(586 B)
📄
url_parser.py
(465 B)
📄
utils.py
(2.8 KB)
Editing: const.py
#!/opt/alt/python37/bin/python3 import os BASE_DIR = '/etc/wmt' CONFIG_PATH = os.path.join(BASE_DIR, 'config.json') WMT_DB = '/var/lve/wmt.db' LICENSE_EXPIRED_FAREWELL_LETTER_MARKER = '/var/lve/wmt/wmt_farewell_letter.done' LICENSE_CHECK_PAUSE = 300 # sec JWT_TOKEN = '/etc/sysconfig/rhn/jwt.token' WMT_LOCK_FILE = '/var/run/wmt_scanner.lock' RETENTION_TIME_DAYS = 2 UNKNOWN_RHN_ID = 'unknown' CLICKHOUSE_WMT_ENDPOINT = 'https://stat-api.cloudlinux.com/api/clos-wsmt' PING_TIMEOUT_STATUS_CODE = 408 # userland project SENTRY_DNS = 'https://9713d1296f804031b058b8f2d789d7ac:8ddacae32d8246cf8b25cf826bf3fc0a@cl.sentry.cloudlinux.com/12' WMT_SCANNER_SERVICE_SOLO = 'cl_wmt_scanner_solo' WMT_SCANNER_SERVICE_SOLO_FILE = f'{WMT_SCANNER_SERVICE_SOLO}.service' WMT_TEMPLATES_DIR = '/usr/share/web-monitoring-tool/templates' ERROR_DOMAINS_PING_RETRY_INTERVAL = 300 # 5min ERROR_DOMAINS_ALERT_INTERVAL = 6 # hours PING_CONNECTIONS = 10 # concurrent requests
Upload File
Create Folder