zerobyte-id

[BASH] Webshell MassChecker

Mar 20th, 2019
917
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Memeriksa Shell Yang masih Hidup
  3. # @Author : ZeroByte.iD
  4. # @Github : https://github.com/zerobyte-id
  5. for s in $(cat $1);
  6. do
  7.     namafile=$(echo "${s}" | rev | cut -d '/' -f 1 | rev)
  8.     ceK=$(curl -s -m 3 -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" "${s}" | tr -d '\0')
  9.     if [[ $ceK =~ $( echo "${s}" | rev | cut -d '/' -f 1 | rev) ]]; then
  10.         cekcode=$(curl -s -m 3 -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0" "${s}" -w %{http_code} -o /dev/null)
  11.         if [[ $cekcode =~ '200' ]]; then
  12.             echo "SHELL LIVE & PATEN => ${s}"
  13.             # echo "${s}" >> live-shell.txt
  14.         else
  15.             echo "SHELL TIDAK LIVE => ${s}"
  16.         fi
  17.     else
  18.         echo "SHELL TIDAK LIVE => ${s}"
  19.     fi
  20. done
RAW Paste Data