· 7 years ago · Apr 03, 2019, 12:36 AM
1#!/bin/bash
2#created by Ray404 - Demeter16
3#Gmail account bulk check
4NC='\033[0m'
5GREEN='\e[38;5;82m'
6CYAN='\e[38;5;45m'
7RED='\e[38;5;196m'
8YELLOW='\033[1;33m'
9BLUE='\033[0;34m'
10NC='\033[0m'
11ceke=$(expect -v)
12if [[ "$ceke" ]]; then
13 echo "OK"
14else
15 echo "expect not installed, please install"
16 echo "find on google : https://google.com/search?q=install+expect+on+$( cat /etc/os-release | head -1 | gawk -F\" '{ print $2 }')"
17 exit
18fi
19echo "==========================="
20ls
21echo "==========================="
22read -p 'Your List : ' list
23IFS=$'\r\n' GLOBIGNORE='*' command eval 'email=($(cat $list | grep \@gmail.com))'
24for (( i = 0; i < "${#email[@]}"; i++ )); do
25 mail="${email[$i]}"
26 oks="RCPT TO: <$mail>"
27cat <<__EOF > verify
28#!/bin/expect
29# Created by Achon666ju5t - demeter16
30set DeFR "MAIL FROM: <achonk@achonk-just.com>"
31set DeTO "$oks"
32 spawn nc gmail-smtp-in.l.google.com 25
33 expect "ESMTP"
34 send "HELO mydomain.com\r"
35 expect "service"
36 send "\$DeFR\r"
37 expect "OK"
38 send "\$DeTO\r"
39 expect "OK"
40 send "quit\r"
41__EOF
42cek=$(expect verify)
43if [[ "$cek" =~ "The email account that you tried to reach does not exist" ]]; then
44 printf "${YELLOW}[${i}/${#email[@]}]${RED} [DIE] $mail\n${NC}"
45else
46 printf "${YELLOW}[${i}/${#email[@]}]${CYAN} [Live] $mail\n${NC}"
47fi
48done