Crunch – Create your own wordlist

· β˜• 2 min read · ✍️ TheNytFury
  • #Terminal
  • #Tools
  • Crunch is a wordlist generator useful for password cracking. Sometimes, you don’t want to use large precomputed wordlists and instead you may want to create your own. Crunch is your solution! It is a small but powerful command line tool allowing you to specify the criteria for the wordlists and generate it for you.

    The most common and useful features include minimum maximum length, pattern specification and resume capability [very handy when the input is large].

    Create and save your wordlist to a file using the -o option. You can specify special patterns using -t option followed by any of these:

    % [percent] for numbers
    ^ [caret] for 33 symbols: ! @ # $ % ^ & * ( ) – _ + = ~ ` [ ] { } | \ : ; ” β€˜ < > , . ? / [space]
    @ [at] for lower case letters
    , [comma] for Upper case letters

    If you wish to include any of these characters (% ^ @ ,) in your wordlist, you can do so by using the literal -l option [lowercase for L] along with -t option. Here are some examples:

    • Wordlist with 8 characters, using ‘abcdefgh’
      crunch 7 8 abcdefgh -o eight_char.txt
      In this example, crunch will generate a wordlist of 7 min characters, 8 maximum characters from these characters β€˜abcdefgh’.

    • Wordlist with specific characters at specific positions
      crunch 8 8 -t a%b^[email protected], -o special.txt
      In this example, the characters a,b,c,d are fixed in those positions and will not change. Hence the output file will contain a1b!cadA upto a0b[space]czdZ

    • Wordlist with special characters
      crunch 8 8 -t abcd,%@^ -l zzzz,[email protected] -o literals.txt
      In the third example, special characters , and @ will not be replaced with uppercase and lowercase letters, instead they’ll be treated as a literal character. Note that the length of -t and -l option should match and hence should be padded with some character (z in this case).

    • Wordlist with permutations
crunch 1 1 -o possibilities.txt -p In Any Order
      In the last example, different permutation of the words In, Any, Order will be output to the file. In this case, output will contain 6 lines. Here, we specify the min and max length as 1 as they are mandatory options for crunch.

    The tool comes in built on Kali Linux. Although, on Windows, you cannot run crunch through command prompt, you can set it up by downloading the files SourceForge and installing them on a linux shell.

    Share this post