Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.213
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
libexec /
webmin /
htaccess-htpasswd /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
1.76
KB
-rw-r--r--
acl_security.pl
1.19
KB
-rwxr-xr-x
cgi_args.pl
838
B
-rwxr-xr-x
config
104
B
-rw-r--r--
config-windows
104
B
-rw-r--r--
config.info
404
B
-rw-r--r--
config.info.bg
736
B
-rw-r--r--
config.info.ca
464
B
-rw-r--r--
config.info.cs
438
B
-rw-r--r--
config.info.de
520
B
-rw-r--r--
config.info.es
377
B
-rw-r--r--
config.info.fi
0
B
-rw-r--r--
config.info.fr
510
B
-rw-r--r--
config.info.hu
378
B
-rw-r--r--
config.info.ja
521
B
-rw-r--r--
config.info.ko
387
B
-rw-r--r--
config.info.ms
0
B
-rw-r--r--
config.info.nl
451
B
-rw-r--r--
config.info.no
435
B
-rw-r--r--
config.info.tr
352
B
-rw-r--r--
config.info.zh_TW
169
B
-rw-r--r--
defaultacl
32
B
-rw-r--r--
delete.cgi
1.17
KB
-rwxr-xr-x
edit_dir.cgi
4.02
KB
-rwxr-xr-x
edit_group.cgi
1.3
KB
-rwxr-xr-x
edit_user.cgi
1.58
KB
-rwxr-xr-x
htaccess-lib.pl
3.88
KB
-rwxr-xr-x
htpasswd-file-lib.pl
6.25
KB
-rwxr-xr-x
index.cgi
4.49
KB
-rwxr-xr-x
log_parser.pl
475
B
-rwxr-xr-x
md5-lib.pl
7.58
KB
-rwxr-xr-x
module.info
215
B
-rw-r--r--
module.info.af
0
B
-rw-r--r--
module.info.af.auto
149
B
-rw-r--r--
module.info.ar
0
B
-rw-r--r--
module.info.ar.auto
197
B
-rw-r--r--
module.info.be
0
B
-rw-r--r--
module.info.be.auto
210
B
-rw-r--r--
module.info.bg
0
B
-rw-r--r--
module.info.bg.auto
224
B
-rw-r--r--
module.info.ca
126
B
-rw-r--r--
module.info.ca.auto
24
B
-rw-r--r--
module.info.cs
36
B
-rw-r--r--
module.info.cs.auto
125
B
-rw-r--r--
module.info.da
0
B
-rw-r--r--
module.info.da.auto
142
B
-rw-r--r--
module.info.de
146
B
-rw-r--r--
module.info.de.auto
25
B
-rw-r--r--
module.info.el
0
B
-rw-r--r--
module.info.el.auto
314
B
-rw-r--r--
module.info.es
35
B
-rw-r--r--
module.info.es.auto
127
B
-rw-r--r--
module.info.eu
0
B
-rw-r--r--
module.info.eu.auto
150
B
-rw-r--r--
module.info.fa
0
B
-rw-r--r--
module.info.fa.auto
249
B
-rw-r--r--
module.info.fi
33
B
-rw-r--r--
module.info.fi.auto
117
B
-rw-r--r--
module.info.fr
36
B
-rw-r--r--
module.info.fr.auto
135
B
-rw-r--r--
module.info.he
0
B
-rw-r--r--
module.info.he.auto
197
B
-rw-r--r--
module.info.hr
0
B
-rw-r--r--
module.info.hr.auto
155
B
-rw-r--r--
module.info.hu
40
B
-rw-r--r--
module.info.hu.auto
140
B
-rw-r--r--
module.info.it
0
B
-rw-r--r--
module.info.it.auto
142
B
-rw-r--r--
module.info.ja
45
B
-rw-r--r--
module.info.ja.auto
161
B
-rw-r--r--
module.info.ko
32
B
-rw-r--r--
module.info.ko.auto
136
B
-rw-r--r--
module.info.lt
0
B
-rw-r--r--
module.info.lt.auto
178
B
-rw-r--r--
module.info.lv
0
B
-rw-r--r--
module.info.lv.auto
170
B
-rw-r--r--
module.info.ms
119
B
-rw-r--r--
module.info.ms.auto
22
B
-rw-r--r--
module.info.mt
0
B
-rw-r--r--
module.info.mt.auto
152
B
-rw-r--r--
module.info.nl
35
B
-rw-r--r--
module.info.nl.auto
122
B
-rw-r--r--
module.info.no
33
B
-rw-r--r--
module.info.no.auto
126
B
-rw-r--r--
module.info.pl
0
B
-rw-r--r--
module.info.pl.auto
149
B
-rw-r--r--
module.info.pt
0
B
-rw-r--r--
module.info.pt.auto
158
B
-rw-r--r--
module.info.pt_BR
0
B
-rw-r--r--
module.info.pt_BR.auto
167
B
-rw-r--r--
module.info.ro
0
B
-rw-r--r--
module.info.ro.auto
155
B
-rw-r--r--
module.info.ru
0
B
-rw-r--r--
module.info.ru.auto
208
B
-rw-r--r--
module.info.sk
0
B
-rw-r--r--
module.info.sk.auto
156
B
-rw-r--r--
module.info.sl
0
B
-rw-r--r--
module.info.sl.auto
154
B
-rw-r--r--
module.info.sv
0
B
-rw-r--r--
module.info.sv.auto
161
B
-rw-r--r--
module.info.th
0
B
-rw-r--r--
module.info.th.auto
274
B
-rw-r--r--
module.info.tr
0
B
-rw-r--r--
module.info.tr.auto
160
B
-rw-r--r--
module.info.uk
0
B
-rw-r--r--
module.info.uk.auto
208
B
-rw-r--r--
module.info.ur
0
B
-rw-r--r--
module.info.ur.auto
220
B
-rw-r--r--
module.info.vi
0
B
-rw-r--r--
module.info.vi.auto
180
B
-rw-r--r--
module.info.zh
0
B
-rw-r--r--
module.info.zh.auto
128
B
-rw-r--r--
module.info.zh_TW
30
B
-rw-r--r--
module.info.zh_TW.auto
101
B
-rw-r--r--
prefs.info
28
B
-rw-r--r--
save_dir.cgi
8.16
KB
-rwxr-xr-x
save_group.cgi
1.28
KB
-rwxr-xr-x
save_user.cgi
1.69
KB
-rwxr-xr-x
search.cgi
1.81
KB
-rwxr-xr-x
useradmin_update.pl
1.75
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : htaccess-lib.pl
# htaccess-lib.pl # Common functions for the htaccess and htpasswd file management module use strict; use warnings; no warnings 'redefine'; no warnings 'uninitialized'; our (%config, %module_info, @remote_user_info, $user_module_config_directory, $remote_user, $module_config_directory); BEGIN { push(@INC, ".."); }; use WebminCore; &init_config(); do 'htpasswd-file-lib.pl'; our ($default_dir, @accessdirs, $directories_file, $apachemod, $can_htpasswd, $can_htgroups, $can_create, $can_sync, %access); our ($old_uid, $old_gid); if ($module_info{'usermin'}) { # Allowed directories are in module configuration &switch_to_remote_user(); &create_user_config_dirs(); $default_dir = &resolve_links($remote_user_info[7]); push(@accessdirs, $default_dir) if ($config{'home'}); foreach my $d (split(/\t+/, $config{'dirs'})) { push(@accessdirs, $d =~ /^\// ? $d : "$default_dir/$d"); } @accessdirs = &expand_root_variables(@accessdirs); $directories_file = "$user_module_config_directory/directories"; $apachemod = "htaccess"; $can_htpasswd = $config{'can_htpasswd'}; $can_htgroups = $config{'can_htgroups'}; $can_create = !$config{'nocreate'}; } else { # Allowed directories come from ACL %access = &get_module_acl(); my @uinfo; if (&supports_users() && $access{'home'} && $remote_user) { # Include user home @uinfo = getpwnam($remote_user); if (scalar(@uinfo)) { push(@accessdirs, &resolve_links($uinfo[7])); } } foreach my $d (split(/\t+/, $access{'dirs'})) { push(@accessdirs, $d =~ /^\// || !@uinfo ? $d : &resolve_links("$uinfo[7]/$d")); } $directories_file = "$module_config_directory/directories"; $directories_file .= ".".$remote_user if ($access{'userdirs'}); $apachemod = "apache"; $can_htpasswd = 1; $can_htgroups = 1; $default_dir = $accessdirs[0]; $can_sync = $access{'sync'}; $can_create = !$access{'uonly'}; } # list_directories([even-if-missing]) # Returns a list of protected directories known to this module, and the # users file, encryption mode, sync mode and groups file for each sub list_directories { my @rv; my $fh; open($fh, "<".$directories_file) || return (); while(<$fh>) { s/\r|\n//g; my @dir = split(/\t+/, $_); next if (!@dir); if ($_[0] || -d $dir[0] && -r "$dir[0]/$config{'htaccess'}") { push(@rv, \@dir); } } close($fh); return @rv; } # save_directories(&dirs) # Save the list of known directories, which must be in the same format as # returned by list_directories sub save_directories { my $d; my $fh = "DIRS"; &open_tempfile($fh, ">$directories_file"); foreach $d (@{$_[0]}) { my @safed = map { defined($_) ? $_ : "" } @$d; &print_tempfile($fh, join("\t", @safed),"\n"); } &close_tempfile($fh); } # can_access_dir(dir) # Returns 1 if files can be created under some directory, 0 if not sub can_access_dir { return 1 if (!$ENV{'GATEWAY_INTERFACE'}); my $d; foreach $d (@accessdirs) { return 1 if (&is_under_directory(&resolve_links($d), &resolve_links($_[0]))); } return 0; } # switch_user() # Switch to the Unix user that files are accessed as. # No need to do anything for Usermin, because the switch was done above. sub switch_user { if (!$module_info{'usermin'} && $access{'user'} ne 'root' && !defined($old_uid) && &supports_users()) { my @uinfo = getpwnam($access{'user'} eq "*" ? $remote_user : $access{'user'}); $old_uid = $>; $old_gid = $); $) = "$uinfo[3] $uinfo[3]"; $> = $uinfo[2]; } } sub switch_back { if (defined($old_uid)) { $> = $old_uid; $) = $old_gid; $old_uid = $old_gid = undef; } } # expand_root_variables(dir, ...) # Replaces $USER and $HOME in a list of dirs sub expand_root_variables { my @rv; my %hash = ( 'user' => $remote_user_info[0], 'home' => $remote_user_info[7], 'uid' => $remote_user_info[2], 'gid' => $remote_user_info[3] ); my @ginfo = getgrgid($remote_user_info[3]); $hash{'group'} = $ginfo[0]; foreach my $dir (@_) { push(@rv, &substitute_template($dir, \%hash)); } return @rv; } 1;
Close