daily pastebin goal
22%
SHARE
TWEET

Apple Valid Checker [BASH]

zerobyte-id May 23rd, 2018 (edited) 386 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Apple Email Valid Checker
  3. # Coded by Suhada
  4. # ZeroByte.ID
  5. # Thanks to : Slackerc0de Family Present
  6.  
  7. ####### COLOR #######
  8. HIJAU='\033[0;32m'
  9. MERAH='\033[0;31m'
  10. NORMAL='\033[0m'
  11. CYAN='\033[0;36m'
  12. BIRU='\033[0;34m'
  13. PUTIH='\033[1;37m'
  14. ####### START #######
  15. CheckingValid(){
  16.     cekvalid=$(curl 'https://appleid.apple.com/account/validation/appleid' -H 'scnt: '$getscnt'' -H 'Origin: https://appleid.apple.com' -H 'Accept-Encoding: gzip, deflate, br' -H 'X-Apple-I-FD-Client-Info: {"U":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36","L":"en-US","Z":"GMT+08:00","V":"1.1","F":"sWa44j1e3NlY5BSo9z4ofjb75PaK4Vpjt3Q9cUVlOrXTAxw63UYOKES5jfzmkflJfmczl998tp7ppfAaZ6m1CdC5MQjGejuTDRNziCvTDfWk3qwyWEQEe6qgXK_Pmtd0SHp815LyjaY2.rINj.rINYOK0UjVsYUMnGWFfwMHDCQyG5me6sBLSsbXzU0l6sqKIrGfuzwg9wK9weEwHXXTSHCSPmtd0wVYPIG_qvoPfybYb5EvYTrYesR0CjEcIqnuWxf7_OLgiPFMtrs1OeyjaY2_GGEQIgwe98vDdYejftckuyPBDjaY2ftckZZLQ084akJlJWu_uWA16fUfR0odm_dhrxbuJjkWxv5iJ6KVg8cGYiKY.6elV2pN9csgdmX3ivm_Ud_UeAwHCSFQ_0pNvS_MNJZNlY5DuV25BNnOVgw24uy.CfT"}' -H 'Accept-Language: en-US,en;q=0.9,id;q=0.8,fr;q=0.7,la;q=0.6' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: idclient=web; dslang=US-EN; site=USA; aidsp='$getsession'; ccl=OXqm9r6b+jMZIrOKHBgGZQ==; geo=ID' -H 'Connection: keep-alive' -H 'X-Apple-Api-Key: '$keyapi'' -H 'X-Apple-ID-Session-Id: '$getsession'' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36' -H 'Content-Type: application/json' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: https://appleid.apple.com/account' -H 'X-Apple-Request-Context: create' --data-binary '{"emailAddress":"'$1'"}' --compressed -D - -s);
  17.     #sleep 2s
  18.     valid=$(echo $cekvalid | grep -Po '(?<="used" : )[^,]*')
  19.     icloudvalid=$(echo $cekvalid | grep -Po '(?="appleOwnedDomain" : )[^,]*')
  20.     if [[ $valid =~ 'true' ]]; then
  21.         printf "[+ ZeroByte.ID +] ${BIRU} $1 ${CYAN}[$waktu]";
  22.         echo ""
  23.         echo $1 >> Result_Valid_Apple.tmp
  24.         printf "${NORMAL}"
  25.     elif [[ $icloudvalid =~ 'true' ]]; then
  26.         printf "[+ ZeroByte.ID +] ${BIRU} $1 ${CYAN}[$waktu]";
  27.         echo ""
  28.         echo $1 >> Result_Valid_Apple.tmp
  29.         printf "${NORMAL}"
  30.     else
  31.         printf "[+ ZeroByte.ID +] ${MERAH} $1 ${CYAN}[$waktu]";
  32.         echo ""
  33.         printf "${NORMAL}"
  34.     fi
  35.     wait
  36. }
  37. Session() {
  38.     random=$(shuf -i 1-256 -n 1)
  39.     random_1=$(shuf -i 1-256 -n 1)
  40.     getses=$(curl -m 5 'https://appleid.apple.com/account' --header "X-Forwarded-For: 142.${random}.11.${random_1}" -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9,id;q=0.8,fr;q=0.7,la;q=0.6' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML,  like Gecko) Version/5.1.7 Safari/534.57.2' --compressed -D - -s -o /dev/null >> s_cookie.tmp);
  41.     getscnt=$(cat s_cookie.tmp | grep "scnt: " | cut -c7-);
  42.     getsession=$(cat s_cookie.tmp | grep 'aidsp' | grep -Po '(?<=Set-Cookie: aidsp=)[^;]*');
  43.     keyapi='cbf64fd6843ee630b463f358ea0b707b';
  44.     cekres=$(cat s_cookie.tmp);
  45.     if [ -z "$cekres" ]; then
  46.         echo "IP BLOCKED";
  47.     else
  48.         CheckingValid $1
  49.         rm s_cookie.tmp
  50.     fi
  51. }
  52.  
  53. for email in $(cat $1); do
  54.     waktu=$(date '+%Y-%m-%d %H:%M:%S')
  55.     echo "[CHECKING] $email";
  56.     Session $email
  57. done
  58. echo "[FILTERING] . . . . .";
  59. sort Result_Valid_Apple.tmp | uniq -u >> Result_Valid_Apple.txt
  60. totalemail=$(cat Result_Valid_Apple.txt | wc -l);
  61. printf "[TOTAL EMAIL ${PUTIH}$totalemail]";
  62. printf "${NORMAL}";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top