Files
tldr/pages.zh/common/crunch.md

36 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# crunch
> 单词列表生成器。
> 更多信息:<https://sourceforge.net/projects/crunch-wordlist/>.
- 输出长度为1到3的仅包含小写字符的单词列表
`crunch {{1}} {{3}}`
- 输出长度为8的十六进制单词列表
`crunch {{8}} {{8}} {{0123456789abcdef}}`
- 输出abc的所有排列组合长度不处理
`crunch {{1}} {{1}} -p {{abc}}`
- 输出给定字符串的所有排列组合(长度不处理):
`crunch {{1}} {{1}} -p {{abc}} {{def}} {{ghi}}`
- 输出根据给定模式生成的单词列表,并设置最大重复字母数:
`crunch {{5}} {{5}} {{abcde123}} -t {{@@@12}} -d 2@`
- 将单词列表写入指定大小的块文件,从给定字符串开始:
`crunch {{3}} {{5}} -o {{START}} -b {{10kb}} -s {{abc}}`
- 将单词列表写入以给定字符串结束并反转单词列表:
`crunch {{1}} {{5}} -o {{START}} -e {{abcde}} -i`
- 将单词列表写入带有指定单词数量的压缩块文件:
`crunch {{1}} {{5}} -o {{START}} -c {{1000}} -z {{gzip|bzip2|lzma|7z}}`