!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)

/etc/rc.d/rc1.d/   drwxr-xr-x
Free 52.28 GB of 127.8 GB (40.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     K87multipathd (2.15 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash
#
#    /etc/rc.d/init.d/multipathd
#
# Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manage device-mapper multipath devices
# processname: multipathd

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
system=redhat
 
if [ $system = redhat ]; then
    # Source function library.
    . $initdir/functions
fi
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
    if [ "$slave" = "slaves/*" ]; then
        read dev <  $1/dev
        tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
        if ! [ -z $tablename ]; then
            echo "Root is on a multipathed device, multipathd can not be stopped"
            exit 1
        fi
    else
        local_slave=`readlink -f $slave`;
        teardown_slaves $local_slave;
    fi
    done
        
else
        read dev <  $1/dev
        tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
        if ! [ -z $tablename ]; then
            echo "Root is on a multipathed device, multipathd can not be stopped"
            exit 1
        fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
    test -x $DAEMON || exit 5
    echo -n $"Starting $prog daemon: "
    daemon $DAEMON
    RETVAL=$?
    [ $RETVAL -eq 0 ] && touch $lockdir/$prog
    echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
    dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
    if [ $? -eq 0 ]; then
        root_dm_device="dm-$dm_num"
        [ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
    fi

    echo -n $"Stopping $prog daemon: "
    killproc $DAEMON
    RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
    echo
}

restart() {
    stop
    start
}    

reload() {
    echo -n "Reloading $prog: "
    trap "" SIGHUP
    killproc $DAEMON -HUP
    RETVAL=$?
    echo
}    

case "$1" in
start)
    start
    ;;
stop)
    stop
    ;;
reload)
    reload
    ;;
restart)
    restart
    ;;
condrestart)
    if [ -f $lockdir/$prog ]; then
        restart
    fi
    ;;
status)
    status $prog
    RETVAL=$?
    ;;
*)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
    RETVAL=3
esac

exit $RETVAL

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