!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 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:     HTMLSelectElement.py (4.64 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
########################################################################
#
# File Name:            HTMLSelectElement.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 import implementation
from xml.dom import IndexSizeErr
from xml.dom.html.HTMLElement import HTMLElement
import string

class HTMLSelectElement(HTMLElement):

    def __init__(self, ownerDocument, nodeName='SELECT'):
        HTMLElement.__init__(self, ownerDocument, nodeName)

    def _get_type(self):
        if self._get_multiple():
            return 'select-multiple'
        return 'select-one'

    def _get_selectedIndex(self):
        options = self._get_options()
        for ctr in range(len(options)):
            node = options.item(ctr)
            if node._get_selected() == 1:
                return ctr
        return -1

    def _set_selectedIndex(self,index):
        options = self._get_options()
        if index < 0 or index >= len(options):
            raise IndexSizeErr()

        for ctr in range(len(options)):
            node = options.item(ctr)
            if ctr == index:
                node._set_selected(1)
            else:
                node._set_selected(0)

    def _get_value(self):
        options = self._get_options()
        node = options.item(self._get_selectedIndex())
        if node.hasAttribute('VALUE'):
            value = node.getAttribute('VALUE')
        elif node.firstChild:
            value = node.firstChild.data
        else:
            value = ''
        return value

    def _set_value(self,value):
        # This doesn't seem to do anything in browsers
        pass

    def _get_length(self):
        return self._get_options()._get_length()

    def _get_options(self):
        children = self.getElementsByTagName('OPTION')
        return implementation._4dom_createHTMLCollection(children)

    def _get_disabled(self):
        if self.getAttributeNode('DISABLED'):
            return 1
        return 0

    def _set_disabled(self,disabled):
        if disabled:
            self.setAttribute('DISABLED', 'DISABLED')
        else:
            self.removeAttribute('DISABLED')

    def _get_multiple(self):
        if self.getAttributeNode('MULTIPLE'):
            return 1
        return 0

    def _set_multiple(self,mult):
        if mult:
            self.setAttribute('MULTIPLE', 'MULTIPLE')
        else:
            self.removeAttribute('MULTIPLE')

    def _get_name(self):
        return self.getAttribute('NAME')

    def _set_name(self,name):
        self.setAttribute('NAME',name)

    def _get_size(self):
        rt = self.getAttribute('SIZE')
        if rt != None:
            return string.atoi(rt)
        return -1

    def _set_size(self,size):
        self.setAttribute('SIZE',str(size))

    def _get_tabIndex(self):
        return string.atoi(self.getAttribute('TABINDEX'))

    def _set_tabIndex(self,tabindex):
        self.setAttribute('TABINDEX',str(tabindex))

    def add(self,newElement,beforeElement):
        self.insertBefore(newElement,beforeElement)

    def remove(self,index):
        if index < 0 or index >= self._get_length:
            return
        hc = self._get_options()
        node = hc.item(index)
        self.removeChild(node)

    def _get_form(self):
        parent = self.parentNode
        while parent:
            if parent.nodeName == "FORM":
                return parent
            parent = parent.parentNode
        return None

    ### Attribute Access Mappings ###

    _readComputedAttrs = HTMLElement._readComputedAttrs.copy()
    _readComputedAttrs.update ({
         'type'          : _get_type,
         'length'        : _get_length,
         'options'       : _get_options,
         'form'          : _get_form,
         'selectedIndex' : _get_selectedIndex,
         'value'         : _get_value,
         'disabled'      : _get_disabled,
         'multiple'      : _get_multiple,
         'name'          : _get_name,
         'size'          : _get_size,
         'tabIndex'      : _get_tabIndex,
      })

    _writeComputedAttrs = HTMLElement._writeComputedAttrs.copy()
    _writeComputedAttrs.update ({
         'selectedIndex' : _set_selectedIndex,
         'value'         : _set_value,
         'disabled'      : _set_disabled,
         'multiple'      : _set_multiple,
         'name'          : _set_name,
         'size'          : _set_size,
         'tabIndex'      : _set_tabIndex,
      })

    _readOnlyAttrs = filter(lambda k,m=_writeComputedAttrs: not m.has_key(k),
                     HTMLElement._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.0123 ]--