Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
lve /
dbgovernor /
modules /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-09-04 11:33
__init__.py
381
B
-rw-r--r--
2026-08-06 17:01
base.py
65.16
KB
-rw-r--r--
2026-08-06 17:01
cpanel.py
23.74
KB
-rw-r--r--
2026-08-06 17:01
da.py
17.31
KB
-rw-r--r--
2026-08-06 17:01
ispmanager.py
3.19
KB
-rw-r--r--
2026-08-06 17:01
iworx.py
1.04
KB
-rw-r--r--
2026-08-06 17:01
plesk.py
1.24
KB
-rw-r--r--
2026-08-06 17:01
storage.py
6.69
KB
-rw-r--r--
2026-08-06 17:01
Save
Rename
# 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 # """ This module contains class for managing governor on ISPManager server """ import os from utilities import exec_command, grep from .base import InstallManager class ISPMManager(InstallManager): """ Implementation for ipsmanager panel """ CONF_PATH = "/home/interworx/iworx.ini" @staticmethod def _read_ispmgr_password(conf_path): """ Reproduce in pure Python the former shell pipeline: sed -n '/DbServer "MySQL"/,/SupportCenterServer/p' | sed -n '/Password /p' | sed '/Change/d' | tr -d '\n' | cut -d" " -f2 Returns the extracted password (stripped), or "" when nothing matches (matching the empty output the missing-file/no-match pipeline produced). """ try: with open(conf_path) as conf: lines = conf.read().split("\n") except (IOError, OSError): return "" # sed range: from the line matching the start regex through the line # matching the end regex (inclusive); end is matched only after start. selected = [] in_range = False for line in lines: if not in_range: if 'DbServer "MySQL"' in line: in_range = True selected.append(line) else: selected.append(line) if "SupportCenterServer" in line: break # /Password /p then /Change/d matched = [ln for ln in selected if "Password " in ln and "Change" not in ln] # tr -d '\n' joins with no separator; cut -d" " -f2 takes field 2, # or the whole string when there is no space delimiter. joined = "".join(matched) fields = joined.split(" ") value = fields[1] if len(fields) > 1 else joined return value.strip() def get_mysql_user(self): """ Retrieve MySQL user name and password and save it into self attributes """ self.MYSQLUSER = "root" self.MYSQLPASSWORD = "Unknown" if os.path.exists("/usr/local/ispmgr/etc/ispmgr.conf"): # Native parse (replaces cat|sed|sed|sed|tr|cut shell pipeline: # range DbServer "MySQL" .. SupportCenterServer, lines with # 'Password ' but not 'Change', joined, field 2 on space). self.MYSQLPASSWORD = self._read_ispmgr_password( "/usr/local/ispmgr/etc/ispmgr.conf") elif os.path.exists("/usr/local/mgr5/etc/ispmgr.conf.d/db.conf"): try: self.MYSQLUSER = \ grep("/usr/local/mgr5/etc/ispmgr.conf.d/db.conf", "DBUser")[ 0].split(" ")[1].strip() except IndexError: self.MYSQLUSER = None try: self.MYSQLPASSWORD = \ grep("/usr/local/mgr5/etc/ispmgr.conf.d/db.conf", "DBPassword")[ 0].split(" ")[1].strip() except IndexError: self.MYSQLPASSWORD = None