!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/bin/X11/./../../lib/evolution-openldap/../python2.4/site-packages/mx/Queue/mxQueue/   drwxr-xr-x
Free 5.08 GB of 27.03 GB (18.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test.py (1.47 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import sys
from mx.Queue import *

def test():

    s = Queue()
    print repr(s)
    s = Queue()
    for i in range(1000):
          s.push(i)
    while s:
          print s.pop(),

    if 0:
        # which could also be done as:
        s = QueueFromSequence(range(1000))
        while s:
              print s.pop(),

        # or a little different
        s = QueueFromSequence(range(1000))
        print s.as_tuple()
        print s.as_list()
        print

    print 'Pop many.'
    assert s.pop_many(3) == (999, 998, 997)

    print 'Push many.'
    s.push_many(range(100))
    assert s.pop_many(100) == tuple(range(100-1,-1,-1))

    print 'Resize.'
    assert len(s) > 0
    s.resize()

    print 'Clear.'
    s.clear()
    assert len(s) == 0

    print 'Non-zero testing.'
    s.push_many(range(100))
    i = 0
    while s:
        s.pop()
        i = i + 1
    assert i == 100

    # push many + exceptions
    print 'Push many and exceptions.'
    class C:
        def __getitem__(self,i):
            if i < 50:
                return i + 1
            else:
                raise IndexError
        def __len__(self):
            return 100
    l = C()

    try:
        s.push_many(l)
    except IndexError:
        pass
    else:
        raise AssertionError,'push_many() does not handle errors correctly'

    assert len(s) == 0

    del s

    # Implementation deleaked up to this line.

    print
    print 'Works.'

if '-m' in sys.argv:
    while 1:
        test()
else:
    test()



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