{"tool":"crunch","name":"Crunch","description":"Generates wordlists from character sets and patterns — every combination of a given length, or a precise mask.","tags":["wordlists","generation"],"homepage":"https://sourceforge.net/projects/crunch-wordlist/","install":{"apt":"sudo apt install crunch","brew":"brew install crunch"},"related":["cewl","rsmangler","hashcat"],"total_commands":100,"commands":[{"id":1,"category":"Basic Wordlist Generation","command":"crunch 1 1","example":"crunch 1 1","explanation":"Generates a list of single characters using the default lowercase alphabet."},{"id":2,"category":"Basic Wordlist Generation","command":"crunch 4 4","example":"crunch 4 4","explanation":"Generates all possible 4-character strings using default lowercase letters."},{"id":3,"category":"Basic Wordlist Generation","command":"crunch 1 3","example":"crunch 1 3","explanation":"Generates words ranging from length 1 to length 3 using default settings."},{"id":4,"category":"Basic Wordlist Generation","command":"crunch 6 6 0123456789","example":"crunch 6 6 0123456789","explanation":"Generates all 6-digit numeric combinations."},{"id":5,"category":"Basic Wordlist Generation","command":"crunch 4 4 abcde","example":"crunch 4 4 abcde","explanation":"Generates 4-character combinations using only the letters a, b, c, d, and e."},{"id":6,"category":"Basic Wordlist Generation","command":"crunch 8 8 0123456789ABCDEF","example":"crunch 8 8 0123456789ABCDEF","explanation":"Generates 8-character hex strings using uppercase hex characters."},{"id":7,"category":"Character Set Handling","command":"crunch 4 4 -f /usr/share/crunch/charset.lst numeric","example":"crunch 4 4 -f /usr/share/crunch/charset.lst numeric","explanation":"Uses the 'numeric' profile from the standard charset.lst file."},{"id":8,"category":"Character Set Handling","command":"crunch 6 6 -f /usr/share/crunch/charset.lst ualpha","example":"crunch 6 6 -f /usr/share/crunch/charset.lst ualpha","explanation":"Generates 6-character uppercase words using the charset file."},{"id":9,"category":"Character Set Handling","command":"crunch 5 5 -f /usr/share/crunch/charset.lst mixalpha","example":"crunch 5 5 -f /usr/share/crunch/charset.lst mixalpha","explanation":"Generates 5-character mixed-case alphabetic strings."},{"id":10,"category":"Character Set Handling","command":"crunch 8 8 -f /usr/share/crunch/charset.lst ualpha-numeric","example":"crunch 8 8 -f /usr/share/crunch/charset.lst ualpha-numeric","explanation":"Generates 8-character alphanumeric strings using uppercase letters and numbers."},{"id":11,"category":"Character Set Handling","command":"crunch 1 1 -f /usr/share/crunch/charset.lst symbols14","example":"crunch 1 1 -f /usr/share/crunch/charset.lst symbols14","explanation":"Generates single characters from the symbols14 charset profile."},{"id":12,"category":"Character Set Handling","command":"crunch 4 4 + + 123 +","example":"crunch 4 4 + + 123 +","explanation":"Uses placeholders (+) for default charsets while specifying a custom numeric set."},{"id":13,"category":"Pattern Based Generation","command":"crunch 4 4 -t @@@@","example":"crunch 4 4 -t @@@@","explanation":"Explicitly uses the @ pattern to generate 4-character lowercase words."},{"id":14,"category":"Pattern Based Generation","command":"crunch 4 4 -t ,,,,","example":"crunch 4 4 -t ,,,,","explanation":"Uses the comma pattern to generate 4-character uppercase words."},{"id":15,"category":"Pattern Based Generation","command":"crunch 4 4 -t %%%%","example":"crunch 4 4 -t %%%%","explanation":"Uses the percent pattern to generate 4-digit numbers."},{"id":16,"category":"Pattern Based Generation","command":"crunch 4 4 -t ^^^^","example":"crunch 4 4 -t ^^^^","explanation":"Uses the caret pattern to generate 4-character symbol strings."},{"id":17,"category":"Pattern Based Generation","command":"crunch 6 6 -t pass%%","example":"crunch 6 6 -t pass%%","explanation":"Generates 6-character words starting with 'pass' followed by 2 numbers."},{"id":18,"category":"Pattern Based Generation","command":"crunch 8 8 -t Admin1@@","example":"crunch 8 8 -t Admin1@@","explanation":"Generates 8-character words starting with 'Admin1' followed by 2 lowercase letters."},{"id":19,"category":"Pattern Based Generation","command":"crunch 7 7 -t ,@^%@^%","example":"crunch 7 7 -t ,@^%@^%","explanation":"Generates a complex 7-char pattern mixing upper, lower, symbol, number, lower, symbol, number."},{"id":20,"category":"Pattern Based Generation","command":"crunch 10 10 -t 919%%%%%%%","example":"crunch 10 10 -t 919%%%%%%%","explanation":"Generates 10-digit phone numbers starting with the area code 919."},{"id":21,"category":"Permutation Generation","command":"crunch 1 1 -p abc","example":"crunch 1 1 -p abc","explanation":"Generates all permutations of the characters 'a', 'b', and 'c'."},{"id":22,"category":"Permutation Generation","command":"crunch 1 1 -p dog cat bird","example":"crunch 1 1 -p dog cat bird","explanation":"Generates all permutations of the words 'dog', 'cat', and 'bird'."},{"id":23,"category":"Output File Control","command":"crunch 4 4 -o wordlist.txt","example":"crunch 4 4 -o wordlist.txt","explanation":"Saves the generated 4-character wordlist to a file named wordlist.txt."},{"id":24,"category":"Output File Control","command":"crunch 4 4 -u","example":"crunch 4 4 -u","explanation":"Suppresses the printout of the estimated file size and line count."},{"id":25,"category":"Start and End Blocks","command":"crunch 4 4 -s bbba","example":"crunch 4 4 -s bbba","explanation":"Starts generation at the string 'bbba' instead of 'aaaa'."},{"id":26,"category":"Start and End Blocks","command":"crunch 4 4 -e aazz","example":"crunch 4 4 -e aazz","explanation":"Stops generation immediately after the string 'aazz' is created."},{"id":27,"category":"Start and End Blocks","command":"crunch 4 4 -s aaaa -e aazz","example":"crunch 4 4 -s aaaa -e aazz","explanation":"Generates a subset of the 4-character space from 'aaaa' to 'aazz'."},{"id":28,"category":"Handling Duplicates","command":"crunch 8 8 -d 2@","example":"crunch 8 8 -d 2@","explanation":"Limits the output to prevent more than 2 consecutive lowercase characters."},{"id":29,"category":"Handling Duplicates","command":"crunch 6 6 -d 1%","example":"crunch 6 6 -d 1%","explanation":"Ensures no two consecutive numbers are identical in the output."},{"id":30,"category":"Handling Duplicates","command":"crunch 5 5 -d 2@ -t @@@@@","example":"crunch 5 5 -d 2@ -t @@@@@","explanation":"Generates 5-letter words with a pattern but restricts consecutive identical letters to 2."},{"id":31,"category":"File Splitting","command":"crunch 6 6 -o START -b 20mb","example":"crunch 6 6 -o START -b 20mb","explanation":"Splits output into multiple files, each maximum 20 megabytes."},{"id":32,"category":"File Splitting","command":"crunch 6 6 -o START -c 1000","example":"crunch 6 6 -o START -c 1000","explanation":"Splits output into multiple files, each containing exactly 1000 lines."},{"id":33,"category":"File Splitting","command":"crunch 10 10 -o part -b 2gb","example":"crunch 10 10 -o part -b 2gb","explanation":"Generates 10-char words split into 2GB chunks for handling massive lists."},{"id":34,"category":"Compression","command":"crunch 4 4 -o list.txt.gz -z gzip","example":"crunch 4 4 -o list.txt.gz -z gzip","explanation":"Compresses the output on-the-fly using gzip."},{"id":35,"category":"Compression","command":"crunch 4 4 -o list.txt.bz2 -z bzip2","example":"crunch 4 4 -o list.txt.bz2 -z bzip2","explanation":"Compresses the output on-the-fly using bzip2 algorithm."},{"id":36,"category":"Compression","command":"crunch 4 4 -o list.txt.lzma -z lzma","example":"crunch 4 4 -o list.txt.lzma -z lzma","explanation":"Compresses the output using LZMA for high compression ratios."},{"id":37,"category":"Compression","command":"crunch 4 4 -o list.7z -z 7z","example":"crunch 4 4 -o list.7z -z 7z","explanation":"Compresses the output using the 7z archive format."},{"id":38,"category":"Literal Handling","command":"crunch 5 5 -t @@@%% -l @@@@@","example":"crunch 5 5 -t @@@%% -l @@@@@","explanation":"Treats the @ symbols in the pattern as literal '@' characters, not wildcards."},{"id":39,"category":"Literal Handling","command":"crunch 4 4 -t %%,^ -l aaaa","example":"crunch 4 4 -t %%,^ -l aaaa","explanation":"Forces the pattern characters to be treated as literals using a placeholder string."},{"id":40,"category":"Literal Handling","command":"crunch 3 3 -t %%% -l @%^","example":"crunch 3 3 -t %%% -l @%^","explanation":"Allows generating strings containing actual pattern characters by escaping them."},{"id":41,"category":"Advanced Patterns","command":"crunch 5 5 -t ddd@@ -p dog cat bird","example":"crunch 5 5 -t ddd@@ -p dog cat bird","explanation":"Treats 'ddd' as a permutation block and '@@' as standard wildcards."},{"id":42,"category":"Inversion","command":"crunch 4 4 -i","example":"crunch 4 4 -i","explanation":"Inverts the output generation order (useful for non-standard iteration)."},{"id":43,"category":"Input from File","command":"crunch 4 4 -q inputs.txt","example":"crunch 4 4 -q inputs.txt","explanation":"Permutes input read line-by-line from the specified file 'inputs.txt'."},{"id":44,"category":"Resume and Recovery","command":"crunch 4 4 -r","example":"crunch 4 4 -r","explanation":"Resumes a previous session based on existing parameters (often requires -s manually)."},{"id":45,"category":"Blue Team Policy Testing","command":"crunch 8 8 -f charset.lst mixalpha-numeric -d 2@","example":"crunch 8 8 -f charset.lst mixalpha-numeric -d 2@","explanation":"Generates complex passwords but enforces a policy against 3 repeated chars."},{"id":46,"category":"Blue Team Policy Testing","command":"crunch 12 12 -t P@ss%%%%%%%%","example":"crunch 12 12 -t P@ss%%%%%%%%","explanation":"Tests for weak variations of 'Pass' followed by 8 random numbers."},{"id":47,"category":"Blue Team Policy Testing","command":"crunch 8 8 -t ,@^%,@^%","example":"crunch 8 8 -t ,@^%,@^%","explanation":"Validates complexity requirements by generating alternating character types."},{"id":48,"category":"Red Team Optimization","command":"crunch 1 5 -o wordlist.txt -b 500mb -z gzip","example":"crunch 1 5 -o wordlist.txt -b 500mb -z gzip","explanation":"Generates a massive range split into manageable, compressed 500MB chunks."},{"id":49,"category":"Red Team Optimization","command":"crunch 4 4 -t @@@@ -o /dev/null","example":"crunch 4 4 -t @@@@ -o /dev/null","explanation":"Benchmarks generation speed by piping output to null."},{"id":50,"category":"Red Team Optimization","command":"crunch 6 6 0123456789 -s 500000","example":"crunch 6 6 0123456789 -s 500000","explanation":"Optimizes distributed cracking by starting a node at the midpoint of the keyspace."},{"id":51,"category":"Pipeline Integration","command":"crunch 2 2 | cat","example":"crunch 2 2 | cat","explanation":"Pipes generated output directly to stdout for another tool to consume."},{"id":52,"category":"Pipeline Integration","command":"crunch 4 4 | aircrack-ng -w - capture.cap","example":"crunch 4 4 | aircrack-ng -w - capture.cap","explanation":"Pipes passwords directly into Aircrack-ng without saving to disk."},{"id":53,"category":"Pipeline Integration","command":"crunch 8 8 | john --stdin","example":"crunch 8 8 | john --stdin","explanation":"Feeds generated candidates directly into John the Ripper."},{"id":54,"category":"Complex Patterns","command":"crunch 10 10 -t 2023@@@@@@","example":"crunch 10 10 -t 2023@@@@@@","explanation":"Target specific year-based passwords with 6 random trailing characters."},{"id":55,"category":"Complex Patterns","command":"crunch 9 9 -t admin%%%%","example":"crunch 9 9 -t admin%%%%","explanation":"Generates 'admin' followed by 4 digits."},{"id":56,"category":"Complex Patterns","command":"crunch 8 8 -t @@@123@@","example":"crunch 8 8 -t @@@123@@","explanation":"Injects a static numeric sequence '123' into the middle of random letters."},{"id":57,"category":"Complex Patterns","command":"crunch 7 7 -t ^^^^^^^","example":"crunch 7 7 -t ^^^^^^^","explanation":"Generates a high-entropy list of 7-character symbol-only passwords."},{"id":58,"category":"Custom Charset Combination","command":"crunch 4 4 abc 123 -t @@@%","example":"crunch 4 4 abc 123 -t @@@%","explanation":"Uses 'abc' for the @ placeholder and '123' for the % placeholder."},{"id":59,"category":"Custom Charset Combination","command":"crunch 5 5 abc ABC 123 !@# -t ,@%^,","example":"crunch 5 5 abc ABC 123 !@# -t ,@%^,","explanation":"Maps four custom character strings to the uppercase, lowercase, numeric, and symbol placeholders."},{"id":60,"category":"Edge Case - Single Char","command":"crunch 1 1 -t %","example":"crunch 1 1 -t %","explanation":"Generates single digits 0-9 using the pattern flag."},{"id":61,"category":"Edge Case - Space Handling","command":"crunch 3 3 \"a b\"","example":"crunch 3 3 \"a b\"","explanation":"Generates combinations including spaces by enclosing the charset in quotes."},{"id":62,"category":"Advanced Resume","command":"crunch 5 5 -o list.txt -s ccccc","example":"crunch 5 5 -o list.txt -s ccccc","explanation":"Manually resumes a failed 5-char generation job starting from 'ccccc'."},{"id":63,"category":"Memory Safety","command":"crunch 12 12 -t @@@@@@@@@@@@ -u | head -n 5","example":"crunch 12 12 -t @@@@@@@@@@@@ -u | head -n 5","explanation":"Safe preview of a massive generation job without filling disk or memory."},{"id":64,"category":"Permutation with Output","command":"crunch 0 0 -p red blue green -o colors.txt","example":"crunch 0 0 -p red blue green -o colors.txt","explanation":"Saves permutations of color words to a file, ignoring min/max arguments."},{"id":65,"category":"Policy Audit - Max Repeated","command":"crunch 6 6 -d 1@","example":"crunch 6 6 -d 1@","explanation":"Strict auditing: allows NO consecutive duplicate lowercase letters."},{"id":66,"category":"Policy Audit - Structure","command":"crunch 8 8 -t ,@%^,@%^","example":"crunch 8 8 -t ,@%^,@%^","explanation":"Simulates a very strict corporate password policy (UpperLowerNumberSymbol)."},{"id":67,"category":"Charset File - Hex","command":"crunch 32 32 -f charset.lst hex-upper","example":"crunch 32 32 -f charset.lst hex-upper","explanation":"Generates 32-character uppercase hex keys (MD5 hash equivalent structure)."},{"id":68,"category":"Charset File - SQL Injection","command":"crunch 2 2 -f charset.lst sql","example":"crunch 2 2 -f charset.lst sql","explanation":"Generates short combinations using common SQL injection characters."},{"id":69,"category":"Output Formatting","command":"crunch 4 4 -o START.txt","example":"crunch 4 4 -o START.txt","explanation":"Automatically names the output file using the first word generated (e.g., aaaa.txt)."},{"id":70,"category":"Output Formatting","command":"crunch 4 4 -o END.txt","example":"crunch 4 4 -o END.txt","explanation":"Automatically names the output file using the last word generated (e.g., zzzz.txt)."},{"id":71,"category":"Output Formatting","command":"crunch 4 4 -o START-END.txt","example":"crunch 4 4 -o START-END.txt","explanation":"Names the file with the range contained within (e.g., aaaa-zzzz.txt)."},{"id":72,"category":"Extreme Size Management","command":"crunch 8 8 -b 1gb -o wordlist","example":"crunch 8 8 -b 1gb -o wordlist","explanation":"Splits a large 8-char dictionary into manageable 1GB volumes."},{"id":73,"category":"Extreme Size Management","command":"crunch 8 8 -c 1000000 -o wordlist","example":"crunch 8 8 -c 1000000 -o wordlist","explanation":"Splits a large dictionary into files containing exactly 1 million lines each."},{"id":74,"category":"Complex Logic - Inverted Pattern","command":"crunch 6 6 -t @@@123 -i","example":"crunch 6 6 -t @@@123 -i","explanation":"Generates the list with inverted logic for specific iteration checks."},{"id":75,"category":"Complex Logic - Literal Escape","command":"crunch 1 1 -t @ -l @","example":"crunch 1 1 -t @ -l @","explanation":"Generates a file containing the literal character '@'."},{"id":76,"category":"Complex Logic - Literal Escape","command":"crunch 1 1 -t % -l %","example":"crunch 1 1 -t % -l %","explanation":"Generates a file containing the literal character '%'."},{"id":77,"category":"Complex Logic - Literal Escape","command":"crunch 1 1 -t ^ -l ^","example":"crunch 1 1 -t ^ -l ^","explanation":"Generates a file containing the literal character '^'."},{"id":78,"category":"Date Based Generation","command":"crunch 8 8 -t 199%%%%%","example":"crunch 8 8 -t 199%%%%%","explanation":"Generates dates or IDs starting with the year 199X."},{"id":79,"category":"Date Based Generation","command":"crunch 8 8 -t 200%%%%%","example":"crunch 8 8 -t 200%%%%%","explanation":"Generates dates or IDs starting with the year 200X."},{"id":80,"category":"SSN Simulation","command":"crunch 11 11 -t %%%-%%-%%%%","example":"crunch 11 11 -t %%%-%%-%%%%","explanation":"Generates strings matching the US Social Security Number format (synthetic)."},{"id":81,"category":"MAC Address Simulation","command":"crunch 17 17 -t AA:BB:CC:%%:%%:%%","example":"crunch 17 17 -t AA:BB:CC:%%:%%:%%","explanation":"Generates MAC addresses for a specific OUI (AA:BB:CC)."},{"id":82,"category":"Credit Card Simulation","command":"crunch 16 16 -t 4%%%%%%%%%%%%%%%","example":"crunch 16 16 -t 4%%%%%%%%%%%%%%%","explanation":"Generates 16-digit numbers starting with 4 (Visa format validation)."},{"id":83,"category":"Custom Separators","command":"crunch 5 5 -t @-@-@","example":"crunch 5 5 -t @-@-@","explanation":"Generates 5-char patterns with hyphens hardcoded between letters."},{"id":84,"category":"Whitespace Permutations","command":"crunch 3 3 -p \" \" . _","example":"crunch 3 3 -p \" \" . _","explanation":"Permutes whitespace, dot, and underscore for delimiter fuzzing."},{"id":85,"category":"Unicode/Special Charsets","command":"crunch 2 2 £$€","example":"crunch 2 2 £$€","explanation":"Generates combinations of currency symbols."},{"id":86,"category":"Advanced Piping - Hashcat","command":"crunch 6 6 | hashcat -m 0 hashes.txt","example":"crunch 6 6 | hashcat -m 0 hashes.txt","explanation":"Pipes candidates directly to Hashcat (legacy method, usually Hashcat manages this)."},{"id":87,"category":"Advanced Piping - Scripting","command":"crunch 4 4 | while read pass; do echo \"Testing $pass\"; done","example":"crunch 4 4 | while read pass; do echo \"Testing $pass\"; done","explanation":"Pipes output into a bash while loop for custom processing logic."},{"id":88,"category":"Distributed Cracking - Part 1","command":"crunch 5 5 -e mmmmm -o chunk1.txt","example":"crunch 5 5 -e mmmmm -o chunk1.txt","explanation":"Generates the first half of a 5-letter keyspace."},{"id":89,"category":"Distributed Cracking - Part 2","command":"crunch 5 5 -s nnnnn -o chunk2.txt","example":"crunch 5 5 -s nnnnn -o chunk2.txt","explanation":"Generates the second half of a 5-letter keyspace."},{"id":90,"category":"Debug Mode","command":"crunch 4 4 -d 1@ -u","example":"crunch 4 4 -d 1@ -u","explanation":"Runs a duplicate-check generation while suppressing size warnings for quick verification."},{"id":91,"category":"Custom Wildcard Mapping","command":"crunch 4 4 -f charset.lst lalpha -t @@@@","example":"crunch 4 4 -f charset.lst lalpha -t @@@@","explanation":"Maps the lalpha charset from file to the @ wildcard."},{"id":92,"category":"Multi-Charset Masking","command":"crunch 4 4 0123 4567 89AB CDEF -t @,%^","example":"crunch 4 4 0123 4567 89AB CDEF -t @,%^","explanation":"Maps four specific custom strings to the four wildcard types separately."},{"id":93,"category":"Zero Length Permutations","command":"crunch 0 0 -p admin root user","example":"crunch 0 0 -p admin root user","explanation":"Uses 0 0 to signify permutation mode without length constraints."},{"id":94,"category":"Rapid Prototyping","command":"crunch 1 10 -f charset.lst lalpha -o /dev/null -z gzip","example":"crunch 1 10 -f charset.lst lalpha -o /dev/null -z gzip","explanation":"Tests compression speed without saving the file."},{"id":95,"category":"Combinator Attack Prep","command":"crunch 4 4 -o left.txt","example":"crunch 4 4 -o left.txt","explanation":"Creates the left side for a combinator attack."},{"id":96,"category":"Combinator Attack Prep","command":"crunch 4 4 0123456789 -o right.txt","example":"crunch 4 4 0123456789 -o right.txt","explanation":"Creates the right side (digits) for a combinator attack."},{"id":97,"category":"Specific Protocol Fuzzing","command":"crunch 8 8 -t HTTP/%.%","example":"crunch 8 8 -t HTTP/%.%","explanation":"Generates strings looking like HTTP versions for fuzzing."},{"id":98,"category":"Environment Variable Injection","command":"crunch 6 6 -t $USER%%","example":"crunch 6 6 -t $USER%%","explanation":"Generates strings containing the literal text '$USER' followed by digits."},{"id":99,"category":"Massive Numeric Keypad","command":"crunch 6 6 0123456789 -o pins.txt","example":"crunch 6 6 0123456789 -o pins.txt","explanation":"Generates a complete 6-digit PIN code wordlist."},{"id":100,"category":"The Ultimate Combined Command","command":"crunch 8 8 -f charset.lst mixalpha-numeric -t @@@@@%%% -b 10mb -o WORDLIST -z gzip","example":"crunch 8 8 -f charset.lst mixalpha-numeric -t @@@@@%%% -b 10mb -o WORDLIST -z gzip","explanation":"Combines charset files, patterns, splitting, dynamic naming, and compression in one command."}],"slug":"crunch","category":"credentials","url":"https://terminal.rokibulroni.com/tool/credentials/crunch","markdown":"https://terminal.rokibulroni.com/api/v1/tools/credentials/crunch.md"}