!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/m2crypto-0.16/demo/x509/   drwxr-xr-x
Free 50.87 GB of 127.8 GB (39.81%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     proxy_info.py (1.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/env python
############################################################################
# Matt Rodriguez, LBNL MKRodriguez@lbl.gov
############################################################################ 
"""
script that displays information about a proxy certificate
"""


import proxylib
import time, datetime, calendar
import sys, optparse

FILEHELP = "Location of the proxy."

def print_info(proxy_cert):
    """
    Print information about the proxy cert
    """
    cert = proxy_cert.getcert()
    print "Subject: ", cert.get_subject().as_text()
    print "Issuer: ", cert.get_issuer().as_text()
    pubkey = cert.get_pubkey() 
    size =  pubkey.size()
    print "Strength: ", size * 8 
    after = cert.get_not_after()
    after_tuple = time.strptime(str(after),"%b  %d %H:%M:%S %Y %Z") 
    expires = calendar.timegm(after_tuple)
    now = datetime.timedelta(seconds=time.time()) 
    expires = datetime.timedelta(seconds=expires) 
    td = expires - now 
    if td.days < 0:
        print "Time left: Proxy has expired."
    else: 
        hours = td.seconds / 3600 
        hours += td.days * 24 
        minutes = (td.seconds % 3600) / 60
        seconds =  (td.seconds % 3600) % 60
        print "Time left: %d:%d:%d" % (hours, minutes, seconds) 
        fraction = round((float(td.seconds) / float(3600 * 24)), 1) 
        print "Days left: ", str(td.days) + str(fraction)[1:]      
     
   
def main(): 
    parser = optparse.OptionParser()
    parser.add_option("-f", "--file", dest="filename", help=FILEHELP)
    (opts, args) = parser.parse_args()
    filename = opts.filename 
    if filename is None:   
        proxyfile = proxylib.get_proxy_filename()
    else:
        proxyfile = filename
    proxy_cert = proxylib.Proxy()
    try:
        proxy_cert.read(proxyfile)
    except IOError:
        print "The file: " + proxyfile + " does not exist."
        sys.exit(0)
    print_info(proxy_cert)

if __name__ == "__main__": main()

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