!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-ldap-2.2.0/Demo/   drwxr-xr-x
Free 51.95 GB of 127.8 GB (40.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     simple.py (2.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import sys,getpass
import ldap

#l = ldap.open("localhost", 31001)
l = ldap.open("marta.it.uq.edu.au")

login_dn = "cn=root,ou=CSEE,o=UQ,c=AU"
login_pw = getpass.getpass("Password for %s: " % login_dn)
l.simple_bind_s(login_dn, login_pw)

#
# create a new sub organisation
#

try:
    dn = "ou=CSEE,o=UQ,c=AU"
    print "Adding", repr(dn)
    l.add_s(dn,
     [
        ("objectclass",["organizationalUnit"]),
        ("ou", ["CSEE"]),
        ("description", [
            "Department of Computer Science and Electrical Engineering"]),
     ]
       )

except _ldap.LDAPError:
    pass

#
# create an entry for me
#

dn = "cn=David Leonard,ou=CSEE,o=UQ,c=AU"
print "Updating", repr(dn)

try:
    l.delete_s(dn)
except:
    pass

l.add_s(dn,
     [
    ("objectclass",            ["organizationalPerson"]),
    ("sn",                ["Leonard"]),
    ("cn",                ["David Leonard"]),
    ("description",            ["Ph.D. student"]),
    ("display-name",        ["David Leonard"]),
    #("commonname",            ["David Leonard"]),
    ("mail",            ["david.leonard@csee.uq.edu.au"]),
    ("othermailbox",        ["d@openbsd.org"]),
    ("givenname",            ["David"]),
    ("surname",            ["Leonard"]),
    ("seeAlso",            ["http://www.csee.uq.edu.au/~leonard/"]),
    ("url",                ["http://www.csee.uq.edu.au/~leonard/"]),
    #("homephone",            []),
    #("fax",            []),
    #("otherfacsimiletelephonenumber",[]),
    #("officefax",            []),
    #("mobile",            []),
    #("otherpager",            []),
    #("officepager",        []),
    #("pager",            []),
    ("info",            ["info"]),
    ("title",            ["Mr"]),
    #("telephonenumber",        []),
    ("l",                ["Brisbane"]),
    ("st",                ["Queensland"]),
    ("c",                ["AU"]),
    ("co",                ["co"]),
    ("o",                ["UQ"]),
    ("ou",                ["CSEE"]),
    #("homepostaladdress",        []),
    #("postaladdress",        []),
    #("streetaddress",        []),
    #("street",            []),
    ("department",            ["CSEE"]),
    ("comment",            ["comment"]),
    #("postalcode",            []),
    ("physicaldeliveryofficename",  ["Bldg 78, UQ, St Lucia"]),
    ("preferredDeliveryMethod",    ["email"]),
    ("initials",            ["DRL"]),
    ("conferenceinformation",    ["MS-conferenceinformation"]),
    #("usercertificate",        []),
    ("labeleduri",            ["labeleduri"]),
    ("manager",            ["cn=Jaga Indulska"]),
    ("reports",            ["reports"]),
    ("jpegPhoto",            [open("/www/leonard/leonard.jpg","r").read()]),
    ("uid",                ["leonard"]),
    ("userPassword",        [""])

    ])

#
# search beneath the CSEE/UQ/AU tree
#

res = l.search_s(
    "ou=CSEE, o=UQ, c=AU", 
    _ldap.SCOPE_SUBTREE, 
    "objectclass=*",
      )
print res

l.unbind()


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