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 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/bin/ drwxr-xr-x |
Viewing file: pv.sh (1.18 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/bin/sh -f # $Id: pv.sh,v 1.3 2002/02/21 21:49:28 giles Exp $ # # pv - preview a specified page of a dvi file in a Ghostscript window # usage: pv page file # # pv converts the given page to PostScript and displays it # in a Ghostscript window. # if [ $# -lt 2 ] ;then echo usage: $0 'page_number file_name[.dvi]' exit 1 fi # # The following line used to appear here: # #RESOLUTION=100 # # But according to Peter Dyballa # <pete@lovelace.informatik.uni-frankfurt.de>, "Modern versions of dvips are # taught to read configuration files which tell them the paths to PK, TFM, # VF and other files for example PostScript font programmes. These files # tell #dvips too which default resolution is used and therefore which # series of PK files (based on 300 DPI or 400 DPI or 600 DPI or even more) # are held on the system." So we have deleted this line, and also removed # the -D switch from the call of dvips below. # TEMPDIR=. PAGE="$1" shift FILE="$1" shift TEMPFILE=`mktemp "$TEMPDIR/$FILE.XXXXXX"` if [ $? -ne 0 ] then exit 1 fi trap 'rm -f "$TEMPFILE"' 0 1 2 15 #dvips -R -D$RESOLUTION -p $PAGE -n 1 $FILE $* -o $FILE.$$.pv dvips -R -p $PAGE -n 1 "$FILE" "$@" -o "$TEMPFILE" gs "$TEMPFILE" exit 0 |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0083 ]-- |