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.158
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 /
cluster-usermin /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
319
B
-rw-r--r--
add.cgi
2.04
KB
-rwxr-xr-x
cluster-usermin-lib.pl
7.14
KB
-rwxr-xr-x
config
25
B
-rw-r--r--
config.info
108
B
-rw-r--r--
config.info.ca
133
B
-rw-r--r--
config.info.cs
79
B
-rw-r--r--
config.info.de
125
B
-rw-r--r--
config.info.es
63
B
-rw-r--r--
config.info.fr
134
B
-rw-r--r--
config.info.hr
0
B
-rw-r--r--
config.info.hu
0
B
-rw-r--r--
config.info.ms
131
B
-rw-r--r--
config.info.nl
129
B
-rw-r--r--
config.info.no
127
B
-rw-r--r--
config.info.pl
122
B
-rw-r--r--
delete_host.cgi
251
B
-rwxr-xr-x
delete_mod.cgi
3.89
KB
-rwxr-xr-x
edit_acl.cgi
4.2
KB
-rwxr-xr-x
edit_host.cgi
3.37
KB
-rwxr-xr-x
edit_mod.cgi
5.42
KB
-rwxr-xr-x
index.cgi
6.02
KB
-rwxr-xr-x
install.cgi
7.5
KB
-rwxr-xr-x
module.info
211
B
-rw-r--r--
module.info.af
0
B
-rw-r--r--
module.info.af.auto
141
B
-rw-r--r--
module.info.ar
0
B
-rw-r--r--
module.info.ar.auto
196
B
-rw-r--r--
module.info.be
0
B
-rw-r--r--
module.info.be.auto
213
B
-rw-r--r--
module.info.bg
0
B
-rw-r--r--
module.info.bg.auto
213
B
-rw-r--r--
module.info.ca
131
B
-rw-r--r--
module.info.ca.auto
24
B
-rw-r--r--
module.info.cs
34
B
-rw-r--r--
module.info.cs.auto
105
B
-rw-r--r--
module.info.da
0
B
-rw-r--r--
module.info.da.auto
148
B
-rw-r--r--
module.info.de
125
B
-rw-r--r--
module.info.de.auto
24
B
-rw-r--r--
module.info.el
0
B
-rw-r--r--
module.info.el.auto
258
B
-rw-r--r--
module.info.es
42
B
-rw-r--r--
module.info.es.auto
109
B
-rw-r--r--
module.info.eu
0
B
-rw-r--r--
module.info.eu.auto
162
B
-rw-r--r--
module.info.fa
0
B
-rw-r--r--
module.info.fa.auto
190
B
-rw-r--r--
module.info.fi
0
B
-rw-r--r--
module.info.fi.auto
142
B
-rw-r--r--
module.info.fr
36
B
-rw-r--r--
module.info.fr.auto
115
B
-rw-r--r--
module.info.he
0
B
-rw-r--r--
module.info.he.auto
166
B
-rw-r--r--
module.info.hr
0
B
-rw-r--r--
module.info.hr.auto
157
B
-rw-r--r--
module.info.hu
34
B
-rw-r--r--
module.info.hu.auto
116
B
-rw-r--r--
module.info.it
0
B
-rw-r--r--
module.info.it.auto
125
B
-rw-r--r--
module.info.ja
0
B
-rw-r--r--
module.info.ja.auto
195
B
-rw-r--r--
module.info.ko
0
B
-rw-r--r--
module.info.ko.auto
158
B
-rw-r--r--
module.info.lt
0
B
-rw-r--r--
module.info.lt.auto
160
B
-rw-r--r--
module.info.lv
0
B
-rw-r--r--
module.info.lv.auto
145
B
-rw-r--r--
module.info.ms
112
B
-rw-r--r--
module.info.ms.auto
24
B
-rw-r--r--
module.info.mt
0
B
-rw-r--r--
module.info.mt.auto
145
B
-rw-r--r--
module.info.nl
32
B
-rw-r--r--
module.info.nl.auto
105
B
-rw-r--r--
module.info.no
33
B
-rw-r--r--
module.info.no.auto
115
B
-rw-r--r--
module.info.pl
125
B
-rw-r--r--
module.info.pl.auto
28
B
-rw-r--r--
module.info.pt
0
B
-rw-r--r--
module.info.pt.auto
145
B
-rw-r--r--
module.info.pt_BR
0
B
-rw-r--r--
module.info.pt_BR.auto
154
B
-rw-r--r--
module.info.ro
0
B
-rw-r--r--
module.info.ro.auto
141
B
-rw-r--r--
module.info.ru
0
B
-rw-r--r--
module.info.ru.auto
219
B
-rw-r--r--
module.info.sk
0
B
-rw-r--r--
module.info.sk.auto
142
B
-rw-r--r--
module.info.sl
0
B
-rw-r--r--
module.info.sl.auto
140
B
-rw-r--r--
module.info.sv
0
B
-rw-r--r--
module.info.sv.auto
138
B
-rw-r--r--
module.info.th
0
B
-rw-r--r--
module.info.th.auto
282
B
-rw-r--r--
module.info.tr
0
B
-rw-r--r--
module.info.tr.auto
146
B
-rw-r--r--
module.info.uk
0
B
-rw-r--r--
module.info.uk.auto
227
B
-rw-r--r--
module.info.ur
0
B
-rw-r--r--
module.info.ur.auto
216
B
-rw-r--r--
module.info.vi
0
B
-rw-r--r--
module.info.vi.auto
158
B
-rw-r--r--
module.info.zh
0
B
-rw-r--r--
module.info.zh.auto
126
B
-rw-r--r--
module.info.zh_TW
0
B
-rw-r--r--
module.info.zh_TW.auto
135
B
-rw-r--r--
prefs.info
28
B
-rw-r--r--
refresh.cgi
3.36
KB
-rwxr-xr-x
save_acl.cgi
3.28
KB
-rwxr-xr-x
sync.cgi
3.94
KB
-rwxr-xr-x
sync_form.cgi
1.78
KB
-rwxr-xr-x
update.cgi
4.1
KB
-rwxr-xr-x
upgrade.cgi
12.87
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cluster-usermin-lib.pl
# cluster-usermin-lib.pl # Common functions for managing usermin installs across a cluster BEGIN { push(@INC, ".."); }; use WebminCore; &init_config(); &foreign_require("servers", "servers-lib.pl"); &foreign_require("usermin", "usermin-lib.pl"); # list_usermin_hosts() # Returns a list of all hosts whose usermin modules are being managed sub list_usermin_hosts { local %smap = map { $_->{'id'}, $_ } &list_servers(); local $hdir = "$module_config_directory/hosts"; opendir(DIR, $hdir); local ($h, @rv); foreach $h (readdir(DIR)) { next if ($h eq "." || $h eq ".." || !-d "$hdir/$h"); local %host = ( 'id', $h ); next if (!$smap{$h}); # underlying server was deleted local $f; opendir(MDIR, "$hdir/$h"); foreach $f (readdir(MDIR)) { if ($f =~ /^(\S+)\.mod$/) { local %mod; &read_file("$hdir/$h/$f", \%mod); push(@{$host{'modules'}}, \%mod); } elsif ($f =~ /^(\S+)\.theme$/) { local %theme; &read_file("$hdir/$h/$f", \%theme); push(@{$host{'themes'}}, \%theme); } elsif ($f eq "usermin") { &read_file("$hdir/$h/$f", \%host); } } closedir(MDIR); push(@rv, \%host); } closedir(DIR); return @rv; } # save_usermin_host(&host) sub save_usermin_host { local $hdir = "$module_config_directory/hosts"; local %oldfile; mkdir($hdir, 0700); if (-d "$hdir/$_[0]->{'id'}") { opendir(DIR, "$hdir/$_[0]->{'id'}"); map { $oldfile{$_}++ } readdir(DIR); closedir(DIR); } else { mkdir("$hdir/$_[0]->{'id'}", 0700); } local $m; foreach $m (@{$_[0]->{'modules'}}) { &write_file("$hdir/$_[0]->{'id'}/$m->{'dir'}.mod", $m); delete($oldfile{"$m->{'dir'}.mod"}); } foreach $m (@{$_[0]->{'themes'}}) { &write_file("$hdir/$_[0]->{'id'}/$m->{'dir'}.theme", $m); delete($oldfile{"$m->{'dir'}.theme"}); } local %usermin = %{$_[0]}; delete($usermin{'modules'}); delete($usermin{'themes'}); delete($usermin{'id'}); &write_file("$hdir/$_[0]->{'id'}/usermin", \%usermin); delete($oldfile{"usermin"}); unlink(map { "$hdir/$_[0]->{'id'}/$_" } keys %oldfile); } # delete_usermin_host(&host) sub delete_usermin_host { system("rm -rf '$module_config_directory/hosts/$_[0]->{'id'}'"); } # list_servers() # Returns a list of all servers from the usermin servers module that can be # managed, plus this server sub list_servers { local @servers = &servers::list_servers_sorted(); return ( &servers::this_server(), grep { $_->{'user'} } @servers ); } # server_name(&server) sub server_name { return $_[0]->{'desc'} ? $_[0]->{'desc'} : $_[0]->{'host'}; } # all_modules(&hosts) sub all_modules { local (%done, $u, %descc); local @uniq = grep { !$done{$_->{'dir'}}++ } map { @{$_->{'modules'}} } @{$_[0]}; map { $descc{$_->{'desc'}}++ } @uniq; foreach $u (@uniq) { $u->{'desc'} .= " ($u->{'dir'})" if ($descc{$u->{'desc'}} > 1); } return sort { $a->{'desc'} cmp $b->{'desc'} } @uniq; } # all_themes(&hosts) sub all_themes { local %done; return sort { $a->{'desc'} cmp $b->{'desc'} } grep { !$done{$_->{'dir'}}++ } map { @{$_->{'themes'}} } @{$_[0]}; } # all_groups(&hosts) sub all_groups { local %done; return sort { $a->{'name'} cmp $b->{'name'} } grep { !$done{$_->{'name'}}++ } map { @{$_->{'groups'}} } @{$_[0]}; } # all_users(&hosts) sub all_users { local %done; return sort { $a->{'name'} cmp $b->{'name'} } grep { !$done{$_->{'name'}}++ } map { @{$_->{'users'}} } @{$_[0]}; } # create_on_input(desc, [no-donthave], [no-have], [multiple]) sub create_on_input { local @hosts = &list_usermin_hosts(); local @servers = &list_servers(); if ($_[0]) { print "<tr> <td><b>$_[0]</b></td>\n"; print "<td>\n"; } if ($_[3]) { print "<select name=server size=5 multiple>\n"; } else { print "<select name=server>\n"; } print "<option value=-1>$text{'user_all'}</option>\n"; print "<option value=-2>$text{'user_donthave'}</option>\n" if (!$_[1]); print "<option value=-3>$text{'user_have'}</option>\n" if (!$_[2]); local @groups = &servers::list_all_groups(\@servers); local $h; foreach $h (@hosts) { local ($s) = grep { $_->{'id'} == $h->{'id'} } @servers; if ($s) { print "<option value='$s->{'id'}'>", $s->{'desc'} ? $s->{'desc'} : $s->{'host'},"</option>\n"; $gothost{$s->{'host'}}++; } } local $g; foreach $g (@groups) { local ($found, $m); foreach $m (@{$g->{'members'}}) { ($found++, last) if ($gothost{$m}); } print "<option value='group_$g->{'name'}'>", &text('user_ofgroup', $g->{'name'}),"</option>\n" if ($found); } print "</select>\n"; if ($_[0]) { print "</td> </tr>\n"; } } # create_on_parse(prefix, &already, name, [no-print]) sub create_on_parse { local @allhosts = &list_usermin_hosts(); local @servers = &list_servers(); local @hosts; local $server; foreach $server (split(/\0/, $in{'server'})) { if ($server == -2) { # Install on hosts that don't have it local %already = map { $_->{'id'}, 1 } @{$_[1]}; push(@hosts, grep { !$already{$_->{'id'}} } @allhosts); print "<b>",&text($_[0].'3', $_[2]),"</b><p>\n" if (!$_[3]); } elsif ($server == -3) { # Install on hosts that do have it local %already = map { $_->{'id'}, 1 } @{$_[1]}; push(@hosts, grep { $already{$_->{'id'}} } @allhosts); print "<b>",&text($_[0].'6', $_[2]),"</b><p>\n" if (!$_[3]); } elsif ($server =~ /^group_(.*)/) { # Install on members of some group local ($group) = grep { $_->{'name'} eq $1 } &servers::list_all_groups(\@servers); push(@hosts, grep { local $hid = $_->{'id'}; local ($s) = grep { $_->{'id'} == $hid } @servers; &indexof($s->{'host'}, @{$group->{'members'}}) >= 0 } @allhosts); print "<b>",&text($_[0].'4', $_[2], $group->{'name'}), "</b><p>\n" if (!$_[3]); } elsif ($server != -1) { # Just install on one host local ($onehost) = grep { $_->{'id'} == $server } @allhosts; push(@hosts, $onehost); local ($s) = grep { $_->{'id'} == $onehost->{'id'} } @servers; print "<b>",&text($_[0].'5', $_[2], &server_name($s)),"</b><p>\n" if (!$_[3]); } else { # Installing on every host push(@hosts, @allhosts); print "<b>",&text($_[0], join(" ", @names)), "</b><p>\n" if (!$_[3]); } } return &unique(@hosts); } # get_usermin_text() # Returns the text hash for Usermin, on this system sub get_usermin_text { local %text; local %miniserv; &usermin::get_usermin_miniserv_config(\%miniserv); local $root = $miniserv{'root'}; local %ugconfig; &usermin::get_usermin_config(\%ugconfig); local $ol = $ugconfig{'overlang'}; local $o; local ($dir) = ($_[1] || "lang"); # Read global lang files foreach $o (@lang_order_list) { local $ok = &read_file_cached("$root/$dir/$o", \%text); return () if (!$ok && $o eq $default_lang); } if ($ol) { foreach $o (@lang_order_list) { &read_file_cached("$root/$ol/$o", \%text); } } &read_file_cached("$usermin::config{'usermin_dir'}/custom-lang", \%text); if ($_[0]) { # Read module's lang files local $mdir = "$root/$_[0]"; foreach $o (@lang_order_list) { &read_file_cached("$mdir/$dir/$o", \%text); } if ($ol) { foreach $o (@lang_order_list) { &read_file_cached("$mdir/$ol/$o", \%text); } } &read_file_cached("$usermin::config{'usermin_dir'}/$_[0]/custom-lang", \%text); } foreach $k (keys %text) { $text{$k} =~ s/\$(\{([^\}]+)\}|([A-Za-z0-9\.\-\_]+))/text_subs($2 || $3,\%text)/ge; } return %text; } 1;
Close