!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/bin/   drwxr-xr-x
Free 52.24 GB of 127.8 GB (40.87%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     xdpr (3.08 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#! /bin/sh
# Copyright 1985,1988 Massacusetts Institute of Technology.
# $XConsortium: xdpr.script /main/10 1995/12/08 11:10:59 swick $
# origin: William Kucharski, Solbourne Computer, Inc. 3/24/90
#         translated from csh script xdpr.script "paul 4/12/88"

# initialize variables

display="$DISPLAY"
header=
bsdlprv=
lprv=
out=
svlprv=
trailer=
xprv=
xwdv=

usage="Usage: xdpr [filename] [-out filename ] \
[-display host:display] [[-Pprinter] | [-dprinter]] [-device devtype] \
[{-root | -id <id> | -name <name>}] [-nobdrs] [-xy] \
[-scale scale] [-height inches] [-width inches] [-left inches] \
[-top inches] [-split n] [-header string] [-trailer string] \
[-landscape] [-portrait] [-rv] [-compact] [-noff] [-frame] \
[-plane number] [-gray number] [-psfig] [-density dpi] \
[-cutoff level] [-noposition] [-gamma correction] [-render algorithm] \
[-slide] [-add value] [-help]"

# Guess if we are BSD or System V

if [ -x /usr/ucb/lpr -o -x /usr/bin/lpr -o -x /bin/lpr -o -x /usr/bsd/lpr ]
then
    LP=lpr
    BSD=1
elif [ -x /usr/bin/lp -o -x /bin/lp ]
then
    LP=lp
    BSD=0
else
    LP=lpr
    BSD=1
fi

# parse arguments...

while [ $1 ]; do
    case "$1" in

# ...arguments interpreted by xdpr itself...

    -help)
        echo $usage;
        exit 0;;

# ...arguments to xwd...

    -nobdrs|-root|-xy|-frame)
        xwdv="$xwdv $1";;
    -display)
        display=$2
        xwdv="$xwdv $1 $2";
        shift;;
    -id|-name)
        xwdv="$xwdv $1 $2";
        shift;;
    -out|-add)
        out=true
        xwdv="$xwdv $1 $2";
        shift;;

# ...arguments to xpr...

    -scale|-height|-width|-left|-top|-split|-device)
        xprv="$xprv $1 $2";
        shift;;
    -plane|-gray|-density|-cutoff|-gamma|-render)
        xprv="$xprv $1 $2";
        shift;;
    -header)
        shift;
        header="$1";;
    -trailer)
        shift;
        trailer="$1";;
    -landscape|-portrait|-rv|-compact|-noff|-psfig|-noposition|-slide)
        xprv="$xprv $1";;

# ...arguments to lp[r]...

    -P*|-#?*|-C?*|-J?*|-h|-m)
        bsdlprv="$lprv $1";;

    -d*|-H*|-q*|-n*|-o*|-w)
        svlprv="$svlprv $1";;

# ...disallow other arguments; print usage message

    -*)
        echo "xdpr: Unknown option $1";
        echo $usage;
        exit 1;;

# ...input filename...

    *)
        if [ ! "$infile" ]; then
            infile=true
            xprv="$xprv $1"
        else
            echo "xdpr: Invalid argument "$1""
            echo $usage            
            exit 1
        fi
    esac
    shift
done

# quit if there is no DISPLAY specified

if [ ! "$display" ]; then
    echo "xdpr: DISPLAY variable must be set or a display specified."
    exit
fi

# Command lines:

# Set up lp[r] options...

if [ $BSD -eq 0 ]
then
    lprv=$svlprv
else
    lprv=$bsdlprv
fi

# disallow concurrent input and  -out arguments
if [ "$out" -a "$infile" ]; then
    echo "xdpr: -out <filename> cannot be used if an input file is also specified."
    exit 0
fi

# dump only
if [ "$out" ]; then
    if [ "$xprv" -o "$lprv" ]; then
        echo "xdpr: The following arguments will be ignored:"
        echo $xprv $lprv
    fi
    xwd $xwdv
    exit 0
fi

# print only 
if [ "$infile" ]; then
    if [ "$xwdv" ]; then
        echo "xdpr: The following arguments will be ignored:"
        echo $xwdv
    fi
    xpr -header "$header" -trailer "$trailer" $xprv | $LP $lprv
    exit 0
fi

# dump & print (default)
xwd $xwdv | xpr -header "$header" -trailer "$trailer" $xprv | $LP $lprv
exit 0    

# EOF

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