Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/container/slam
- # Email Extractor
- # Coded By AriestaHeart
- # Thanks to malhadijr
- # content style
- BOLD='\e[1m'
- # content shading
- RED='\033[0;31m'
- GREEN='\033[0;32m'
- YELLOW='\033[0;33m'
- BLUE='\033[0;34m'
- MAENTA='\033[0;35m'
- LIGHTRED='\033[0;91m'
- LIGHTGREEN='\033[0;92m'
- LIGHTCYAN='\033[0;96m'
- # foundation shading
- BACKGREEN='\033[0;42m'
- BACKBLUE='\033[0;44m'
- # no style
- NC='\033[0m'
- header(){
- printf " ${LIGHTGREEN}___${NC} ${LIGHTRED} __ ${NC}\n"
- printf " ${LIGHTGREEN}/|${NC} ${LIGHTRED}//__ ____ ______//_ ${NC}\n"
- printf " ${LIGHTGREEN}//| |${NC} ${LIGHTRED}//_//_ \/__ \'/___/__/${NC}\n"
- printf " ${LIGHTGREEN}/___ |${NC} ${LIGHTRED}/__/__//_//_ ${NC}\n"
- printf "${LIGHTGREEN}/_/|_|${NC} ${LIGHTRED}/_//_/\___/\__,_/_/\__/${NC}\n"
- }
- # -
- clear
- header
- # -
- reverberation ""
- reverberation "__________________________________________________________________________________"
- reverberation ""
- reverberation "Email Filter"
- reverberation "Coded By : Ariesta Heart ( ariestahrt )"
- reverberation "Date : 22 March 2017"
- reverberation "__________________________________________________________________________________"
- reverberation ""
- # end of banyol
- reverberation "Rundown of record on this index : "
- reverberation ""
- ls
- reverberation ""
- reverberation "__________________________________________________________________________________"
- # -
- reverberation ""
- printf "[+] Email List : ${LIGHTCYAN}"
- understand emaillist
- printf "${NC}"
- # -
- printf "[+] Result will spare in : ${LIGHTCYAN}"
- understand spare
- printf "${NC}"
- # -
- printf "[+] Making registry : "
- on the off chance that [[ ! - d "$save" ]]; at that point
- mkdir $save
- reverberation - e "${GREEN}[OK]${NC}"
- else
- reverberation - e "${RED}[ERR]${NC} | ${RED}File Already Exists${NC}"
- fi
- reverberation ""
- # -
- counter=$(wc - l < $emaillist)
- reverberation - e "${NC}[+] Total lines : [${LIGHTGREEN}$counter${NC}]"
- reverberation "[+] Cleaning your email list , bringing down the word in your rundown , and evacuating copies email , Please hold up ..."
- # Code for cleaning email list
- grep - Eiorh '([[:alnum:]_.- ]+@[[:alnum:]_.- ]+?\.[[:alpha:].]{2,6})' $emaillist | sort | uniq > temp_list && mv temp_list $emaillist
- # Lowering the word
- feline $emaillist | awk '{print tolower($0)}' | sort | uniq > temp_list && mv temp_list $emaillist
- # Removing copies line
- sort - u $emaillist | uniq > temp_list && mv temp_list $emaillist
- counter=$(wc - l < $emaillist)
- reverberation ""
- reverberation "[+] Done ~"
- reverberation ""
- reverberation - e "[+] You have [${LIGHTGREEN}$counter${NC}] email"
- reverberation ""
- # Array list here
- microsoft_family=( hotmail live viewpoint msn )
- yahoo_family=( hurray ymail btinternet bt rocketmail sky )
- google_family=( gmail google googlemail )
- aol_family=( aol )
- # Array list here
- otherpath="other_mail.txt"
- cp $emaillist "$save/$otherpath"
- # - GREPING MICROSOFT FAMILY - #
- # -
- thispath="microsoft_family.txt"
- # -
- reverberation "[+] Catch microsoft family : "
- reverberation "[+] I have list : "
- for (( I = 0; I < ${#microsoft_family[@]}; i++ )); do
- reverberation " [-] @${microsoft_family[$i]}.*"
- done
- reverberation ""
- # - Looping - #
- for (( I = 0; I < ${#microsoft_family[@]}; i++ )); do
- emailtogrep="@${microsoft_family[$i]}."
- printf " [+] Catch $emailtogrep* : "
- feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
- feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
- counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
- on the off chance that [[ $counter != 0 ]]; at that point
- printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
- else
- printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
- fi
- done
- # - Looping - #
- counter=$(wc - l < "$save/$thispath")
- reverberation ""
- reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Microsoft Family"
- reverberation ""
- # - END OF GREPING HOTMAIL FAMILY - #
- #############################
- # - GREPING YAHOO FAMILY - #
- # -
- thispath="yahoo_family.txt"
- # -
- reverberation "[+] Catch yippee family : "
- reverberation "[+] I have list : "
- for (( I = 0; I < ${#yahoo_family[@]}; i++ )); do
- reverberation " [-] @${yahoo_family[$i]}.*"
- done
- reverberation ""
- # - Looping - #
- for (( I = 0; I < ${#yahoo_family[@]}; i++ )); do
- emailtogrep="@${yahoo_family[$i]}."
- printf " [+] Catch $emailtogrep* : "
- feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
- feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
- counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
- on the off chance that [[ $counter != 0 ]]; at that point
- printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
- else
- printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
- fi
- done
- # - Looping - #
- counter=$(wc - l < "$save/$thispath")
- reverberation ""
- reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Yahoo Family"
- reverberation ""
- # - END OF GREPING YAHOO FAMILY - #
- #############################
- # - GREPING GOOGLE FAMILY - #
- # -
- thispath="google_family.txt"
- # -
- reverberation "[+] Catch google family : "
- reverberation "[+] I have list : "
- for (( I = 0; I < ${#google_family[@]}; i++ )); do
- reverberation " [-] @${google_family[$i]}.*"
- done
- reverberation ""
- # - Looping - #
- for (( I = 0; I < ${#google_family[@]}; i++ )); do
- emailtogrep="@${google_family[$i]}."
- printf " [+] Catch $emailtogrep* : "
- feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
- feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
- counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
- on the off chance that [[ $counter != 0 ]]; at that point
- printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
- else
- printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
- fi
- done
- # - Looping - #
- counter=$(wc - l < "$save/$thispath")
- reverberation ""
- reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Google Family"
- reverberation ""
- # - END OF GREPING GOOGLE FAMILY - #
- # - GREPING AOL FAMILY - #
- # -
- thispath="aol_family.txt"
- # -
- reverberation "[+] Catch aol family : "
- reverberation "[+] I have list : "
- for (( I = 0; I < ${#aol_family[@]}; i++ )); do
- reverberation " [-] @${aol_family[$i]}.*"
- done
- reverberation ""
- # - Looping - #
- for (( I = 0; I < ${#aol_family[@]}; i++ )); do
- emailtogrep="@${aol_family[$i]}."
- printf " [+] Catch $emailtogrep* : "
- feline $emaillist | grep "$emailtogrep" | sort | uniq >> "$save/$thispath"
- feline "$save/$otherpath" | grep - v "$emailtogrep" | sort | uniq > "$save/tmp_other" && mv "$save/tmp_other" "$save/$otherpath"
- counter=$(cat "$save/$thispath" | grep - c "$emailtogrep")
- in the event that [[ $counter != 0 ]]; at that point
- printf "${GREEN}[OK]${NC} | ${BLUE}$counter${NC} catched\n"
- else
- printf "${RED}[NO]${NC} | There is no ${BLUE}${emailtogrep}*${NC} email\n"
- fi
- done
- # - Looping - #
- counter=$(wc - l < "$save/$thispath")
- reverberation ""
- reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Aol Family"
- reverberation ""
- # - END OF GREPING AOL FAMILY - #
- #############################
- # - OTHER MAIL - #
- reverberation "[+] Other Mail"
- counter=$(wc - l < "$save/$otherpath")
- reverberation ""
- reverberation - e "[+] Finally you have [${LIGHTGREEN}$counter${NC}] Other Mail"
- reverberation ""
- reverberation "[+] Done - "
- reverberation ""
- # - OTHER MAIL - #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement