Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list=(host1.nl host2.nl host3.nl.......... etc )
- read -p "Enter domainname you want to check: " domain
- read -p "Enter your rootnet username and press [ENTER]: " username
- read -s -p "Password: " password
- echo
- for i in "${list[@]}"
- do
- curl -s --request GET --user "$username:$password" "https://$i:2222/CMD_API_DNS_ADMIN?domain=$domain&action=exists" | grep "%31" > /dev/null
- if [ $? = 0 ]; then
- echo "HIT: https://$i:2222"
- exit 0
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement