AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 3.133.147.142   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/bin/ps2epsi
#!/bin/sh

# Revised in 2020 to use the eps2write device (within ps2epsi.ps)

# This definition is changed on install to match the
# executable name set in the makefile, but we check a couple of other
# places (bin/ sibling to $LIBDIR and 'gs' on the $PATH)
GS_EXECUTABLE=gs
LIBDIR=`dirname $0`
gs="$LIBDIR/$GS_EXECUTABLE"
if test ! -x "$gs"; then
	# Might be executing lib/ps2epsi with bin/ as sibling to lib/
	gs="$LIBDIR/../bin/$GS_EXECUTABLE"
	if test ! -x "$gs"; then
		# Fallback to using any 'gs' on the path
		gs="$GS_EXECUTABLE"
	fi
fi
GS_EXECUTABLE="$gs"

export outfile

if [ $# -lt 1 -o $# -gt 2 ]; then
	echo "Usage: `basename \"$0\"` file.ps [file.epsi]" 1>&2
	exit 1
fi

infile=$1;

if [ $# -eq 1 ]; then
	case "${infile}" in
	  *.ps)		base=`basename "${infile}" .ps` ;;
	  *.cps)	base=`basename "${infile}" .cps` ;;
	  *.eps)	base=`basename "${infile}" .eps` ;;
	  *.epsf)	base=`basename "${infile}" .epsf` ;;
	  *)		base=`basename "${infile}"` ;;
	esac
	outfile=${base}.epsi
else
	outfile=$2
fi

# Note, we expect 'ps2epsi.ps' to be on one of the search paths which can be seen by: gs -h
"$GS_EXECUTABLE" -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile="${outfile}" \
		--permit-file-all="${infile}" -- ps2epsi.ps  "${infile}" 1>&2

exit 0

Anon7 - 2022
AnonSec Team