florienzh4x

Shell Checker

Dec 24th, 2017
1,278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.72 KB | None | 0 0
  1. #!/bin/bash
  2. clear
  3. # Coded By Monkey B Luffy
  4. # BerdendangC0de
  5. # Thanks to CCOCOT
  6.  
  7. cyan='\e[36m'
  8. GR='\e[34m'
  9. OG='\e[92m'
  10. WH='\e[37m'
  11. RD='\e[31m'
  12. YL='\e[33m'
  13. BF='\e[34m'
  14. DF='\e[39m'
  15. OR='\e[33m'
  16. PP='\e[35m'
  17. B='\e[1m'
  18. CC='\e[0m'
  19.  
  20. header(){
  21. cat << "EOF"
  22.          ____   ____ ___  ____  _____   _   _ _____ _____
  23.         | __ ) / ___/ _ \|  _ \| ____| | \ | | ____|_   _|
  24.         |  _ \| |  | | | | | | |  _|   |  \| |  _|   | |  
  25.         | |_) | |__| |_| | |_| | |___ _| |\  | |___  | |  
  26.         |____/ \____\___/|____/|_____(_)_| \_|_____| |_|  
  27.  
  28.             Webshell Checker
  29.             Monkey B Luffy | rai.kazuto@yandex.com
  30.             Thank For CCOCOT
  31.  
  32. EOF
  33. }
  34.  
  35. cekshell(){
  36.     local webnya="${1}"
  37.     local shell="${2}"
  38.     local title="${3}"
  39.     local shellnya="${webnya}/${shell}"
  40.     local ngecek=$(curl -s ${shellnya} -L)
  41.     if [[ $ngecek =~ "${title}" ]]; then
  42.         printf "${WH}[+] ${YL}[ ${shellnya} ] ${WH}>> ${CC}FOUND \n"
  43.         echo "${shellnya}" >> found.txt
  44.     else
  45.         printf "${RD}[-]${YL} [ ${shellnya} ] ${WH}>> ${RD} NOT FOUND \n"
  46.         echo "${shellnya} -> NOT FOUND" >> error.txt
  47.     fi
  48. }
  49.  
  50. if [ -z $3 ]; then
  51.     header
  52.     printf "\n To Use $0 <file.txt> <filename> <content of shell>\n"
  53.     exit 1
  54. fi
  55.  
  56. header
  57. name=$2
  58. itunya=$3
  59.  
  60.  
  61.  
  62. # OPTIONAL
  63. persend=20 # jangan kecepetan
  64. setleep=5
  65.  
  66. itung=1
  67.  
  68. IFS=$'\r\n' GLOBIGNORE='*' command eval 'web=($(cat $1))'
  69. for (( i = 0; i < "${#web[@]}"; i++ )); do
  70.  
  71.     set_kirik=$(expr $itung % $persend)
  72.     if [[ $set_kirik == 0 && $itung > 0 ]]; then
  73.         sleep $setleep
  74.     fi
  75.  
  76.     web="${web[$i]}"
  77.     cekshell ${web} ${name} ${itunya} &
  78.     itung=$[$itung+1]
  79.  
  80. done
  81. wait
  82. error=$(wc -l error.txt)
  83. found=$(wc -l found.txt)
  84.     printf "\n\n${CC}FOUND = ${found} ${YL}shell ${wh}| ${cyan} NOT FOUND = ${error}"
  85.     printf "\n\n"
Advertisement
Add Comment
Please, Sign In to add comment