jaenudinmaulana69

cc

Dec 16th, 2017
1,018
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. header(){
  4. CY='\e[36m'
  5. GR='\e[34m'
  6. OG='\e[92m'
  7. WH='\e[37m'
  8. RD='\e[31m'
  9. YL='\e[33m'
  10. BF='\e[34m'
  11. DF='\e[39m'
  12. OR='\e[33m'
  13. PP='\e[35m'
  14. B='\e[1m'
  15. CC='\e[0m'
  16. printf "\n"
  17. cat << "EOF"
  18.            /$$ /$$       /$$$$$$$$        /$$$$$$            /$$ /$$   /$$  /$$$$$$  /$$   /$$
  19.           /$$/| $$      | $$_____/       /$$__  $$          | $$| $$  | $$ /$$$_  $$| $$  | $$
  20.          /$$/ | $$      | $$            | $$  \__/  /$$$$$$ | $$| $$  | $$| $$$$\ $$| $$  | $$
  21.         /$$/  | $$      | $$$$$         | $$ /$$$$ |____  $$| $$| $$$$$$$$| $$ $$ $$| $$$$$$$$
  22.        /$$/   | $$      | $$__/         | $$|_  $$  /$$$$$$$| $$|_____  $$| $$\ $$$$|_____  $$
  23.       /$$/    | $$      | $$            | $$  \ $$ /$$__  $$| $$      | $$| $$ \ $$$      | $$
  24.  /$$ /$$/     | $$$$$$$$| $$$$$$$$      |  $$$$$$/|  $$$$$$$| $$      | $$|  $$$$$$/      | $$
  25. |__/|__/      |________/|________/       \______/  \_______/|__/      |__/ \______/       |__/
  26. EOF
  27. printf "\n"
  28. }
  29.  
  30. UA=$(cat ua.txt | sort -R  | head -1)
  31.  
  32. ngecek_email(){
  33.     ngecek_apple(){ # CHECK VALID
  34.     local jsessionid=$(curl -s --head https://ams.apple.com/pages/SignUp.jsf | grep -Po "(?<=Set-Cookie: JSESSIONID=)[^;]*")
  35.     local used=$(curl -s -D - "https://ams.apple.com/pages/SignUp.jsf;jsessionid=$JSESSIONID" \
  36.     -H "Cookie: JSESSIONID=$jsessionid;" \
  37.     -H "User-Agent: $5" \
  38.     -d "SignUpForm=SignUpForm&SignUpForm%3AemailField=$1&SignUpForm%3AblueCenter=Continue&javax.faces.ViewState=j_id1")
  39.     if [[ $used =~ "200 OK" ]]; then
  40.         if [[ $used =~ "This email address is already registered as an Apple ID, please sign in." ]]; then
  41.             local Apple="LIVE"
  42.             echo "$1" >> "$2"
  43.         else
  44.             local Apple="DIE"
  45.             echo "$1" >> "$3"
  46.         fi
  47.     else
  48.         local Apple="UNKNOWN"
  49.         echo "$1" >> "$4"
  50.     fi
  51.     printf "${Apple}"
  52.     }
  53. local hasil="\e[34m$(ngecek_apple ${1} ${2} ${3} ${4} ${8}) ${1} "
  54.     printf "${hasil}\n"
  55. }
  56.  
  57. # CHECK SPECIAL VAR FOR MAILIST
  58. if [[ -z $1 ]]; then
  59.     header
  60.     printf "To Use $0 <mailist.txt> \n"
  61.     exit 1
  62. fi
  63.  
  64. # CALL HEADER
  65. header
  66.  
  67. # CHECK OUTPUT FOLDER
  68. Output='result' # Change Output Folder
  69. if [[ ! -d $Output ]]; then
  70.     printf "${RD}[?]${DF} ${B}No output Folder${CC}\n"
  71.     printf "${BF}[+]${DF} ${B}Create Output Folder${CC}\n"
  72.     mkdir $Output
  73.     if [[ -d $Output ]]; then
  74.         printf "${OG}[+]${DF} ${B}Output Folder Created${CC}\n\n"
  75.     else
  76.         printf "${RD}[-]${DF} ${B}Output Folder Failed To Created${CC}\n"
  77.     fi
  78. else
  79.     printf "${OG}[+]${DF} ${B}Output Folder Found${CC}\n"
  80.     printf "${OG}[+]${DF} ${B}Use Output Folder${CC}\n\n"
  81. fi
  82.  
  83. # CHECK OUTPUT FOLDER APPLE
  84. printf "[+] Create Apple Output Folder\n"
  85. Apple_dir=$Output'/Apple'
  86. if [[ ! -d $Apple_dir ]]; then
  87.     printf "${RD}[?]${DF} ${B}No output Folder${CC}\n"
  88.     printf "${BF}[+]${DF} ${B}Create Output Folder${CC}\n"
  89.     mkdir $Apple_dir
  90.     if [[ -d $Apple_dir ]]; then
  91.         printf "${OG}[+]${DF} ${B}Output Folder Created${CC}\n\n"
  92.     else
  93.         printf "${RD}[-]${DF} ${B}Output Folder Failed To Created${CC}\n"
  94.     fi
  95. else
  96.     printf "${OG}[+]${DF} ${B}Output Folder Found${CC}\n"
  97.     printf "${OG}[+]${DF} ${B}Use Output Folder${CC}\n\n"
  98. fi
  99.  
  100. # TOUCH OUTPUT FILE APPLE
  101. VALID_APPLE="${Apple_dir}/valid.txt"
  102. INVALID_APPLE="${Apple_dir}/invalid.txt"
  103. UNKNOWN_APPLE="${Apple_dir}/unknown.txt"
  104. touch $VALID_APPLE
  105. printf "$OG[+]${DF}${B} $VALID_APPLE Created${CC}\n"
  106. touch $INVALID_APPLE
  107. printf "$OG[+]${DF}${B} $INVALID_APPLE Created${CC}\n"
  108. touch $UNKNOWN_APPLE
  109. printf "$OG[+]${DF}${B} $UNKNOWN_APPLE Created${CC}\n\n"
  110.  
  111.  
  112. # CHECK LINES IN MAILIST
  113. lines=$(wc -l $1 | cut -f1 -d' ')
  114. printf "${OG}[+]${DF}${B} Found ${lines} mailist in ${1}${CC}\n\n"
  115.  
  116. # OPTIONAL
  117. persend=3 #Email Send PerSleep
  118. setleep=1 #Delay Send PerSend
  119.  
  120. # MAIN
  121. IFS=$'\r\n' GLOBIGNORE='*' command eval 'mailist=($(cat $1))'
  122. itung=1
  123. STARTTIME=$(date +%s)
  124. for (( i = 0; i < "${#mailist[@]}"; i++ )); do
  125.     username="${mailist[$i]}"
  126.     set_kirik=$(expr $itung % $persend)
  127.         if [[ $set_kirik == 0 && $itung > 0 ]]; then
  128.                 sleep $setleep
  129.         fi
  130.         ngecek_email $username $VALID_APPLE $INVALID_APPLE $UNKNOWN_APPLE $UA &
  131.         grep -v -- "$username" $1 > temp && mv temp $1
  132.         itung=$[$itung+1]
  133. done
  134. wait
  135. ENDTIME=$(date +%s)
  136.  
  137. # RESULT
  138. printf "\n${PP}It takes $[$ENDTIME - $STARTTIME] seconds To Check ${lines} ${CC}\n"
  139.  
  140. #READ LINES OUTPUT
  141. T_VALID=$(wc -l $VALID | cut -f1 -d' ')
  142. T_INVALID=$(wc -l $INVALID | cut -f1 -d' ')
  143. T_UNKNOWN=$(wc -l $UNKNOWN | cut -f1 -d' ')
  144.  
  145. printf "LIVES : $T_VALID | DIE : $T_INVALID | UNKNOWN : $T_UNKNOWN\n$CC"
  146. printf "${B}${BF}./LE Gal404 Apple Valid${CC}\n\n"
Advertisement
Add Comment
Please, Sign In to add comment