widhisec

che.sh

Jun 21st, 2021
664
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # -(c) zsecc0de-crew.id ~ widhisec
  3. # https://github.com/widhisec
  4. clear;
  5. LIMITATOR=20
  6. CYAN=$(tput setaf 6)
  7. RED=$(tput setaf 1)
  8. NORMAL=$(tput sgr0)
  9. GREEN=$(tput setaf 2)
  10. if [[ -z $(command -v curl) ]]; then
  11.     printf "not installed curl \n"
  12. #
  13. elif [[ -z $(command -v grep) ]]; then
  14.     printf "not installed grep \n"
  15. fi
  16. function Get_R(){
  17.               scann="curl -s https://check.dichvusocks.us/func.php?socks=$x&checkpp=&proxystop=no"
  18.               greb=$($scann | grep -oP '>(.*?)<' | tr -d "<>")
  19.               if [[ "${greb}" =~ "LIVE" ]]; then
  20.                  printf "[LIVE] -> $x \n" >> live.txt
  21.                  printf "[${GREEN}LIVE${NORMAL}] -> ${NORMAL}$x \n"
  22.               else
  23.                  printf "[DIEE] -> $x \n" >> die.txt
  24.                  printf "[${RED}DIEE${NORMAL}] -> ${NORMAL}$x \n"
  25.                  exit 1
  26.               fi
  27. }
  28. function get(){
  29. echo -e "
  30.     ${CYAN} _
  31.  ___| |__  _ __  _ __ _____  ___   _
  32. / __| '_ \| '_ \| '__/ _ \ \/ / | | |
  33. | (__| | | | |_) | | | (_) >  <| |_| |
  34. \___|_| |_| .__/|_|  \___/_/\_\\__,  |
  35.           |_|                  |___/
  36. ${GREEN}--------------------------------------
  37. "
  38. echo -en "${NORMAL}[?]list here :"; read lis
  39. #echo -n "PROXY :"; read pro
  40. #Get_R $pro
  41. if [[ ! -f $lis ]]; then
  42.     printf "[!]list not found \n"
  43.     exit
  44. fi
  45. (
  46. for x in $(cat $lis); do
  47.     ((thread=thread%LIMITATOR)); ((thread++==0)) && wait
  48.     Get_R "$x" &
  49. done
  50. wait
  51. )
  52. }
  53. get
RAW Paste Data