!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/bin/X11/./../../lib/evolution-openldap/../python2.4/site-packages/Ft/Lib/DistExt/   drwxr-xr-x
Free 5.03 GB of 27.03 GB (18.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Util.py (2.33 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import re, sys
from distutils import sysconfig, util
from distutils.errors import DistutilsPlatformError

# a modified version of distutils.sysconfig.parse_config_h that supports
# defines with lowercase letters (need for Py_* defines)
def _parse_config_h(fn, g=None):
    """Parse a config.h-style file.

    A dictionary containing name/value pairs is returned.  If an
    optional dictionary is passed in as the second argument, it is
    used instead of a new dictionary.
    """
    fp = open(fn, 'r')

    if g is None:
        g = {}

    define_rx = re.compile("#define ([a-zA-Z][a-zA-Z0-9_]+) (.*)\n")
    undef_rx = re.compile("/[*] #undef ([a-zA-Z][a-zA-Z0-9_]+) [*]/\n")

    while True:
        line = fp.readline()
        if not line:
            break
        m = define_rx.match(line)
        if m:
            n, v = m.group(1, 2)
            try: v = int(v)
            except ValueError: pass
            g[n] = v
        else:
            m = undef_rx.match(line)
            if m:
                g[m.group(1)] = 0

    fp.close()
    
    return g

_defines = None
def _init_platform():
    g = {}
    try:
        filename = sysconfig.get_config_h_filename()
        _parse_config_h(filename, g)
    except IOError, msg:
        my_msg = "invalid Python installation: unable to open %s" % filename
        if hasattr(msg, "strerror"):
            my_msg = my_msg + " (%s)" % msg.strerror

        raise DistutilsPlatformError(my_msg)

    global _defines
    _defines = g
    
def get_defines(*args):
    """
    With no arguments, return a dictionary of all defines configured for
    the current build.

    With arguments, return a list of values that result from looking up
    each argument in the configuration variable dictionary.
    """
    global _defines
    if _defines is None:
        _init_platform()
    
    if args:
        vals = []
        for name in args:
            vals.append(_defines.get(name))
        return vals
    else:
        return _defines

def get_define(name):
    """
    Return the value of a single define using the dictionary returned
    by 'get_defines()'.  Equivalent to get_defines().get(name)
    """
    return get_defines().get(name)

def GetPlatformSpecifier():
    specifier = '%s-%s' % (util.get_platform(), sys.version[0:3])
    if get_define('Py_DEBUG'):
        specifier += '-debug'
    return specifier
    

:: 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.0041 ]--