← 返回命令列表

Linux command

crunch 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Generate all combinations

crunch [4] [6]

Generate wordlist with custom

crunch [4] [4] [abc123]

Output wordlist to file

crunch [6] [8] -o [wordlist.txt]

Generate with pattern

crunch [8] [8] -t [@@@@%%%%]

Limit output file size

crunch [6] [6] -b [10mb] -o [START]

Generate using words

crunch [4] [4] -p [word1] [word2] [word3]

说明

crunch is a wordlist generator that creates lists of all possible combinations based on specified criteria. It's commonly used in authorized penetration testing for creating password lists, brute-force dictionaries, and testing security measures. The tool generates combinations efficiently, supporting custom character sets, patterns, and size limits. Patterns allow mixing character types (letters, numbers, symbols) in specific positions. The permutation mode creates all arrangements of given words. Output can be piped to other tools or split into manageable file sizes for large wordlists. Compression options help manage disk space for extensive generations.

参数

-o _FILE_
Output to file instead of stdout.
-t _PATTERN_
Specify pattern using placeholders (@ , % ^).
-b _SIZE_
Split output into files of specified size.
-c _COUNT_
Number of lines per output file.
-p _WORDS_
Generate permutations of specified words.
-d _NUM_
Limit consecutive duplicate characters.
-e _STRING_
Stop generating words at the specified string.
-f _FILE_ _CHARSET_
Read character set from a file (e.g., charset.lst).
-i
Invert output so the first character changes most often.
-l _CHARS_
Treat characters as literals in the -t pattern (overrides @,%^).
-s _STRING_
Start at specified string (for resuming).
-u
Disable the print-percentage thread.
-z _COMP_
Compress output (gzip, bzip2, lzma, 7z).

FAQ

What is the crunch command used for?

crunch is a wordlist generator that creates lists of all possible combinations based on specified criteria. It's commonly used in authorized penetration testing for creating password lists, brute-force dictionaries, and testing security measures. The tool generates combinations efficiently, supporting custom character sets, patterns, and size limits. Patterns allow mixing character types (letters, numbers, symbols) in specific positions. The permutation mode creates all arrangements of given words. Output can be piped to other tools or split into manageable file sizes for large wordlists. Compression options help manage disk space for extensive generations.

How do I run a basic crunch example?

Run `crunch [4] [6]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _FILE_ do in crunch?

Output to file instead of stdout.