Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. list=(host1.nl host2.nl host3.nl.......... etc )
  2. read -p "Enter domainname you want to check: " domain
  3. read -p "Enter your rootnet username and press [ENTER]: " username
  4. read -s -p "Password: " password
  5. echo
  6.  
  7. for i in "${list[@]}"
  8. do
  9. curl -s --request GET --user "$username:$password" "https://$i:2222/CMD_API_DNS_ADMIN?domain=$domain&action=exists" | grep "%31" > /dev/null
  10. if [ $? = 0 ]; then
  11. echo "HIT: https://$i:2222"
  12. exit 0
  13. fi
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement