widhisec

shorturl.sh

Jun 21st, 2021
683
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # jangan recode gan hargai pembuatnya pusing w buat nya
  3. # capek tau buatnya !! udah open source ga mau belajar ..zzz
  4. agent=$(python3 -c "
  5. from fake_useragent import UserAgent
  6. ua = UserAgent()
  7. a = ua.random
  8. user_agent = ua.random
  9. print(user_agent)")
  10. #agent2=$(cat ua.txt | sort -R | head -1)
  11. GREEN=$(tput setaf 2) #HIJAU
  12. WHITE=$(tput setaf 7) #PUTIH
  13. CYAN=$(tput setaf 6)
  14. RED=$(tput setaf 1) #MERAH
  15. NORMAL=$(tput sgr0)
  16. gr="\e[42m"
  17. if [[ -z $(command -v curl && command -v grep && command -v gawk && command -v tail && command -v tput && command -v python) ]]; then
  18.     echo -e "[sepertinya belom di install]"
  19.     apt install python
  20.     pip3 install fake_useragent
  21. fi
  22. function ProgressBar {
  23. # Process data
  24.     let _progress=(${1}*100/${2}*100)/100
  25.     let _done=(${_progress}*4)/10
  26.     let _left=40-$_done
  27.  
  28.     _fill=$(printf "%${_done}s")
  29.     _empty=$(printf "%${_left}s")
  30.  
  31. printf "\rProgress : [${_fill// /\#}${_empty// /-}] ${_progress}%%"
  32.  
  33. }
  34.  
  35. # Variables
  36. _start=1
  37.  
  38. _end=100
  39.  
  40. function pisah(){
  41.          azw=$(curl -sL "$LINK" | grep -Po '<a href="\K.*?(?=".*)' | grep "/visit/")
  42.          ajg=$(echo -e "https://zanbooredana.com/visit$azw")
  43. }
  44. function baner(){
  45. echo -e "
  46. ${CYAN}┌┐ ┬ ┬┌─┐┌─┐┌─┐┌─┐
  47. ├┴┐└┬┘├─┘├─┤└─┐└─┐
  48. ${RED}└─┘ ┴ ┴  ┴ ┴└─┘└─┘ cod3t: by widhisec
  49. ---------------------------
  50. "  
  51. }
  52. baner
  53. function short(){
  54. pisah
  55. hm=$(curl --location --silent "$LINK" | grep -Eo "(http|https)://[a-zA-Z0-9./?]*?")
  56. cok1=$(curl --silent -I "$hm" -A "$agent" --location | gawk "/set-cookie:/{print $2}" | head -1 | gawk '{ print $2 }' | cut -d "=" -f2)
  57. cok2=$(curl --silent -I "$hm" -A "$agent" --location | gawk "/set-cookie:/{print $2}" | tail -1 | gawk '{ print $2 }' | cut -d "=" -f2)
  58. g3t=$(curl --silent "$ajg" -A "$agent" --compressed \
  59. -H "upgrade-insecure-requests: 1" \
  60. -H "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3" \
  61. -H "cookie: __cfduid=$cok1 PHPSESSID=$cok2" | grep -Eo "(http|https)://[a-zA-Z0-9./?]*?")
  62. echo -e "${GREEN}TERBYPASS -> ${NORMAL}$g3t"
  63. }
  64. read -p "${CYAN}URL ${WHITE}HERE :" LINK
  65. #read -p "${CYAN}SOCKS5 :" socks5
  66. for number in $(seq ${_start} ${_end})
  67. do
  68.     ProgressBar ${number} ${_end}
  69. done
  70. printf '\nFinished!\n'
  71. #if [[ -z $1 ]]; then
  72. #   echo "[!! errorr"
  73. #   exit
  74. #fi
  75. short "$LINK" "$azw"
  76. #done
RAW Paste Data