403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/13386/root/usr/libexec/webmin/mon/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/13386/root/usr/libexec/webmin/mon/edit_auth.cgi
#!/usr/bin/perl
# edit_auth.cgi
# Display commands and allowed users

require './mon-lib.pl';
&ui_print_header(undef, $text{'auth_title'}, "");

$file = &mon_auth_file();
open(FILE, $file);
while(<FILE>) {
	s/\r|\n//g;
	s/#.*$//;
	if (/^(\S+):\s*(.*)$/) {
		$auth{$1} = [ split(/,/, $2) ];
		}
	}
close(FILE);

print "$text{'auth_desc'}<p>\n";

print "<form action=save_auth.cgi method=post>\n";
print "<table border>\n";
print "<tr $tb> <td><b>$text{'auth_cmd'}</b></td> ",
      "<td><b>$text{'auth_users'}</b></td> </tr>\n";
printf "<input type=hidden name=types value='%s'>\n", join(" ", keys %auth);
foreach $a (&list_auth_types()) {
	local @au = @{$auth{$a}};
	print "<tr $cb> <td><b>$a</b></td> <td>\n";
	printf "<input type=radio name=${a}_mode value=2 %s> %s\n",
		@au ? "" : "checked", $text{'auth_none'};
	printf "<input type=radio name=${a}_mode value=1 %s> %s\n",
		$au[0] eq "all" ? "checked" : "", $text{'auth_all'};
	printf "<input type=radio name=${a}_mode value=0 %s> %s\n",
		@au && $au[0] ne "all" ? "checked" : "",
		$text{'auth_sel'};
	printf "<input name=$a size=40 value='%s'> %s</td> </tr>\n",
		$au[0] eq "all" ? "" : join(" ", @{$auth{$a}}),
		&user_chooser_button($a, 0);
	delete($auth{$a});
	}
print "</table>\n";
foreach $a (keys %auth) {
	print "<input type=hidden name=$a value='",
		join(",", @{$auth{$a}}),"'>\n";
	}
print "<input type=submit value='$text{'save'}'></form>\n";

&ui_print_footer("", $text{'index_return'});


Youez - 2016 - github.com/yon3zu
LinuXploit