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 /
plogical /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
.my.cnf.4370
0
B
-rw-r--r--
.mysql.4370
0
B
-rw-r--r--
Backupsv2.py
59.03
KB
-rw-r--r--
ClusterManager.py
17.68
KB
-rw-r--r--
CyberCPLogFileWriter.py
4.37
KB
-rw-r--r--
CyberPanelUpgrade.py
3.64
KB
-rw-r--r--
DockerSites.py
61.86
KB
-rw-r--r--
IncScheduler.py
88.07
KB
-rw-r--r--
SwitchOldAliasToNew.py
2.4
KB
-rw-r--r--
__init__.py
0
B
-rw-r--r--
acl.py
50.61
KB
-rw-r--r--
acl.py.backup_dns_fix
48.95
KB
-rw-r--r--
adminPass.py
2.41
KB
-rw-------
alias.py
647
B
-rw-r--r--
apiAccess.py
418
B
-rw-r--r--
applicationInstaller.py
352.05
KB
-rw-r--r--
backupSchedule.py
22.21
KB
-rw-r--r--
backupScheduleLocal.py
5.31
KB
-rw-r--r--
backupUtilities.py
110.15
KB
-rw-r--r--
bandwidthReset.py
7.25
KB
-rw-r--r--
cPanelImporter.py
41.33
KB
-rw-r--r--
childDomain.py
1.25
KB
-rw-r--r--
cronUtil.py
5.34
KB
-rw-r--r--
csf.py
48.63
KB
-rw-r--r--
customACME.py
51.55
KB
-rw-r--r--
dnsUtilities.py
38.7
KB
-rw-r--r--
domain.xml
0
B
-rw-r--r--
emergency_2fa_disable.py
1.24
KB
-rw-r--r--
filesPermsUtilities.py
6.17
KB
-rw-r--r--
filesPermsUtilities.py.bak
6.17
KB
-rw-r--r--
findBWUsage.py
4.6
KB
-rw-r--r--
firewallUtilities.py
8.18
KB
-rw-r--r--
ftpUtilities.py
7.56
KB
-rw-r--r--
getSystemInformation.py
5.29
KB
-rw-r--r--
hashPassword.py
1.22
KB
-rw-r--r--
httpProc.py
4.81
KB
-rw-r--r--
installUtilities.py
19.04
KB
-rw-r--r--
letsEncrypt.py
0
B
-rw-r--r--
mailUtilities.py
104.79
KB
-rw-r--r--
modSec.py
26.71
KB
-rw-r--r--
mysqlUtilities.py
41.46
KB
-rw-r--r--
phpUtilities.py
19.8
KB
-rw-r--r--
phpmyadminsignin.php
2.08
KB
-rw-r--r--
pluginManagerGlobal.py
813
B
-rw-r--r--
processUtilities.py
22.42
KB
-rw-r--r--
randomPassword.py
200
B
-rw-r--r--
rebuildQuotas.py
3.29
KB
-rw-r--r--
remoteBackup.py
14.81
KB
-rw-r--r--
remoteTransferUtilities.py
16.43
KB
-rw-r--r--
renew.py
5.64
KB
-rwxr-xr-x
restoreMeta.py
7.65
KB
-rw-r--r--
serverLogs.py
735
B
-rw-r--r--
sslUtilities.py
49.26
KB
-rw-r--r--
sslv2.py
26.18
KB
-rw-r--r--
test.py
0
B
-rw-r--r--
test1.py
0
B
-rw-r--r--
tuning.py
18.08
KB
-rw-r--r--
upgrade.py
213.62
KB
-rw-r--r--
upgrade.py.bak
97.03
KB
-rw-r--r--
upgradeCritical.py
1.15
KB
-rwx------
vhost.py
47
KB
-rw-r--r--
vhostConfs.py
14.41
KB
-rw-r--r--
virtualHostUtilities.py
92.31
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : findBWUsage.py
import sys sys.path.append('/usr/local/CyberCP') import os from plogical import CyberCPLogFileWriter as logging import shlex import subprocess import validators class findBWUsage: @staticmethod def parse_last_digits(line): return line.split(' ') @staticmethod def calculateBandwidth(domainName): try: path = "/home/"+domainName+"/logs/"+domainName+".access_log" if not os.path.exists(path): return 0 from processUtilities import ProcessUtilities logData = ProcessUtilities.outputExecutioner('cat %s' % (path), 'nobody').splitlines() logDataLines = len(logData) if not os.path.exists("/home/"+domainName+"/logs"): return 0 bwmeta = "/home/cyberpanel/%s.bwmeta" % (domainName) if not os.path.exists(path): writeMeta = open(bwmeta, 'w') writeMeta.writelines('0\n0\n') writeMeta.close() os.chmod(bwmeta, 0o600) return 1 if os.path.exists(bwmeta): data = open(bwmeta).readlines() currentUsed = int(data[0].strip("\n")) currentLinesRead = int(data[1].strip("\n")) if currentLinesRead > logDataLines: currentLinesRead = 0 else: currentUsed = 0 currentLinesRead = 0 startLine = currentLinesRead for line in logData[startLine:]: line = line.strip('"\n') currentLinesRead = currentLinesRead + 1 if len(line)>10: currentUsed = int(findBWUsage.parse_last_digits(line)[9].replace('"', '')) + currentUsed writeMeta = open(bwmeta,'w') writeMeta.writelines(str(currentUsed)+"\n") writeMeta.writelines(str(currentLinesRead) + "\n") writeMeta.close() os.chmod(bwmeta, 0o600) except BaseException as msg: logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [calculateBandwidth]") return 0 return 1 @staticmethod def startCalculations(): try: for directories in os.listdir("/home"): if validators.domain(directories): findBWUsage.calculateBandwidth(directories) except BaseException as msg: logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [startCalculations]") return 0 @staticmethod def findDomainBW(domainName,totalAllowed): try: path = "/home/"+domainName+"/logs/"+domainName+".access_log" if not os.path.exists("/home/"+domainName+"/logs"): return [0,0] bwmeta = "/home/" + domainName + "/logs/bwmeta" if not os.path.exists(path): return [0,0] if os.path.exists(bwmeta): try: data = open(bwmeta).readlines() currentUsed = int(data[0].strip("\n")) inMB = int(float(currentUsed)/(1024.0*1024.0)) percentage = float(100) / float(totalAllowed) percentage = float(percentage) * float(inMB) except: return [0,0] if percentage > 100.0: percentage = 100 return [inMB,percentage] else: return [0, 0] except OSError as msg: logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [findDomainBW]") return 0 except ValueError as msg: logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [findDomainBW]") return 0 return 1 @staticmethod def changeSystemLanguage(): try: command = 'localectl set-locale LANG=en_US.UTF-8' cmd = shlex.split(command) res = subprocess.call(cmd) if res == 1: logging.CyberCPLogFileWriter.writeToFile("1440 [setup_cron]") else: pass print("###############################################") print(" Language Changed to English ") print("###############################################") except OSError as msg: logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [changeSystemLanguage]") return 0 except ValueError as msg: logging.CyberCPLogFileWriter.writeToFile(str(msg) + " [changeSystemLanguage]") return 0 return 1 findBWUsage.startCalculations()
Close