Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Usage : bash file.sh domain.tld
- #Cari subdomain+ip aktiv (sub.domain.tld 12.345.678.9)
- if [ -z "$1" ]; then
- echo ""
- echo "[*] Please enter a valid URL"
- echo ""
- exit 0
- fi
- echo ""
- echo "[*] The following addresses were found"
- echo ""
- for server in $(host -t ns $1|cut -d" " -f4);do
- host -l $1 $server |grep "has address" | cut -d " " -f1,4;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement