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-printjob (34.27 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/usr/bin/perl # -*- perl -*- # This is foomatic-printjob, a program to print and manage printing # jobs with the same commands independent whether the spooler is CUPS, # LPD, LPRng, or PDQ. # It also comprises half of a programattic API for user tools: you can # learn and control everything about the properties of printing jobs # here. With the sister program foomatic-configure, you can do # everything related to print queue static state: install, modify, # remove queues, query queue, printer, and driver info. use Foomatic::Defaults; use Foomatic::DB; # Read out the program name with which we were called, but discard the path $0 =~ m!/([^/]+)\s*$!; $progname = $1; # We use the library Getopt::Long here, so that we can have more than one "-o" # option on one command line. use Getopt::Long; Getopt::Long::Configure("no_ignore_case", "pass_through"); GetOptions("P=s" => \$opt_P, # which queue (Printer)? "d=s" => \$opt_d, # which queue (Destination)? "s=s" => \$opt_s, # which Spooler? "o=s" => \@opt_o, # printing Options "Q" => \$opt_Q, # Query jobs in queue "R" => \$opt_R, # Remove job(s) "C" => \$opt_C, # Control job(s)/queue(s) "S" => \$opt_S, # set default Spooler "h" => \$opt_h); # Help! help() if ($opt_h && !$opt_P); my $db = new Foomatic::DB; my $in_config = {'queue' => $opt_P, 'options' => \@opt_o, 'spooler' => $opt_s}; # Default action: Printing my $action = 'print'; # Determine the action by the name how we were called if ($progname =~ m!^lpc!) { # 'lpc*' ==> control $action = 'control'; } elsif ($progname =~ m!^lprm!) { # 'lprm*' ==> remove jobs $action = 'remove'; } elsif ($progname =~ m!^lpq!) { # 'lpq*' ==> list jobs $action = 'query'; } elsif (($progname =~ m!^lpr!) |
:: 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.0058 ]-- |