#!/bin/bash header(){ printf "\n" echo "*********************************************************" echo -e "* \033[1m\e[1;31m16SHOP APPLE VALID\E[0m *" echo "*********************************************************" echo -e "* \033[1m\e[1;32mVersion : 1.0\E[0m *" echo -e "* \033[1m\e[1;32mEmail : root.devilscream@gmail.com\E[0m *" echo "*********************************************************" printf "\n" } check_email(){ 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: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B20" \ -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="\033[1m\e[1;32m[+] LIVE =>\e[1m" echo "$1" >> "$2" else local Apple="\033[1m\e[1;31m[+] DIE =>\e[1m" echo "$1" >> "$3" fi else local Apple="\033[1m\e[1;31m[+] UNKNOWN =>\033[1m\e[1;31m" echo "$1" >> "$4" fi printf "${Apple}" } local hasil="$(valid ${1} ${2} ${3} ${4} ${8}) ${1} [16Shop Apple 1.0]" printf "${hasil}\n" } if [[ -z $1 ]]; then header printf "To Use $0 \n" exit 1 fi header echo "[+] Your mailist = $1" read -p "[?] Enter result folder = " Output if [[ ! -d $Output ]]; then mkdir $Output fi Apple_dir=$Output VALID_APPLE="${Apple_dir}/live.txt" INVALID_APPLE="${Apple_dir}/die.txt" UNKNOWN_APPLE="${Apple_dir}/unknown.txt" touch $VALID_APPLE touch $INVALID_APPLE touch $UNKNOWN_APPLE persend=1 setleep=1 lines=$(wc -l $1 | cut -f1 -d' ') printf "[+]${DF}${B} Found ${lines} mailist in ${1}${CC}\n\n" totals=$(cat $1 | wc -l) 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 check_email $username $VALID_APPLE $INVALID_APPLE $UNKNOWN_APPLE & grep -v -- "$username" $1 > temp && mv temp $1 itung=$[$itung+1] done wait ENDTIME=$(date +%s) printf "\n${PP}It takes $[$ENDTIME - $STARTTIME] seconds To Check ${lines} ${CC}\n" 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 "LIVE : $T_VALID | DIE : $T_INVALID | UNKNOWN : $T_UNKNOWN\n$CC"