403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/system-config-network/netconfpkg/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/system-config-network/netconfpkg/NCProfile.py
"Profile"
from netconfpkg.NCHostsList import HostsList
from netconfpkg.gdt import (Gdtstruct, gdtstruct_properties,
                            Gdtstr, Gdtlist, Gdtbool, gdtlist_properties)

class ActiveIPsecs(Gdtlist):
    "List of active IPsec in the Profile"
    gdtlist_properties(Gdtstr)

class DeviceId(Gdtstr):
    "Id of a Device object"

class ActiveDevices(Gdtlist):
    "List of active Devices in the Profile"
    gdtlist_properties(Gdtstr)

class Domain(Gdtstr):
    "Search Domain in a SearchList"
    
class SearchList(Gdtlist):
    "Domain search list from /etc/resolv.conf"
    gdtlist_properties(Gdtstr)

class DNS(Gdtstruct):
    "DNS setup of a profile"
    gdtstruct_properties([
                          ('Hostname', Gdtstr, "Test doc string"),
                          ('Domainname', Gdtstr, "Test doc string"),
                          ('PrimaryDNS', Gdtstr, "Test doc string"),
                          ('SecondaryDNS', Gdtstr, "Test doc string"),
                          ('TertiaryDNS', Gdtstr, "Test doc string"),
                          ('SearchList', SearchList, "Test doc string"),
                          ])
    
    def __init__(self):
        super(DNS, self).__init__()
        self.Hostname = None
        self.Domainname = None
        self.PrimaryDNS = None
        self.SecondaryDNS = None
        self.TertiaryDNS = None
        self.SearchList = SearchList()
    
class Profile(Gdtstruct):
    "Profile for s-c-network"
    gdtstruct_properties([
                          ('ProfileName', Gdtstr, "Test doc string"),
                          ('Active', Gdtbool, "Test doc string"),
                          ('ActiveDevices', ActiveDevices, "Test doc string"),
                          ('ActiveIPsecs', ActiveIPsecs, "Test doc string"),
                          ('DNS', DNS, "Test doc string"),
                          ('HostsList', HostsList, "Test doc string"),
                          ])
    def __init__(self):
        super(Profile, self).__init__()
        self.ProfileName = None
        self.Active = None
        self.DNS = DNS()
        self.ActiveDevices = ActiveDevices()
        self.ActiveIPsecs = ActiveIPsecs()
        self.HostsList = HostsList()

Youez - 2016 - github.com/yon3zu
LinuXploit