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: foomatic-gswrapper (2.23 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/usr/bin/perl # -*- perl -*- # $Revision: 3.4.2.5 $ # This is a little Ghostscript regularization script. It massages # arguments to make Ghostscript execute properly as a filter, with # output on stdout and errors etc on stderr. # Arbitrary other option processing could happen here, too. # IT WOULD BE WRONG to have this file do any processing of the input # or output data. Such job transforms belong in actual filters, or # inside Ghostscript itself. my $prefix = "/usr"; my $configpath = "/etc/foomatic"; # Read config file if present %conf = readConfFile("$configpath/filter.conf"); # Set GhostScript path my $gspath = "gs"; $gspath = $conf{gspath} if defined(%conf) and defined $conf{gspath}; my $execpath = "/usr/bin:/usr/local/bin:/usr/bin:/bin"; # Get execution path from config file $execpath = $conf{execpath} if defined(%conf) and defined $conf{execpath}; $ENV{'PATH'} = $execpath; grep (m!\-sOutputFile=\-! && do { # Send the job to fd 3; errors will be on 2(stderr) and job # ps program interpreter output on 1(stdout). $_ = '-sOutputFile=/dev/fd/3'; # quoted properly below... }, @ARGV); grep (((m!^\-$!) |
:: 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.0059 ]-- |