OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clsentry
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:06 AM
rwxr-xr-x
📄
__init__.py
5.32 KB
06/23/2025 12:47:48 PM
rw-r--r--
📁
__pycache__
-
09/05/2025 09:30:59 AM
rwxr-xr-x
📄
client.py
4.97 KB
06/23/2025 12:47:48 PM
rw-r--r--
📄
processors.py
901 bytes
06/23/2025 12:47:48 PM
rw-r--r--
📄
utils.py
987 bytes
06/23/2025 12:47:48 PM
rw-r--r--
Editing: processors.py
Close
#!/opt/cloudlinux/venv/bin/python3 -bb # coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT """Module for all sentry processors related code""" from raven.processors import SanitizePasswordsProcessor from clsentry.utils import SENSITIVE_FIELDS class UserlandSanitize(SanitizePasswordsProcessor): """ Beside from default SanitizePasswordsProcessor algorithm, also search key-values in query-like strings. Also sanitize some additional fields. """ FIELDS = frozenset(SENSITIVE_FIELDS) def sanitize(self, item, value): new_value = super().sanitize(item, value) if new_value == value and isinstance(value, str) and '=' in value: new_value = self._sanitize_keyvals(value, '&') return new_value