Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- # Coded By Monkey B Luffy
- # BerdendangC0de
- # Thanks to CCOCOT
- cyan='\e[36m'
- GR='\e[34m'
- OG='\e[92m'
- WH='\e[37m'
- RD='\e[31m'
- YL='\e[33m'
- BF='\e[34m'
- DF='\e[39m'
- OR='\e[33m'
- PP='\e[35m'
- B='\e[1m'
- CC='\e[0m'
- header(){
- cat << "EOF"
- ____ ____ ___ ____ _____ _ _ _____ _____
- | __ ) / ___/ _ \| _ \| ____| | \ | | ____|_ _|
- | _ \| | | | | | | | | _| | \| | _| | |
- | |_) | |__| |_| | |_| | |___ _| |\ | |___ | |
- |____/ \____\___/|____/|_____(_)_| \_|_____| |_|
- Webshell Checker
- Monkey B Luffy | rai.kazuto@yandex.com
- Thank For CCOCOT
- EOF
- }
- cekshell(){
- local webnya="${1}"
- local shell="${2}"
- local title="${3}"
- local shellnya="${webnya}/${shell}"
- local ngecek=$(curl -s ${shellnya} -L)
- if [[ $ngecek =~ "${title}" ]]; then
- printf "${WH}[+] ${YL}[ ${shellnya} ] ${WH}>> ${CC}FOUND \n"
- echo "${shellnya}" >> found.txt
- else
- printf "${RD}[-]${YL} [ ${shellnya} ] ${WH}>> ${RD} NOT FOUND \n"
- echo "${shellnya} -> NOT FOUND" >> error.txt
- fi
- }
- if [ -z $3 ]; then
- header
- printf "\n To Use $0 <file.txt> <filename> <content of shell>\n"
- exit 1
- fi
- header
- name=$2
- itunya=$3
- # OPTIONAL
- persend=20 # jangan kecepetan
- setleep=5
- itung=1
- IFS=$'\r\n' GLOBIGNORE='*' command eval 'web=($(cat $1))'
- for (( i = 0; i < "${#web[@]}"; i++ )); do
- set_kirik=$(expr $itung % $persend)
- if [[ $set_kirik == 0 && $itung > 0 ]]; then
- sleep $setleep
- fi
- web="${web[$i]}"
- cekshell ${web} ${name} ${itunya} &
- itung=$[$itung+1]
- done
- wait
- error=$(wc -l error.txt)
- found=$(wc -l found.txt)
- printf "\n\n${CC}FOUND = ${found} ${YL}shell ${wh}| ${cyan} NOT FOUND = ${error}"
- printf "\n\n"
Advertisement
Add Comment
Please, Sign In to add comment