Advertisement
ccocot

reverseip2.sh

Dec 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.99 KB | None | 0 0
  1. cat << "EOF"
  2.              ____   ____ ___  ____  _____   _   _ _____ _____
  3.             | __ ) / ___/ _ \|  _ \| ____| | \ | | ____|_   _|
  4.             |  _ \| |  | | | | | | |  _|   |  \| |  _|   | |  
  5.             | |_) | |__| |_| | |_| | |___ _| |\  | |___  | |  
  6.             |____/ \____\___/|____/|_____(_)_| \_|_____| |_|  
  7.  
  8.                 Reverseip (http://viewdns.info/api/)
  9.                 CODE By CCOCOT
  10.                 Thank For Zombie-root
  11. EOF
  12.  
  13. if [ -z $1 ]; then
  14.     printf "\n To Use $0 <file.txt>"
  15.     exit 1
  16. fi
  17.  
  18. get_target(){
  19.  
  20.     gocurl=$(curl -s "http://viewdns.info/reverseip/?host=${1}&t=1" | grep -Po "(?<=<td>)[^<]*")
  21.     for URL in $gocurl; do
  22.         printf "[+] ${URL}\n"
  23.         echo ${URL} >> web.txt
  24.     done
  25. }
  26.  
  27. persend=50
  28. setleep=5
  29.  
  30. itung=0
  31.  
  32. IFS=$'\r\n' GLOBIGNORE='*' command eval 'web=($(cat $1))'
  33. for (( i = 0; i < ${#web[@]}; i++ )); do
  34.  
  35.     set_kirik=$(expr $itung % $persend)
  36.     if [[ $set_kirik == 0 && $itung > 0 ]]; then
  37.         sleep $setleep
  38.     fi
  39.  
  40.     printf "\nTry ${web[$i]} ... \n"
  41.     get_target ${web[$i]} &
  42.     itung=$[itung+1]
  43.  
  44. done
  45. wait
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement