%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.101 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/proc/self/root/usr/share/webmin/squid/ |
Upload File : |
#!/usr/bin/perl
# cachemgr.cgi
# Run the squid cachemgr.cgi program
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
our (%text, %in, %access, $squid_version, %config, $module_name);
require './squid-lib.pl';
$access{'cms'} || &error($text{'cach_ecannot'});
my ($mgr) = glob($config{'cachemgr_path'});
&same_file($0, $mgr) && &error($text{'cach_esame'});
if (&has_command($mgr)) {
$| = 1;
my $temp;
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
# Deal with POST data
my $post;
&read_fully(\*STDIN, \$post, $ENV{'CONTENT_LENGTH'});
$temp = &transname();
my $fh = "TEMP";
&open_tempfile($fh, ">$temp", 0, 1);
&print_tempfile($fh, $post);
&close_tempfile($fh);
open(MGR, "$mgr ".join(" ", @ARGV)." <$temp |");
}
else {
open(MGR, "$mgr ".join(" ", @ARGV)." |");
}
while(<MGR>) {
print;
}
close(MGR);
unlink($temp) if ($temp);
}
else {
&ui_print_header(undef, $text{'cach_err'}, "");
print &text('cach_nfound',$mgr,$module_name);
print "\n<p>\n";
}
&ui_print_footer("", $text{'cach_return'});