SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > usr > share > > python-cllib > scripts


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/usr/share//python-cllib/scripts

NameTypeSizeLast ModifiedActions
cl-common File 4322 bytes June 23 2025 12:47:48.
cl_sysctl File 4620 bytes June 23 2025 12:47:48.
cpanel-dbmapping File 3925 bytes June 23 2025 12:47:48.
da_suid_caller.py File 686 bytes June 23 2025 12:47:48.
getpaneluserscount File 738 bytes June 23 2025 12:47:48.
plesk_suid_caller.py File 905 bytes June 23 2025 12:47:48.

Reading File: //opt/cloudlinux/venv/usr/share//python-cllib/scripts/plesk_suid_caller.py

# coding: utf-8

# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

import sys
import json
import traceback

from clcommon import ClPwd
from clcommon.cpapi.plugins.plesk import userdomains
from clcommon.cpapi.cpapiexceptions import NoPanelUser


try:
    uid = int(sys.argv[1])
    _clpwd = ClPwd()
    pwd_list = _clpwd.get_pw_by_uid(uid)
    for user_pwd in pwd_list:
        username = user_pwd.pw_name
        try:
            res = userdomains(username, as_root=True)
            print(json.dumps(res))
            sys.exit(0)
        except NoPanelUser:
            pass
    print(json.dumps({}))
    sys.exit(0)
except (NoPanelUser, KeyError):
    print(json.dumps({}))
    sys.exit(11)
except Exception:
    print(json.dumps(traceback.format_exc()))
    sys.exit(10)

SILENT KILLER Tool