Advertisement
ccocot

reverseip.sh

Dec 12th, 2017
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. cat << "EOF"
  2.              ____   ____ ___  ____  _____   _   _ _____ _____
  3.             | __ ) / ___/ _ \|  _ \| ____| | \ | | ____|_   _|
  4.             |  _ \| |  | | | | | | |  _|   |  \| |  _|   | |  
  5.             | |_) | |__| |_| | |_| | |___ _| |\  | |___  | |  
  6.             |____/ \____\___/|____/|_____(_)_| \_|_____| |_|  
  7.  
  8.                 Reverseip
  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://www.ipfingerprints.com/scripts/getReverseIP.php" -d "remoteHost=${1}" | grep -Po "(?<=\">)[^<]*")
  21.     IFS=' ' read -r -a target <<< $gocurl
  22.     for i in "${!target[@]}"; do
  23.         printf "[+] ${target[$i]}\n"
  24.         echo ${target[$i]} >> web.txt
  25.     done
  26. }
  27.  
  28. persend=20
  29. setleep=5
  30.  
  31. itung=0
  32.  
  33. IFS=$'\r\n' GLOBIGNORE='*' command eval 'web=($(cat $1))'
  34. for (( i = 0; i < ${#web[@]}; i++ )); do
  35.  
  36.     set_kirik=$(expr $itung % $persend)
  37.     if [[ $set_kirik == 0 && $itung > 0 ]]; then
  38.         sleep $setleep
  39.     fi
  40.  
  41.     printf "\nTry ${web[$i]} ... \n"
  42.     get_target ${web[$i]} &
  43.     itung=$[itung+1]
  44.  
  45. done
  46. wait
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement