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

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/lib/python2.4/site-packages/Ft/Xml/Lib/   drwxr-xr-x
Free 3.71 GB of 27.03 GB (13.71%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     StripElements.py (1.27 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from xml.dom import Node
from Ft.Xml import XML_NAMESPACE, EMPTY_NAMESPACE
from Ft.Xml.Lib.XmlString import IsXmlSpace

def StripElements(node,stripElements,stripState=0):
    if node.nodeType == Node.DOCUMENT_NODE:
        for c in node.childNodes:
            StripElements(c,stripElements,stripState)
    elif node.nodeType == Node.ELEMENT_NODE:

        #See if we need to change the strip state
        if node.getAttributeNodeNS(XML_NAMESPACE,'space') == 'preserve':
            #Force the state to preserve
            stripState = 0
        elif node.getAttributeNodeNS(XML_NAMESPACE,'space'):
            #Force to strip
            stripState = 1
        else:
            #See if it is a perserve or strip element
            for (uri, local, strip) in stripElements:
                if (uri, local) in [
                    (node.namespaceURI, node.localName),
                    (EMPTY_NAMESPACE, '*'),
                    (node.namespaceURI, '*')
                    ]:
                    stripState = strip
                    break

        for c in node.childNodes:
            StripElements(c,stripElements,stripState)
    elif node.nodeType == Node.TEXT_NODE:
        if stripState and IsXmlSpace(node.data):
            #Kill'em all
            node.parentNode.removeChild(node)



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0037 ]--