⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.74
Server IP:
104.21.48.1
Server:
Linux vmi2315822.contaboserver.net 5.15.0-134-generic #145-Ubuntu SMP Wed Feb 12 20:08:39 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.3.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
CyberCP
/
pluginHolder
/
View File Name :
views.py
# -*- coding: utf-8 -*- from django.shortcuts import render from plogical.mailUtilities import mailUtilities import os from xml.etree import ElementTree from plogical.httpProc import httpProc def installed(request): mailUtilities.checkHome() pluginPath = '/home/cyberpanel/plugins' pluginList = [] if os.path.exists(pluginPath): for plugin in os.listdir(pluginPath): data = {} completePath = '/usr/local/CyberCP/' + plugin + '/meta.xml' pluginMetaData = ElementTree.parse(completePath) data['name'] = pluginMetaData.find('name').text data['type'] = pluginMetaData.find('type').text data['desc'] = pluginMetaData.find('description').text data['version'] = pluginMetaData.find('version').text pluginList.append(data) proc = httpProc(request, 'pluginHolder/plugins.html', {'plugins': pluginList}, 'admin') return proc.render()