403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/home/SERVERWEB/webmin-2.105/rbac/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/home/SERVERWEB/webmin-2.105/rbac/auth_chooser.cgi
#!/usr/bin/perl
# Show a list of all authorizations

require './rbac-lib.pl';
&ReadParse();

&header("Select Authorization");
print <<EOF;
<script>
function sel(m)
{
if (window.opener.ifield.value != "") {
	window.opener.ifield.value += "\\n";
	}
window.opener.ifield.value += m;
window.close();
return false;
}
</script>
EOF

# Show Solaris authorizations
$auths = &list_auth_attrs();
print "<table width=100% cellpadding=1 cellspacing=1>\n";
print "<tr> <td><b>$text{'authc_name'}</b></td> ",
      "<td><b>$text{'authc_desc'}</b></td> </tr>\n";
foreach $a (sort { $a->{'name'} cmp $b->{'name'} } @$auths) {
	print "<tr>\n";
	if ($a->{'name'} =~ /\.$/) {
		print "<td><a href='' onClick='sel(\"$a->{'name'}*\")'>",
		      "$a->{'name'}*</td>\n";
		}
	else {
		print "<td><a href='' onClick='sel(\"$a->{'name'}\")'>",
		      "$a->{'name'}</td>\n";
		}
	print "<td>",$a->{'short'} || $a->{'desc'},"</td>\n";
	print "</tr>\n";
	}

# Add Webmin authorizations
print "<tr> <td colspan=2><hr></td> </tr>\n";
foreach $m (sort { $a->{'dir'} cmp $b->{'dir'} } &get_all_module_infos()) {
	next if (!&check_os_support($m));
	print "<tr>\n";
	print "<td><a href='' onClick='sel(\"webmin.$m->{'dir'}.admin\")'>",
	      "webmin.$m->{'dir'}.admin</td>\n";
	print "<td>$m->{'desc'}</td>\n";
	print "</tr>\n";
	}

print "</table>\n";


Youez - 2016 - github.com/yon3zu
LinuXploit