Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK ! Gf client.pynu [ #!/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
import platform
import threading
from requests.exceptions import RequestException
from clcommon import cpapi, get_lve_version
from clcommon.lib.cledition import get_cl_edition_readable
from clcommon.utils import get_rhn_systemid_value, get_username
from clcommon.lib.network import get_ip_addr, get_hostname
from clcommon.cpapi.const import UNKNOWN_CP_NAME
from raven import Client
from raven.transport import RequestsHTTPTransport
from sentry_sdk.transport import HttpTransport
from clsentry.utils import get_pkg_version, SENSITIVE_FIELDS
class SafeRequestsHTTPTransport(RequestsHTTPTransport):
def send(self, url, data, headers):
try:
super().send(url, data, headers)
except RequestException:
# We hide errors while sending message to Sentry in varied cases:
# problems with network, Sentry server is down, incorrect firewall's rules, etc
pass
class SafeRequestsHTTPTransportSentrySdk(HttpTransport):
def _send_event(self, event):
try:
super()._send_event(event)
except RequestException:
# We hide errors while sending message to Sentry in varied cases:
# problems with network, Sentry server is down, incorrect firewall's rules, etc
pass
class ThreadedHttpTransport(HttpTransport):
def send_event(self, event):
thread = threading.Thread(target=super().send_event, args=(event,))
thread.daemon = True
thread.start()
class UserlandClient(Client):
"""
Userland's sentry client with some common settings.
"""
def __init__(self, dsn, **options):
options.update({
'tags': self._get_user_tags(),
'ignore_exceptions': [
KeyboardInterrupt,
],
'exclude_paths': [
'sentry',
'raven',
],
'auto_log_stacks': True,
'string_max_length': 1000,
'list_max_length': 100,
'processors': ('clsentry.processors.UserlandSanitize',),
# async transport is noisy and prints messages like
# 'Sentry is attempting to send 1 pending error messages'
'transport': SafeRequestsHTTPTransport,
})
super().__init__(dsn, **options)
@classmethod
def _get_user_tags(cls):
"""
Get tags for easy search
:rtype: dict
"""
return get_user_tags()
def get_user_tags():
"""
Get tags for easy search
:rtype: dict
"""
cp_description = cpapi.get_cp_description()
cp_version = cp_description.get('version') if cp_description else None
cp_name = cp_description.get('name') if cp_description else UNKNOWN_CP_NAME
cp_product = 'WP2' if cpapi.is_wp2_environment() else None
return {
'Control Panel Name': cp_name,
'Control Panel Version': cp_version,
'Control Panel Product': cp_product,
'CloudLinux version': get_rhn_systemid_value("os_release"),
'Cloudlinux edition': get_cl_edition_readable(),
'Architecture': get_rhn_systemid_value("architecture"),
'lve_version': get_lve_version()[0],
# TODO: use 'include_paths' instead
'lvemanager': get_pkg_version('lvemanager'),
'alt-python27-cllib': get_pkg_version('alt-python27-cllib'),
'lve-stats': get_pkg_version('lve-stats'),
'lve-utils': get_pkg_version('lve-utils'),
'cl-end-server-tools': get_pkg_version('cl-end-server-tools'),
'cl-node-exporter': get_pkg_version('cl-node-exporter'),
'cagefs': get_pkg_version('cagefs'),
'kernel': platform.release(),
'username': get_username(),
'ip_address': get_ip_addr(get_hostname()),
'hostname': get_hostname(),
'system_id': get_rhn_systemid_value("system_id"),
}
def sanitize_event(event, hint):
def sanitize_dict(data):
for key, value in data.items():
if key.lower() in SENSITIVE_FIELDS:
data[key] = '*********'
elif isinstance(value, dict):
sanitize_dict(value)
return data
if "request" in event and isinstance(event["request"], dict):
event["request"] = sanitize_dict(event["request"])
return event
def before_send(event, hint):
exception_values = event.get("exception", {}).get("values", [])
if exception_values:
stacktrace = exception_values[0].get("stacktrace", {})
frames = stacktrace.get("frames", [])
if frames and "sentry" in frames[-1].get("module", ""):
return None
log_record = hint.get("log_record")
if log_record:
fingerprint = getattr(log_record, "fingerprint", None)
if fingerprint:
event["fingerprint"] = [fingerprint]
return sanitize_event(event, hint)
PK ! , __pycache__/processors.cpython-311.opt-1.pycnu [
D. j > d Z ddlmZ ddlmZ G d de ZdS )z-Module for all sentry processors related code )SanitizePasswordsProcessor)SENSITIVE_FIELDSc 8 e Zd ZdZ ee Z fdZ xZS )UserlandSanitizez
Beside from default SanitizePasswordsProcessor algorithm, also
search key-values in query-like strings.
Also sanitize some additional fields.
c t || }||k r/t |t rd|v r| |d }|S )N=&)supersanitize
isinstancestr_sanitize_keyvals)selfitemvalue new_value __class__s /builddir/build/BUILDROOT/alt-python27-cllib-3.4.40-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clsentry/processors.pyr zUserlandSanitize.sanitize sY GG$$T511 *UC"8"8SE\\..uc::I ) __name__
__module____qualname____doc__ frozensetr FIELDSr
__classcell__)r s @r r r sT
Y'
(
(F r r N)r raven.processorsr clsentry.utilsr r r r r sf 4 3 7 7 7 7 7 7 + + + + + + 1 r PK ! $ޜ^- - ' __pycache__/utils.cpython-311.opt-1.pycnu [
D. j , d dl Z d dlmZ dZg dZd ZdS ) N)get_file_linesz/usr/share/cloudlinux)passwordsecretpasswd
authorizationapi_keyapikey
sentry_dsnaccess_tokenemailtokenpassc t t j t | }|r4|d dd d S dS # t t t f$ r Y dS w xY w)z
Get package version using rpm
or None if any error or package absent.
:type package: str
:rtype: str|None
r z.el N)
r ospathjoinPACKAGES_FILES_PATHstripsplitOSErrorIOError
IndexError)package
file_liness /builddir/build/BUILDROOT/alt-python27-cllib-3.4.40-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clsentry/utils.pyget_pkg_versionr s #BGLL1Dg$N$NOO
<a=&&((..ua88;; <