Advertisement
jaenudinmaulana69

val

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