Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
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-useradmin /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
273
B
-rw-r--r--
add.cgi
2.09
KB
-rwxr-xr-x
cluster-useradmin-lib.pl
5.5
KB
-rwxr-xr-x
config
150
B
-rw-r--r--
config.info
558
B
-rw-r--r--
config.info.ca
644
B
-rw-r--r--
config.info.ca.UTF-8
655
B
-rw-r--r--
config.info.cz
71
B
-rw-r--r--
config.info.cz.UTF-8
79
B
-rw-r--r--
config.info.de
669
B
-rw-r--r--
config.info.de.UTF-8
669
B
-rw-r--r--
config.info.es
90
B
-rw-r--r--
config.info.es.UTF-8
90
B
-rw-r--r--
config.info.fr
75
B
-rw-r--r--
config.info.fr.UTF-8
77
B
-rw-r--r--
config.info.hr
0
B
-rw-r--r--
config.info.hu
0
B
-rw-r--r--
config.info.ms_MY
131
B
-rw-r--r--
config.info.ms_MY.UTF-8
131
B
-rw-r--r--
config.info.nl
129
B
-rw-r--r--
config.info.nl.UTF-8
129
B
-rw-r--r--
config.info.no
141
B
-rw-r--r--
config.info.no.UTF-8
141
B
-rw-r--r--
config.info.pl
118
B
-rw-r--r--
config.info.pl.UTF-8
121
B
-rw-r--r--
create_group.cgi
3.32
KB
-rwxr-xr-x
create_user.cgi
9.72
KB
-rwxr-xr-x
delete_group.cgi
3.61
KB
-rwxr-xr-x
delete_host.cgi
257
B
-rwxr-xr-x
delete_user.cgi
5.22
KB
-rwxr-xr-x
edit_group.cgi
5.4
KB
-rwxr-xr-x
edit_host.cgi
2.78
KB
-rwxr-xr-x
edit_user.cgi
17.68
KB
-rwxr-xr-x
group_form.cgi
2.24
KB
-rwxr-xr-x
index.cgi
7.28
KB
-rwxr-xr-x
log_parser.pl
542
B
-rwxr-xr-x
module.info
387
B
-rw-r--r--
module.info.ca
259
B
-rw-r--r--
module.info.ca.UTF-8
277
B
-rw-r--r--
module.info.cz
38
B
-rw-r--r--
module.info.cz.UTF-8
46
B
-rw-r--r--
module.info.de
151
B
-rw-r--r--
module.info.de.UTF-8
163
B
-rw-r--r--
module.info.es
36
B
-rw-r--r--
module.info.es.UTF-8
42
B
-rw-r--r--
module.info.fr
44
B
-rw-r--r--
module.info.fr.UTF-8
50
B
-rw-r--r--
module.info.hu
29
B
-rw-r--r--
module.info.hu.UTF-8
37
B
-rw-r--r--
module.info.ms_MY
253
B
-rw-r--r--
module.info.ms_MY.UTF-8
265
B
-rw-r--r--
module.info.nl
40
B
-rw-r--r--
module.info.nl.UTF-8
46
B
-rw-r--r--
module.info.no
36
B
-rw-r--r--
module.info.no.UTF-8
42
B
-rw-r--r--
module.info.pl
230
B
-rw-r--r--
module.info.pl.UTF-8
252
B
-rw-r--r--
refresh.cgi
2.31
KB
-rwxr-xr-x
save_group.cgi
4.65
KB
-rwxr-xr-x
save_user.cgi
12.76
KB
-rwxr-xr-x
search_group.cgi
1.69
KB
-rwxr-xr-x
search_user.cgi
1.73
KB
-rwxr-xr-x
sync.cgi
4.92
KB
-rwxr-xr-x
sync_form.cgi
2.99
KB
-rwxr-xr-x
user_form.cgi
9.08
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cluster-useradmin-lib.pl
# cluster-useradmin-lib.pl # common functions for managing users across a cluster BEGIN { push(@INC, ".."); }; use WebminCore; &init_config(); &foreign_require("servers", "servers-lib.pl"); %useradmin_text = &load_language("useradmin"); %text = ( %useradmin_text, %text ); %uconfig = &foreign_config("useradmin"); # list_useradmin_hosts() # Returns a list of all hosts whose users are being managed by this module sub list_useradmin_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 opendir(UDIR, "$hdir/$h"); foreach $f (readdir(UDIR)) { if ($f =~ /^(\S+)\.user$/) { local %user; &read_file("$hdir/$h/$f", \%user); push(@{$host{'users'}}, \%user); } elsif ($f =~ /^(\S+)\.group$/) { local %group; &read_file("$hdir/$h/$f", \%group); push(@{$host{'groups'}}, \%group); } } closedir(UDIR); push(@rv, \%host); } closedir(DIR); return @rv; } # save_useradmin_host(&host) sub save_useradmin_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); } foreach $u (@{$_[0]->{'users'}}) { &write_file("$hdir/$_[0]->{'id'}/$u->{'user'}.user", $u); delete($oldfile{"$u->{'user'}.user"}); } foreach $g (@{$_[0]->{'groups'}}) { &write_file("$hdir/$_[0]->{'id'}/$g->{'group'}.group", $g); delete($oldfile{"$g->{'group'}.group"}); } unlink(map { "$hdir/$_[0]->{'id'}/$_" } keys %oldfile); } # delete_useradmin_host(&host) sub delete_useradmin_host { system("rm -rf '$module_config_directory/hosts/$_[0]->{'id'}'"); } # list_servers() # Returns a list of all servers from the webmin 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 ); } # auto_home_dir(base, username) # Returns an automatically generated home directory, and creates needed # parent dirs sub auto_home_dir { if ($uconfig{'home_style'} == 0) { return $_[0]."/".$_[1]; } elsif ($uconfig{'home_style'} == 1) { return $_[0]."/".substr($_[1], 0, 1)."/".$_[1]; } elsif ($uconfig{'home_style'} == 2) { return $_[0]."/".substr($_[1], 0, 1)."/". substr($_[1], 0, 2)."/".$_[1]; } elsif ($uconfig{'home_style'} == 3) { return $_[0]."/".substr($_[1], 0, 1)."/". substr($_[1], 1, 1)."/".$_[1]; } } # server_name(&server) sub server_name { return $_[0]->{'desc'} ? $_[0]->{'desc'} : $_[0]->{'host'}; } # supports_gothers(&server) # Returns 1 if some server supports group syncing, 0 if not sub supports_gothers { local $vers = $remote_server_version{$_[0]->{'host'}} || &remote_foreign_call($_[0]->{'host'}, "useradmin", "get_webmin_version"); return $vers >= 1.090; } # create_on_input(desc, [no-donthave], [multiple]) sub create_on_input { local @hosts = &list_useradmin_hosts(); local @servers = &list_servers(); if ($_[0]) { print "<tr> <td><b>$_[0]</b></td>\n"; print "<td colspan=2>\n"; } if ($_[2]) { print "<select name=server size=5 multiple>\n"; } else { print "<select name=server>\n"; } print "<option value=-1>$text{'uedit_all'}</option>\n"; print "<option value=-2>$text{'uedit_donthave'}</option>\n" if (!$_[1]); 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('uedit_group', $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_useradmin_hosts(); local @servers = &list_servers(); local @hosts; local $server; foreach $server (split(/\0/, $in{'server'})) { if ($server == -2) { # Check who has it already 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 =~ /^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); } 1;
Close