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 : check.cgi
#!/usr/bin/perl # Check the user's LDAP settings require './ldap-client-lib.pl'; require './switch-lib.pl'; &ui_print_unbuffered_header(undef, $text{'check_title'}, ""); # Get the user base print $text{'check_base'},"<br>\n"; $conf = &get_config(); @bases = &find_value("base", $conf); @scopes = &find_value("scope", $conf); if (&get_ldap_client() eq "nss") { # Older LDAP config uses directives like nss_base_passwd, with # the scope and filter separated by ? $user_base = &find_svalue("nss_base_passwd", $conf) || &find_svalue("base", $conf); } else { # Newer LDAP versions have a base starting with 'user', but fall back # to the one with no DB ($user_base) = map { /^\S+\s+(\S+=*)/; $1 } grep { /^passwd\s/ } @bases; if (!$user_base) { ($user_base) = grep { /^\S+=.*$/ } @bases; } } if (!$user_base) { &print_problem(&text('check_ebase')); goto END; } else { print &text('check_based', "<tt>$user_base</tt>"),"<p>\n"; } # Attempt to connect to LDAP server print $text{'check_connect'},"<br>\n"; $ldap = &ldap_connect(1); if (!ref($ldap)) { &print_problem(&text('check_econnect', $ldap)); goto END; } else { local $ldaphost; eval { $ldaphost = $ldap->host(); }; $ldaphost ||= &get_ldap_host(); print &text('check_connected', $ldaphost),"<p>\n"; } # Work out the scope if (&get_ldap_client() eq "nss") { $scope = &find_svalue("scope", $conf); } else { ($scope) = grep { /^\S+$/ } @scopes; } if ($user_base =~ s/\?([^\?]*)(\?([^\?]*))?$//) { $scope = $1; } $scope ||= "one"; # Look for some users print $text{'check_search'},"<br>\n"; $rv = $ldap->search(base => $user_base, filter => '(objectClass=posixAccount)', scope => $scope); if ($rv->code) { # Search failed! &print_problem(&text('check_esearch', $rv->error)); goto END; } if (!$rv->count) { &print_problem(&text('check_eusers', "<tt>$user_base</tt>")); goto END; } else { print &text('check_found', $rv->count),"<p>\n"; } # Check NSS configuration for users print $text{'check_nss'},"<br>\n"; $nss = &get_nsswitch_config(); ($passwd) = grep { $_->{'name'} eq 'passwd' } @$nss; ($ldapsrc) = grep { $_->{'src'} eq 'ldap' || $_->{'src'} eq 'sss' } @{$passwd->{'srcs'}}; if (!$ldapsrc) { &print_problem($text{'check_enss'}); goto END; } else { print $text{'check_nssok'},"<p>\n"; } # Make sure one of the users is a valid Unix user $first = $rv->entry(0); print &text('check_match', "<tt>".$first->get_value("uid")."</tt>"),"<br>\n"; $uid = getpwnam($first->get_value("uid")); if (!$uid) { # Sometimes this fails due to nsswitch.conf caching .. so try forking # a separate command $uid = &backquote_command( "id -a ".$first->get_value("uid")." 2>/dev/null"); } if (!$uid) { &print_problem($text{'check_ematch'}); goto END; } else { print $text{'check_matched'},"<p>\n"; print "<b>$text{'check_done'}</b><p>\n"; } END: &ui_print_footer("", $text{'index_return'}); sub print_problem { print "<font color=#ff0000>",@_,"</font><p>\n"; }
Close