Linux premium134.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
: 162.0.232.104 | : 216.73.217.117
Cant Read [ /etc/named.conf ]
?8.1.34
mfbsrygq
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
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--
clpwd.py
3.56
KB
-rw-r--r--
config.py
13.26
KB
-rw-r--r--
hardware.py
5.09
KB
-rw-r--r--
pkgplatform.py
309
B
-rw-r--r--
rhncli.py
7.46
KB
-rw-r--r--
rhnreg.py
10.52
KB
-rw-r--r--
rhnserver.py
8.54
KB
-rw-r--r--
rpcServer.py
11.54
KB
-rw-r--r--
statistics.py
1.27
KB
-rw-r--r--
up2dateAuth.py
10.49
KB
-rw-r--r--
up2dateErrors.py
7.99
KB
-rw-r--r--
up2dateLog.py
2.06
KB
-rw-r--r--
up2dateUtils.py
1.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : statistics.py
import os from subprocess import PIPE, Popen def get_users_count_from_cllib(): """ Get user count using the common CloudLinux library. This number is more accurate for systems with a control panel installed. """ if not os.path.exists('/opt/cloudlinux/venv/bin'): raise ValueError("CloudLinux virtual environment not found") cmd = '/opt/cloudlinux/venv/bin/python3 -c "from clcommon.cpapi import cpusers; print(cpusers())"' process = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE) output, errors = [result.decode().strip() for result in process.communicate()] if errors: raise ValueError(f"Failed to get users from CloudLinux library: {errors}") return len(output[1:-1].split(', ')) def get_users_count_generic(): """ Fallback method to get the user count by looking into the /etc/passwd file. """ from up2date_client.clpwd import ClPwd pwd = ClPwd() return len(pwd.get_uid_dict()) def count_server_users(): """ Get the total count of users on the server. Tries the CloudLinux library first, falls back to generic method if it fails. """ try: users_count = get_users_count_from_cllib() except Exception: users_count = get_users_count_generic() return users_count
Close