!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/share/4Suite/Profile/Server/Http/   drwxr-xr-x
Free 5.06 GB of 27.03 GB (18.73%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     fetch.py (1.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |

import sys, os, cStringIO
p = os.path.join("..","..")
sys.path.append(p)
import profile_util

from Ft.Server.Common import ResourceTypes
from Ft.Server.Server.Http import Basic
from Ft.Server.Server import ConfigParser
from Ft.Server.Server.Lib import LogUtil

class FakeFile:

    def __init__(self):
        self.data = ""

    def write(self,data):
        self.data += data
        
    def close(self):
        pass

    def flush(self):
        pass

def do_fetch():

    #Pretend it is a vhost connect, easiest to fake out
    aCon = cStringIO.StringIO()
    rFile = cStringIO.StringIO()
    wFile = FakeFile()
    connection = (aCon,rFile,wFile)

    aRequest = "HTTP/1.0 GET /profile/doc1.xml"  #Doesn't need to be correct, just there
    method = "GET"
    unparsed_uri = "/profile/doc1.xml"
    protocol = "HTTP/1.0"
    request = (aRequest,method,unparsed_uri,protocol)

    headers_in = {}
    conn = (connection,request,headers_in)

    client_address = ('local',123)  #Just needs to be sciptable

    server = ConfigParser.ServerConfig()
    server.documentRoot = '/'
    server.errorLog = LogUtil.NullLogger()
    server.properties = profile_util.GetProperties()
    
    h = Basic.RequestHandler(conn,client_address,server)

    h.handle()
   

NUM_CHILDREN = 2500
XML_SRC = """<docelem><one>Foo</one>%s<two>Bar</two></docelem>""" % ("<child/>"*NUM_CHILDREN)



def do_profile():

    #Init

    repo = profile_util.GetRepo()
    if repo.hasResource('/profile'):
        repo.deleteResource('/profile')
    repo.createContainer('/profile',1)
    repo.createDocument('/profile/doc1.xml',XML_SRC,forcedType=ResourceTypes.ResourceType.XML_DOCUMENT)
    repo.txCommit()

    profile_util.run("do_fetch()",globals(),locals())


if __name__ == '__main__':
    profile_util.InitRepo()
    do_profile()

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