Skip to content

Crunch

100 commands

Generates wordlists from character sets and patterns — every combination of a given length, or a precise mask.

  • wordlists
  • generation

Install Crunch

sudo apt install crunch

Basic Wordlist Generation6

crunch 1 1

Generates a list of single characters using the default lowercase alphabet.

crunch 4 4

Generates all possible 4-character strings using default lowercase letters.

crunch 1 3

Generates words ranging from length 1 to length 3 using default settings.

crunch 6 6 0123456789

Generates all 6-digit numeric combinations.

crunch 4 4 abcde

Generates 4-character combinations using only the letters a, b, c, d, and e.

crunch 8 8 0123456789ABCDEF

Generates 8-character hex strings using uppercase hex characters.

Character Set Handling6

crunch 4 4 -f /usr/share/crunch/charset.lst numeric

Uses the 'numeric' profile from the standard charset.lst file.

crunch 6 6 -f /usr/share/crunch/charset.lst ualpha

Generates 6-character uppercase words using the charset file.

crunch 5 5 -f /usr/share/crunch/charset.lst mixalpha

Generates 5-character mixed-case alphabetic strings.

crunch 8 8 -f /usr/share/crunch/charset.lst ualpha-numeric

Generates 8-character alphanumeric strings using uppercase letters and numbers.

Link
crunch 1 1 -f /usr/share/crunch/charset.lst symbols14

Generates single characters from the symbols14 charset profile.

Link
crunch 4 4 + + 123 +

Uses placeholders (+) for default charsets while specifying a custom numeric set.

Link

Pattern Based Generation8

crunch 4 4 -t @@@@

Explicitly uses the @ pattern to generate 4-character lowercase words.

Link
crunch 4 4 -t ,,,,

Uses the comma pattern to generate 4-character uppercase words.

Link
crunch 4 4 -t %%%%

Uses the percent pattern to generate 4-digit numbers.

Link
crunch 4 4 -t ^^^^

Uses the caret pattern to generate 4-character symbol strings.

Link
crunch 6 6 -t pass%%

Generates 6-character words starting with 'pass' followed by 2 numbers.

Link
crunch 8 8 -t Admin1@@

Generates 8-character words starting with 'Admin1' followed by 2 lowercase letters.

Link
crunch 7 7 -t ,@^%@^%

Generates a complex 7-char pattern mixing upper, lower, symbol, number, lower, symbol, number.

Link
crunch 10 10 -t 919%%%%%%%

Generates 10-digit phone numbers starting with the area code 919.

Link

Permutation Generation2

crunch 1 1 -p abc

Generates all permutations of the characters 'a', 'b', and 'c'.

Link
crunch 1 1 -p dog cat bird

Generates all permutations of the words 'dog', 'cat', and 'bird'.

Link

Output File Control2

crunch 4 4 -o wordlist.txt

Saves the generated 4-character wordlist to a file named wordlist.txt.

Link
crunch 4 4 -u

Suppresses the printout of the estimated file size and line count.

Link

Start and End Blocks3

crunch 4 4 -s bbba

Starts generation at the string 'bbba' instead of 'aaaa'.

Link
crunch 4 4 -e aazz

Stops generation immediately after the string 'aazz' is created.

Link
crunch 4 4 -s aaaa -e aazz

Generates a subset of the 4-character space from 'aaaa' to 'aazz'.

Link

Handling Duplicates3

crunch 8 8 -d 2@

Limits the output to prevent more than 2 consecutive lowercase characters.

Link
crunch 6 6 -d 1%

Ensures no two consecutive numbers are identical in the output.

Link
crunch 5 5 -d 2@ -t @@@@@

Generates 5-letter words with a pattern but restricts consecutive identical letters to 2.

Link

File Splitting3

crunch 6 6 -o START -b 20mb

Splits output into multiple files, each maximum 20 megabytes.

Link
crunch 6 6 -o START -c 1000

Splits output into multiple files, each containing exactly 1000 lines.

Link
crunch 10 10 -o part -b 2gb

Generates 10-char words split into 2GB chunks for handling massive lists.

Link

Compression4

crunch 4 4 -o list.txt.gz -z gzip

Compresses the output on-the-fly using gzip.

Link
crunch 4 4 -o list.txt.bz2 -z bzip2

Compresses the output on-the-fly using bzip2 algorithm.

Link
crunch 4 4 -o list.txt.lzma -z lzma

Compresses the output using LZMA for high compression ratios.

Link
crunch 4 4 -o list.7z -z 7z

Compresses the output using the 7z archive format.

Link

Literal Handling3

crunch 5 5 -t @@@%% -l @@@@@

Treats the @ symbols in the pattern as literal '@' characters, not wildcards.

Link
crunch 4 4 -t %%,^ -l aaaa

Forces the pattern characters to be treated as literals using a placeholder string.

Link
crunch 3 3 -t %%% -l @%^

Allows generating strings containing actual pattern characters by escaping them.

Link

Advanced Patterns1

crunch 5 5 -t ddd@@ -p dog cat bird

Treats 'ddd' as a permutation block and '@@' as standard wildcards.

Link

Inversion1

crunch 4 4 -i

Inverts the output generation order (useful for non-standard iteration).

Link

Input from File1

crunch 4 4 -q inputs.txt

Permutes input read line-by-line from the specified file 'inputs.txt'.

Link

Resume and Recovery1

crunch 4 4 -r

Resumes a previous session based on existing parameters (often requires -s manually).

Link

Blue Team Policy Testing3

crunch 8 8 -f charset.lst mixalpha-numeric -d 2@

Generates complex passwords but enforces a policy against 3 repeated chars.

Link
crunch 12 12 -t P@ss%%%%%%%%

Tests for weak variations of 'Pass' followed by 8 random numbers.

Link
crunch 8 8 -t ,@^%,@^%

Validates complexity requirements by generating alternating character types.

Link

Red Team Optimization3

crunch 1 5 -o wordlist.txt -b 500mb -z gzip

Generates a massive range split into manageable, compressed 500MB chunks.

Link
crunch 4 4 -t @@@@ -o /dev/null

Benchmarks generation speed by piping output to null.

Link
crunch 6 6 0123456789 -s 500000

Optimizes distributed cracking by starting a node at the midpoint of the keyspace.

Link

Pipeline Integration3

crunch 2 2 | cat

Pipes generated output directly to stdout for another tool to consume.

Link
crunch 4 4 | aircrack-ng -w - capture.cap

Pipes passwords directly into Aircrack-ng without saving to disk.

Link
crunch 8 8 | john --stdin

Feeds generated candidates directly into John the Ripper.

Link

Complex Patterns4

crunch 10 10 -t 2023@@@@@@

Target specific year-based passwords with 6 random trailing characters.

Link
crunch 9 9 -t admin%%%%

Generates 'admin' followed by 4 digits.

Link
crunch 8 8 -t @@@123@@

Injects a static numeric sequence '123' into the middle of random letters.

Link
crunch 7 7 -t ^^^^^^^

Generates a high-entropy list of 7-character symbol-only passwords.

Link

Custom Charset Combination2

crunch 4 4 abc 123 -t @@@%

Uses 'abc' for the @ placeholder and '123' for the % placeholder.

Link
crunch 5 5 abc ABC 123 !@# -t ,@%^,

Maps four custom character strings to the uppercase, lowercase, numeric, and symbol placeholders.

Link

Edge Case - Single Char1

crunch 1 1 -t %

Generates single digits 0-9 using the pattern flag.

Link

Edge Case - Space Handling1

crunch 3 3 "a b"

Generates combinations including spaces by enclosing the charset in quotes.

Link

Advanced Resume1

crunch 5 5 -o list.txt -s ccccc

Manually resumes a failed 5-char generation job starting from 'ccccc'.

Link

Memory Safety1

crunch 12 12 -t @@@@@@@@@@@@ -u | head -n 5

Safe preview of a massive generation job without filling disk or memory.

Link

Permutation with Output1

crunch 0 0 -p red blue green -o colors.txt

Saves permutations of color words to a file, ignoring min/max arguments.

Link

Policy Audit - Max Repeated1

crunch 6 6 -d 1@

Strict auditing: allows NO consecutive duplicate lowercase letters.

Link

Policy Audit - Structure1

crunch 8 8 -t ,@%^,@%^

Simulates a very strict corporate password policy (UpperLowerNumberSymbol).

Link

Charset File - Hex1

crunch 32 32 -f charset.lst hex-upper

Generates 32-character uppercase hex keys (MD5 hash equivalent structure).

Link

Charset File - SQL Injection1

crunch 2 2 -f charset.lst sql

Generates short combinations using common SQL injection characters.

Link

Output Formatting3

crunch 4 4 -o START.txt

Automatically names the output file using the first word generated (e.g., aaaa.txt).

Link
crunch 4 4 -o END.txt

Automatically names the output file using the last word generated (e.g., zzzz.txt).

Link
crunch 4 4 -o START-END.txt

Names the file with the range contained within (e.g., aaaa-zzzz.txt).

Link

Extreme Size Management2

crunch 8 8 -b 1gb -o wordlist

Splits a large 8-char dictionary into manageable 1GB volumes.

Link
crunch 8 8 -c 1000000 -o wordlist

Splits a large dictionary into files containing exactly 1 million lines each.

Link

Complex Logic - Inverted Pattern1

crunch 6 6 -t @@@123 -i

Generates the list with inverted logic for specific iteration checks.

Link

Complex Logic - Literal Escape3

crunch 1 1 -t @ -l @

Generates a file containing the literal character '@'.

Link
crunch 1 1 -t % -l %

Generates a file containing the literal character '%'.

Link
crunch 1 1 -t ^ -l ^

Generates a file containing the literal character '^'.

Link

Date Based Generation2

crunch 8 8 -t 199%%%%%

Generates dates or IDs starting with the year 199X.

Link
crunch 8 8 -t 200%%%%%

Generates dates or IDs starting with the year 200X.

Link

SSN Simulation1

crunch 11 11 -t %%%-%%-%%%%

Generates strings matching the US Social Security Number format (synthetic).

Link

MAC Address Simulation1

crunch 17 17 -t AA:BB:CC:%%:%%:%%

Generates MAC addresses for a specific OUI (AA:BB:CC).

Link

Credit Card Simulation1

crunch 16 16 -t 4%%%%%%%%%%%%%%%

Generates 16-digit numbers starting with 4 (Visa format validation).

Link

Custom Separators1

crunch 5 5 -t @-@-@

Generates 5-char patterns with hyphens hardcoded between letters.

Link

Whitespace Permutations1

crunch 3 3 -p " " . _

Permutes whitespace, dot, and underscore for delimiter fuzzing.

Link

Unicode/Special Charsets1

crunch 2 2 £$€

Generates combinations of currency symbols.

Link

Advanced Piping - Hashcat1

crunch 6 6 | hashcat -m 0 hashes.txt

Pipes candidates directly to Hashcat (legacy method, usually Hashcat manages this).

Link

Advanced Piping - Scripting1

crunch 4 4 | while read pass; do echo "Testing $pass"; done

Pipes output into a bash while loop for custom processing logic.

Link

Distributed Cracking - Part 11

crunch 5 5 -e mmmmm -o chunk1.txt

Generates the first half of a 5-letter keyspace.

Link

Distributed Cracking - Part 21

crunch 5 5 -s nnnnn -o chunk2.txt

Generates the second half of a 5-letter keyspace.

Link

Debug Mode1

crunch 4 4 -d 1@ -u

Runs a duplicate-check generation while suppressing size warnings for quick verification.

Link

Custom Wildcard Mapping1

crunch 4 4 -f charset.lst lalpha -t @@@@

Maps the lalpha charset from file to the @ wildcard.

Link

Multi-Charset Masking1

crunch 4 4 0123 4567 89AB CDEF -t @,%^

Maps four specific custom strings to the four wildcard types separately.

Link

Zero Length Permutations1

crunch 0 0 -p admin root user

Uses 0 0 to signify permutation mode without length constraints.

Link

Rapid Prototyping1

crunch 1 10 -f charset.lst lalpha -o /dev/null -z gzip

Tests compression speed without saving the file.

Link

Combinator Attack Prep2

crunch 4 4 -o left.txt

Creates the left side for a combinator attack.

Link
crunch 4 4 0123456789 -o right.txt

Creates the right side (digits) for a combinator attack.

Link

Specific Protocol Fuzzing1

crunch 8 8 -t HTTP/%.%

Generates strings looking like HTTP versions for fuzzing.

Link

Environment Variable Injection1

crunch 6 6 -t $USER%%

Generates strings containing the literal text '$USER' followed by digits.

Link

Massive Numeric Keypad1

crunch 6 6 0123456789 -o pins.txt

Generates a complete 6-digit PIN code wordlist.

Link

The Ultimate Combined Command1

crunch 8 8 -f charset.lst mixalpha-numeric -t @@@@@%%% -b 10mb -o WORDLIST -z gzip

Combines charset files, patterns, splitting, dynamic naming, and compression in one command.

Link