!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/share/doc/python-numeric-23.7/Demo/   drwxr-xr-x
Free 40.45 GB of 127.8 GB (31.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     sieve.py (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#! /usr/bin/env python
from Numeric import *

def sieve(max):
        numbers=range(max+1)
        size=int(math.sqrt(max))
        if size<5:
                trials=[2,3]
        else:
                trials=sieve(size)
        for i in trials:
                try:
                        j=i*i
                        while 1:
                                numbers[j]=0
                                j=j+i
                except IndexError:
                        pass
        return filter(lambda x:x>1,numbers)

def factor(num,upto=1000000):
        for p in sieve(upto):
                if num%p==0:
                        print "Can divide by %d"%p

def asieve(max,atype='l'):
        times = []    
    #times.append(time.time())
        size=int(sqrt(max))
        if size<5:
                known_primes=[2,3]
        else:
                known_primes=asieve(size)

    #Initially assume all numbers are prime
    numbers=ones([max+1], 'b') #atype)
    #times.append(time.time())
    #add(numbers, array(1, 'b'), numbers)
    #times.append(time.time())
    #0 and 1 are not prime
    numbers[0:2]=0
    #print trials
        for i in known_primes:
            #Set multiples of i to be nonprime
            numbers[(i*i)::i] = 0
        #times.append(time.time())
    #Those entries which are nonzero are prime
    #a = add.accumulate(ones([len(numbers)]))-1
    a = arange(len(numbers))
        #times.append(time.time())
        r = repeat(a, numbers)#numbers)nonzero(numbers)
        #times.append(time.time())
    #times = array(times)
    #print times[1:]-times[:-1]
    return r

def afactor(num,upto=1000000):
        #Calculate all of the primes up to upto
        s = asieve(upto)
        #Return just those primes that divide evenly into num
        for d in take(s, nonzero(equal(num % s, 0))):
            print "Can divide by %d"%d


import time

#start = time.time()
#factor(129753308,upto=99999)
#stop = time.time()
#print "factor took %7.3f seconds"%((stop-start))
start = time.time()
asieve(999999)
afactor(129753308,upto=999999)
stop = time.time()
print "afactor took %7.3f seconds"%((stop-start))


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