| Server IP : 186.64.123.29 / Your IP : 216.73.217.94 Web Server : LiteSpeed System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : tuemp9827 ( 1016) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/350371/root/usr/local/CyberCP/install/ |
Upload File : |
import json
import time
import requests
class InstallLog:
fileName = "/var/log/installLogs.txt"
currentPercent = '10'
LogURL = 'https://platform.cyberpersons.com/servers/RecvData'
ServerIP = ''
@staticmethod
def writeToFile(message):
if message.find(',') == -1:
message = '%s,%s' % (message, InstallLog.currentPercent)
elif message.find('mount -o') > -1 or message.find('usermod -G lscpd,') > -1:
message = '%s,%s' % (message.replace(',', '-'), InstallLog.currentPercent)
else:
try:
InstallLog.currentPercent = message.split(',')[1]
except:
pass
file = open(InstallLog.fileName,'a')
file.writelines("[" + time.strftime(
"%m.%d.%Y_%H-%M-%S") + "] " + message + "\n")
file.close()
try:
finalData = json.dumps({'ipAddress': InstallLog.ServerIP, "InstallCyberPanelStatus": message})
requests.post(InstallLog.LogURL, data=finalData, timeout=10)
except:
pass