Advertisement
AZZATSSINS_CYBERSERK

DNS Zone

Dec 23rd, 2019
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/bash
  2. #Usage : bash file.sh domain.tld
  3. #Cari subdomain+ip aktiv (sub.domain.tld 12.345.678.9)
  4.  
  5. if [ -z "$1" ]; then
  6.     echo ""
  7.     echo "[*] Please enter a valid URL"
  8.     echo ""
  9.     exit 0
  10. fi
  11.  
  12. echo ""
  13. echo "[*] The following addresses were found"
  14. echo ""
  15.  
  16. for server in $(host -t ns $1|cut -d" " -f4);do
  17.     host -l $1  $server |grep "has address" | cut -d " " -f1,4;
  18.  
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement