!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/site-packages/_xmlplus/unicode/   drwxr-xr-x
Free 53.68 GB of 127.8 GB (42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     iso8859.py (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"""This module adds a backwards-compatibility to the older wstring module.
It is intended for use by 4Suite only; do not use it in your own code."""

import string
import utf8_iso

_trans = string.maketrans("_:","- ")
def _normalize(codeset):
    codeset = string.lower(codeset)
    codeset = string.translate(codeset, _trans)
    return codeset

class _Wstringmod:
    "Emulator for old wstring module"
    def __init__(self):
        self.aliases = {'iso-ir-100' : 'iso-8859-1',
                        'cp819' : 'iso-8859-1',
                        'l1' : 'iso-8859-1',
                        'latin1' : 'iso-8859-1',
                        'ibm819' : 'iso-8859-1',
                        }
        self.encodings = {'utf-8' : 0}
        for i in range(1, len(utf8_iso.code_to_uni)):
            if utf8_iso.code_to_uni[i]:
                self.encodings['iso-8859-%d' % i] = i

    def install_alias(self, newname, oldname):
        self.aliases[_normalize(newname)] = _normalize(oldname)

    def from_utf8(self, utf8):
        return UTF8String(utf8)

    def decode(self, encoding, string):
        return UTF8String(string, encoding)

    def chr(self, ch):
        return UTF8String(utf8_iso.utf8chr(ch))

wstring = _Wstringmod()

class UTF8String:
    "Emulator for the wstring type"
    def __init__(self, string, encoding='utf-8'):
        self.data = string
        enc = _normalize(encoding)
        codeset = wstring.encodings.get(enc)
        if codeset is None:
            if wstring.aliases.has_key(enc):
                codeset = wstring.encoding.get(wstring.aliases[enc])
            if codeset is None:
                raise utf8_iso.ConvertError('Unknown encoding: %s' % encoding)
        self.codeset = codeset

    def utf8(self):
        if self.codeset == 0:
            return self.data
        output = map(lambda char, codeset=self.codeset:
                     utf8_iso.code_to_utf8(codeset, char),
                     self.data)
        return string.join(output, '')

    def encode(self, encoding):
        enc = _normalize(encoding)
        codeset = wstring.encodings.get(enc)
        if codeset is None:
            if wstring.aliases.has_key(enc):
                codeset = wstring.encoding.get(wstring.aliases[enc])
            if codeset is None:
                raise utf8_iso.ConvertError('Unknown encoding: %s' % encoding)

        if codeset == 0:
            return self.data

        input = self.data
        output = []
        while input:
            for i in range(len(input)):
                if ord(input[i])>128:
                    break
            if i == 0:
                char, input = utf8_iso.utf8_to_code(codeset, input)
                output.append(char)
            else:
                output.extend(list(input[:i]))
                input = input[i:]
        return string.join(output, '')

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