Password Attackswordlistgeneratordictionarybruteforcepermutationcombination

crunch

Crunch is a wordlist generator that creates dictionaries based on specified character sets, lengths, and combinations. It supports numbers, symbols, upper and lower case characters, and Unicode.

Description

Crunch is a tool for creating wordlists where users can specify a standard character set or any custom set of characters. The wordlists are generated through combinations and permutations of the characters, allowing control over the length and size of the output lists. This makes it useful for generating custom dictionaries for password cracking and other security testing scenarios.

The tool outputs data to the screen, a file, or pipes it to another program, providing flexibility in workflows. It is particularly valuable in penetration testing for creating targeted wordlists based on known patterns or character constraints.

Crunch supports a wide range of characters including numbers, symbols, upper and lower case letters separately, and Unicode, enabling comprehensive dictionary generation for various authentication cracking tasks.

How It Works

Crunch generates wordlists by performing combinations and permutations of a specified character set within defined minimum and maximum lengths. It calculates the total data size and number of lines before generation, then produces the output accordingly. The process is controlled via command-line parameters for length, charset, and output options.

Installation

bash
sudo apt install crunch

Flags

-oSpecify output file for the generated wordlist

Examples

Generate a dictionary file containing words with a minimum and maximum length of 6 using the characters 0123456789abcdef, saving the output to 6chars.txt. Produces 16777216 lines totaling 117440512 bytes (112 MB).
crunch 6 6 0123456789abcdef -o 6chars.txt
Display help information and usage for crunch version 3.6.
crunch -h
Generate single-character wordlist from abcdef charset.
crunch 1 1 abcdef
Create 4-digit numeric wordlist saved to numbers.txt.
crunch 4 4 0123456789 -o numbers.txt
Generate 3-5 character wordlist from abcdefgh and pipe to grep for password-like words.
crunch 3 5 abcdefgh | grep -i pass
Use predefined mixed alpha-numeric charset for 6-character words.
crunch 6 6 -f /usr/share/crunch/charset.lst mixalpha-numeric -o mixed.txt
Generate wordlist with pattern matching using @ for letters and % for symbols.
crunch 2 8 -t @@@@%%%% -o pattern.txt
Updated 2026-04-16kali.org ↗