Skip to content

Instantly share code, notes, and snippets.

@evernick
Created June 17, 2015 05:35
Show Gist options
  • Save evernick/8cc8142b38457b8aac9f to your computer and use it in GitHub Desktop.
Save evernick/8cc8142b38457b8aac9f to your computer and use it in GitHub Desktop.
from itertools import product
chars = '0123456789QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm' # Chars Dictionary
for length in range(1, 5): # length 1 to 4
to_attempt = product(chars, repeat=length)
for attempt in to_attempt:
brute = ''.join(attempt)
print brute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment