!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/4Suite/tests/Xml/Xslt/Core/   drwxr-xr-x
Free 4.89 GB of 27.03 GB (18.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_profile.py (1.61 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from Ft.Xml import pDomlette
Reader = pDomlette.PyExpatReader()
import os
import profile
from Ft.Xml.Xslt import Processor
import tempfile
import pstats

tests = [#('profile_data/match.xml','profile_data/match.xsl'),
         ('profile_data/xcem100.xml','profile_data/test1.xsl'),
         ]


def profile_test(proc,xmlFile,xsltFiles):

    for xslt in xsltFiles:
        proc.appendStylesheetFile(xslt)
    print proc.runNode(xmlFile)

    


def run_test(outFile,xmlFile,stylesheets):


    tempFileName = tempfile.mktemp()
    p = Processor.Processor()
    prof = profile.Profile()

    prof.runctx("profile_test(p,xmlFile,stylesheets)",globals(),locals())
    prof.dump_stats(tempFileName)

    return tempFileName


def test(fileName):

            
    f = open(fileName,'w')
    oldOut = sys.stdout
    sys.stdout = f
    print "Profile Run"

    for t in tests:
        inFile = Reader.fromStream(open(t[0]))
        print "Begin run of %s" % t[0]
        sf = run_test(fileName,inFile,[t[1]])
        print "Dump Stats for %s" % t[0]
        pstat = pstats.Stats(sf)

        print "Sorted by total cumulative time"
        pstat.strip_dirs().sort_stats('time').print_stats(100)
        print "Sorted by number calls time"
        pstat.strip_dirs().sort_stats('calls').print_stats(100)
        print "A Listing of who called who"
    pstat.print_callers(50)
        print "A Listing of who was called by who"
    pstat.print_callees(50)
        del pstat
        os.unlink(sf)

    sys.stdout = oldOut


if __name__ == '__main__':

    import sys
    outFile = "profile.out"
    if len(sys.argv) > 1:
        outFile = sys.argv[1]
    test(outFile)

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