403Webshell
Server IP : 104.21.25.180  /  Your IP : 104.23.197.123
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/htaccess-htpasswd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/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