!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/rc3.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:     K10tcsd (2.12 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash
#
# Init file for the TrouSerS TCG Core Services daemon
#
# chkconfig: - 90 10
# description: TrouSerS server daemon
#
# processname: tcsd
# config: /etc/tcsd.conf
# pidfile: /var/run/tcsd.pid

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

# pull in sysconfig settings
[ -f /etc/sysconfig/tcsd ] && . /etc/sysconfig/tcsd

RETVAL=0
prog="tcsd"

# Some variables to make the below more readable
TCSD=/usr/sbin/tcsd
PID_FILE=/var/run/tcsd.pid
MODPROBE=/sbin/modprobe
LSMOD=/sbin/lsmod
GREP=/bin/grep
PWD=/bin/pwd
MOD_DIR=/lib/modules/$(uname -r)/kernel/drivers/char/tpm
START_OPT=" start"

load_drivers()
{
	CUR_DIR=`$PWD`
	cd $MOD_DIR

	# Must load tpm_bios.ko first
	$MODPROBE tpm_bios >/dev/null 2>&1
	RETVAL=$?
	if [ $RETVAL -ne 0 ]; then
		failure "Load tpm_bios"
		echo
		cd $CUR_DIR
		return $RETVAL
	fi

	# Must load tpm.ko second
	$MODPROBE tpm >/dev/null 2>&1
	RETVAL=$?
	if [ $RETVAL -ne 0 ]; then
		failure "Load tpm"
		echo
		cd $CUR_DIR
		return $RETVAL
	fi

	# Attempt to load remaining tpm_*.ko
	# But do NOT return error if they fail
	for d in `echo tpm_*`; do
		if [ "$d" != "tpm_bios.ko" ]
		then
			m=${d%".ko"}
			$MODPROBE $m >/dev/null 2>&1
		fi
	done

	cd $CUR_DIR
	success "Load tpm"
	echo
	return $RETVAL
}

check_drivers()
{
	$LSMOD | $GREP tpm_ >/dev/null 2>&1
	RETVAL=$?
	return $RETVAL
}

start()
{
	check_drivers
	RETVAL=$?
	if [ $RETVAL -ne 0 ]; then
		load_drivers
		RETVAL=$?
	fi
	if [ $RETVAL -ne 0 ]; then
		failure $"Loading drivers"
	fi
	echo -n $"Starting $prog: "
	$TCSD $START_OPT && success
	echo
	touch /var/lock/subsys/tcsd && success
	RETVAL=$?
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $TCSD`" ] ; then
	    killproc $TCSD -HUP
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	[ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/tcsd
	echo
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		start
		;;
	reload)
		restart
		;;
	condrestart)
		if [ -f /var/lock/subsys/tcsd ] ; then
			restart
		fi
		;;
	status)
		status $TCSD
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
		RETVAL=1
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.0059 ]--