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


Viewing file:     drv_xmltoolkit.py (2.45 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"""
A SAX driver for David Scheres XML-Toolkit parser.
"""

version="0.20"

import sys

from xml.sax import saxlib,saxutils
import XMLFactory,XMLClient,urllib2

class SAX_XTClient(saxlib.Parser,XMLClient.ClientBase):

    def __init__(self):
        XMLClient.ClientBase.__init__(self)
        saxlib.Parser.__init__(self)
        self.reset()

    def text(self,obj):
        v=obj.value()
        self.doc_handler.characters(v,0,len(v))

    def pi(self,obj):
        if obj.nameOf()=="xml": return   # Don't report the XML declaration

        content=""
        for part in obj.value():
            content=content+part.value()+" "

        self.doc_handler.processingInstruction(obj.nameOf(),content[:-1])

    def emptyTag(self,obj):
        attrs={}
        for assoc in obj.value():
            attrs[assoc.nameOf()]=assoc.value()

        self.doc_handler.startElement(obj.nameOf(),
                                      saxutils.AttributeMap(attrs))
        self.doc_handler.endElement(obj.nameOf())

    def nonEmptyTag(self,obj):
        attrs={}
        for assoc in obj.value():
            attrs[assoc.nameOf()]=assoc.value()

        self.doc_handler.startElement(obj.nameOf(),
                                      saxutils.AttributeMap(attrs))

    def endTag(self,obj):
        self.doc_handler.endElement(obj.nameOf())

    def CDATA(self,obj):
        v=obj.value()
        self.doc_handler.characters(v,0,len(v))

    def comment(self,obj):
        pass  # SAX ignores comments

    def parse(self, sysID):
        i=urllib2.urlopen(sysID)
        self.parseFile(i)
        i.close()

    def parseFile(self, file):
        self.reset()
        while 1:
            buf=file.read(16384)
            if buf=="": break
            self.feed(buf)

        self.close()

    # --- EXPERIMENTAL SAX PYTHON EXTENSIONS

    def get_parser_name(self):
        return "xmltoolkit"

    def get_parser_version(self):
        return "Unknown"

    def get_driver_version(self):
        return version

    def is_validating(self):
        return 0

    def is_dtd_reading(self):
        return 0

    def reset(self):
        self.parser=XMLFactory.XMLFactory(self)
        self.unfed_so_far=1

    def feed(self,data):
        if self.unfed_so_far:
            self.doc_handler.startDocument()
            self.unfed_so_far=0

        self.parser.feed(data)

    def close(self):
        self.parser.endfile()
        self.doc_handler.endDocument()

def create_parser():
    return SAX_XTClient()

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