Linux box325.rapidenet.ca 5.14.0-687.25.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 13 11:40:33 EDT 2026 x86_64
LiteSpeed
Server IP : 68.168.116.250 & Your IP : 216.73.216.215
Domains :
Cant Read [ /etc/named.conf ]
User : protectionrat
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.9 /
site-packages /
up2date_client /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-07-15 01:56
__init__.py
0
B
-rw-r--r--
2026-06-25 16:02
clpwd.py
3.56
KB
-rw-r--r--
2026-06-25 16:02
config.py
14.83
KB
-rw-r--r--
2026-06-25 16:02
hardware.py
5.09
KB
-rw-r--r--
2026-06-25 16:02
pkgplatform.py
309
B
-rw-r--r--
2026-06-25 18:54
rhncli.py
7.46
KB
-rw-r--r--
2026-06-25 16:02
rhnreg.py
11.64
KB
-rw-r--r--
2026-06-25 16:02
rhnserver.py
8.54
KB
-rw-r--r--
2026-06-25 16:02
rpcServer.py
11.55
KB
-rw-r--r--
2026-06-25 16:02
statistics.py
1.27
KB
-rw-r--r--
2026-06-25 16:02
up2dateAuth.py
13.1
KB
-rw-r--r--
2026-06-25 16:02
up2dateErrors.py
7.99
KB
-rw-r--r--
2026-06-25 16:02
up2dateLog.py
2.26
KB
-rw-r--r--
2026-06-25 16:02
up2dateUtils.py
1.7
KB
-rw-r--r--
2026-06-25 18:54
Save
Rename
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