Linux cyberpanel 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
LiteSpeed
: 160.191.175.3 | : 216.73.216.114
Cant Read [ /etc/named.conf ]
8.2.29
aodai6801
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 /
local /
CyberCP /
websiteFunctions /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
migrations
[ DIR ]
drwxr-xr-x
static
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
.DS_Store
6
KB
-rw-r--r--
StagingSetup.py
13
KB
-rw-r--r--
__init__.py
0
B
-rw-r--r--
admin.py
145
B
-rw-r--r--
apps.py
133
B
-rw-r--r--
dockerviews.py
5.87
KB
-rw-r--r--
models.py
7.73
KB
-rw-r--r--
pluginManager.py
4.46
KB
-rw-r--r--
resource_monitoring.py
1.91
KB
-rw-r--r--
signals.py
3.53
KB
-rw-r--r--
tests.py
150
B
-rw-r--r--
urls.py
11.74
KB
-rw-r--r--
views.py
57.27
KB
-rw-r--r--
website.py
315.32
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : resource_monitoring.py
import psutil import os from plogical.processUtilities import ProcessUtilities from plogical.acl import ACLManager import plogical.CyberCPLogFileWriter as logging def get_website_resource_usage(externalApp): try: user = externalApp if not user: return {'status': 0, 'error_message': 'User not found'} # Get CPU and Memory usage using ps command command = f"ps -u {user} -o pcpu,pmem | grep -v CPU | awk '{{cpu += $1; mem += $2}} END {{print cpu, mem}}'" result = ProcessUtilities.outputExecutioner(command) try: cpu_percent, memory_percent = map(float, result.split()) except: cpu_percent = 0 memory_percent = 0 # Get disk usage using du command website_path = f"/home/{user}/public_html" if os.path.exists(website_path): # Get disk usage in MB command = f"du -sm {website_path} | cut -f1" disk_used = float(ProcessUtilities.outputExecutioner(command)) # Get total disk space command = f"df -m {website_path} | tail -1 | awk '{{print $2}}'" disk_total = float(ProcessUtilities.outputExecutioner(command)) # Calculate percentage disk_percent = (disk_used / disk_total) * 100 if disk_total > 0 else 0 else: disk_used = 0 disk_total = 0 disk_percent = 0 return { 'status': 1, 'cpu_usage': round(cpu_percent, 2), 'memory_usage': round(memory_percent, 2), 'disk_used': round(disk_used, 2), 'disk_total': round(disk_total, 2), 'disk_percent': round(disk_percent, 2) } except BaseException as msg: logging.CyberCPLogFileWriter.writeToFile(f'Error in get_website_resource_usage: {str(msg)}') return {'status': 0, 'error_message': str(msg)}
Close