⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.155
Server IP:
57.129.66.90
Server:
Linux vps-7f548908 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.27
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()