!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.25 GB of 127.8 GB (40.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pic2graph (2.5 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/sh # # pic2graph -- compile PIC image descriptions to bitmap images # # by Eric S. Raymond , July 2002 # In Unixland, the magic is in knowing what to string together... # # Take a pic/eqn diagram on stdin, emit cropped bitmap on stdout. # The pic markup should *not* be wrapped in .PS/.PE, this script will do that. # An -unsafe option on the command line enables gpic/groff "unsafe" mode. # A -format FOO option changes the image output format to any format # supported by convert(1). An -eqn option changes the eqn delimiters. # All other options are passed to convert(1). The default format in PNG. # # Requires the groff suite and the ImageMagick tools. Both are open source. # This code is released to the public domain. # # Here are the assumptions behind the option processing: # # 1. Only the -U option of gpic(1) is relevant. -C doesn't matter because # we're generating our own .PS/.PE, -[ntcz] are irrelevant because we're # generating Postscript. # # 2. Ditto for groff(1), though it's a longer and more tedious demonstration. # # 3. Many options of convert(1) are potentially relevant (especially # -density, -interlace, -transparency, -border, and -comment). # # Thus, we pass -U to gpic and groff, and everything else to convert(1). # # We don't have complete option coverage on eqn because this is primarily # intended as a pic translator; we can live with eqn defaults. # # $Id: pic2graph.sh,v 1.2 2002/07/17 04:55:46 wlemb Exp $ # groffpic_opts="" gs_opts="" convert_opts="" format="png" eqndelim='$$' while [ "$1" ] do case $1 in -unsafe) groffpic_opts="-U";; -format) format=$2 shift;; -eqn) eqndelim=$2 shift;; -v | --version) echo "GNU pic2graph (groff) version 1.18.1.1" exit 0;; --help) echo "usage: pic2graph [ option ...] < in > out" exit 0;; *) convert_opts="$convert_opts $1";; esac shift done if [ "$eqndelim" ] then eqndelim="delim $eqndelim" fi # Here goes: # 1. Wrap the input in dummy .PS/PE macros (and add possibly null .EQ/.EN) # 2. Process through eqn and pic to emit troff markup. # 3. Process through groff to emit Postscript. # 4. Use convert(1) to crop the PostScript and turn it into a bitmap. tmpps=`mktemp /tmp/pic2graph-XXXXXXXX.ps` tmpfmt=`mktemp /tmp/pic2graph-XXXXXXXX.$format` trap "rm $tmpps $tmpfmt" 0 2 15 (echo ".EQ"; echo $eqndelim; echo ".EN"; echo ".PS"; cat; echo ".PE") | \ groff -e -p $groffpic_opts -Tps >$tmpps \ && convert -crop 0x0 $convert_opts $tmpps $tmpfmt \ && cat $tmpfmt # End

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