Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #//Coded By VanGans
- NC='\033[0m'
- GREEN='\e[38;5;82m'
- CYAN='\e[38;5;45m'
- RED='\e[38;5;196m'
- ##
- printf "\e[38;5;82m _____ __ __ _______ _____ \n"
- printf "\e[38;5;82m / ____| | \/ | |__ __| | __ \ \n"
- printf "\e[38;5;82m | (___ | \ / | | | | |__) | \n"
- printf "\e[38;5;82m \___ \ | |\/| | | | | ___/ \n"
- printf "\e[38;5;82m ___) | | | | | | | | | \n"
- printf "\e[38;5;82m |_____/ |_| |_| |_| |_| \n"
- printf "\e[38;5;82m \n"
- printf "\n"
- printf "${NC}\n"
- printf "${RED}${NC}\n\n"
- printf "\n";
- # mail.sh
- # echo "PUT YOUR MAIL BODY HERE" | mailx -s "We've blocked any access attempts to your account."
- #-S smtp-auth=login
- #-S smtp-auth-password=???
- #-S from="Service <[email protected]>" [email protected]
- if [ $# -ne 7 ]
- then
- echo "Usage: $0 FromAdress ToAdress Domain MailServer MailTextFile AuthEmail AuthPass"
- stop 1
- fi
- # $authemail "mail smtp"
- # $authpass "mail password"
- $authpass=`echo $7|openssl enc -base64|awk 'sub("..$", "password")'`
- if [ ! -f $mailtext ]
- then
- echo "Cannot find your mail text file. Exiting..."
- exit 1
- fi
- exec 9<>/dev/tcp/$mailserver/25
- echo "HELO $domain" >&9
- read -r temp <&9
- echo "$temp"
- echo "auth login" >&9
- read -r temp <&9
- echo "$authemail" >&9
- read -r temp <&9
- echo "$authpass" >&9
- read -r temp <&9
- echo "Mail From: $from" >&9
- read -r temp <&9
- echo "$temp"
- echo "Rcpt To: $to" >&9
- read -r temp <&9
- echo "$temp"
- echo "Data" >&9
- read -r temp <&9
- echo "$temp"
- cat $mailtext >&9
- echo "." >&9
- read -r temp <&9
- echo "$temp"
- echo "quit" >&9
- read -r temp <&9
- echo "$temp"
- 9>&-
- 9<&-
- echo "All Done Sending Email. See above for errors"
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment