当前位置:网站首页>Introduction and installation of crunch, and making password dictionary with crunch
Introduction and installation of crunch, and making password dictionary with crunch
2022-07-01 19:34:00 【51CTO】
One 、Crunch brief introduction
Crunch It's one that runs in linux Dictionary generation tool in , You can customize your own password dictionary file flexibly .
Can a password dictionary do it ? Know everything. !
Two 、Crunch install
kali系统 in 默认 install 有Crunch Tools .
Download address : https://sourceforge.net/projects/crunch-wordlist/

1) Decompress the source package
[[email protected] ~]
# tar zxvf crunch-3.6.tgz
[[email protected] ~]
# cd crunch-3.6/
[[email protected] ~]
# ls
c
h
a
r
s
e
t
.
l
s
t
C
O
P
Y
I
N
G
c
r
u
n
c
h
.
1
c
r
u
n
c
h
.
c
M
a
k
e
f
i
l
e
u
n
i
c
o
d
e
_
t
e
s
t
.
l
s
t
- 1.
- 2.
- 3.
- 4.
Get into crunch Under the installation directory of, you can see that there is a charset.lst file , In it, some nouns are defined to abbreviate the characters used to make dictionaries, such as :
- numeric Express 0123456789
- lalpha Express 26 A lowercase letter
- ualpha Express 26 For capital letters
2) install
[[email protected] ~]
# gcc -Wall -lm -pthread -std=c99 -m64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 crunch.c -o crunch -lm
[[email protected] ~]
# make install
- 1.
- 2.
3、 ... and 、Crunch Use syntax and parameters
After installation , Start learning how to use Crunch The tool .
grammar
crunch min-len max-len [opention]
Parameters
min-len: The starting minimum length string ( This option is required )
max-len: The maximum length string that ends ( This option is required )
charset string To generate the character set contained in the password ( Lowercase characters 、 Uppercase characters 、 Numbers 、 Symbol ), This option is optional , If you don't write this option , The default character set will be used ( The default is lowercase characters ). If the password you want to generate contains space characters , You can use instead of , You can put the character set with spaces in double quotation marks “” in , Such as “123abc ”
Options
- -o Output the generated password to the specified file ;
- -z Generated compressed dictionary file , The valid parameters are gzip, bzip2, lzma, and 7z, among gzip The fastest compression ,bzip2 Compression speed ratio gzip Slow single compression efficiency ratio gzip good ,7z The slowest compression , But the compression efficiency is the highest .
- -f Call the password library file , for example :/usr/share/crunch/charset.lst;
- -t Define password output format (@ For inserting lowercase letters 、, For inserting capital letters 、% For inserting numbers 、^ Represents the caret )
- -b: Divide the dictionary file into several dictionaries of specified size according to the specified size unit , Avoid a dictionary file that is too large ,
Example : Press each file 20mib Split dictionary file
explain :
The unit has kb, mb, gb, kib, mib, gib , The first three units are based on 1000 Calculated in units , The last three are 1024 Calculated .
Note that there is no space between numbers and units , for example :500mb That's right. , 500 mb The format is wrong ( There's a space in the middle ),-b The parameters must be the same as -o START Use a combination of
- -c Specify the number of lines to write to the dictionary file , Only in -o START Parameter , If a single dictionary exceeds the specified number of lines, it will be divided into two or more dictionary files . for example : -c 5000
- -d Limit the number of consecutive occurrences of the same character , -d 2 It means that one character is limited to appear continuously at most 2 It's like aabd,ccda.aaab It means more than 2 Consecutive characters limit .
- -e Define that string and stop generating passwords , for example : -e 999999 It means that the password is generated to 99999 Stop generating passwords when
- -i Change the output format , for example : The original input is aaa,aab,aac,aad Use it again -i after , Will become aaa,baa,caa,daa The format of
- -p Define password elements
- -q Read password elements
- -r The definition starts over somewhere
- -s The first password , From the password defined by yourself xxx Start
- -u: Ban printpercentage Threads . This should be the last choice
Four 、 Use cases
- Generate a 8 Bits contain upper and lower case letters 、 Numbers 、 A dictionary of common characters , And export to a file
[[email protected] ~]
# crunch 8 8 -f /root/crunch-3.6/charset.lst mixalpha-numeric-all-space -o mima-8wei.txt
transport
Out
junction
fruit
:
C
r
u
n
c
h
w
i
l
l
n
o
w
g
e
n
e
r
a
t
e
t
h
e
f
o
l
l
o
w
i
n
g
a
m
o
u
n
t
o
f
d
a
t
a:
5
9
7
0
7
8
3
8
8
1
6
0
1
5
6
2
5
b
y
t
e
s
5
6
9
4
1
8
3
2
3
6
6
M
B
5
5
6
0
7
2
5
8
G
B
5
4
3
0
3
T
B
5
3
P
B
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
Data volume 54303TB, The file is too large .
2、 Generate 10 Bit code , The format is “ Three lowercase letters + A symbol + Four Numbers + Two symbols ”, Limit the maximum number of consecutive occurrences of each lowercase letter 2 Time , Numbers appear continuously at most 3 Time
3、 Generate 8 Bit code , Each lowercase letter can appear up to two consecutive
边栏推荐
- Boost the development of digital economy and consolidate the base of digital talents - the digital talent competition was successfully held in Kunming
- EasyGBS主子码流都为H.265时,切换出现花屏如何解决?
- Dom4J解析XML、Xpath检索XML
- 原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中
- Lumiprobe phosphide hexaethylene phosphide specification
- nacos启动失败问题解决与总结
- 118. 杨辉三角
- The difference between indexof and includes
- 混沌工程平台 ChaosBlade-Box 新版重磅发布
- Lake shore optimag superconducting magnet system om series
猜你喜欢
![[to.Net] C set class source code analysis](/img/59/4c7b910bc6505e5f81015ce80812fc.png)
[to.Net] C set class source code analysis

正则表达式=Regex=regular expression

Solution and summary of Nacos startup failure

118. 杨辉三角

【森城市】GIS数据漫谈(一)

【Go ~ 0到1 】 第五天 7月1 类型别名,自定义类型,接口,包与初始化函数

Les canaux de culture intensive s'efforcent de développer Fu Xin et Wei Shi jiajie pour organiser une conférence de formation sur les nouveaux produits

论文阅读【Learning to Discretely Compose Reasoning Module Networks for Video Captioning】

uni-app微信小程序一键登录获取权限功能

【To .NET】C#集合类源码解析
随机推荐
赋能「新型中国企业」,SAP Process Automation 落地中国
Lumiprobe phosphide hexaethylene phosphide specification
Intensive cultivation of channels for joint development Fuxin and Weishi Jiajie held a new product training conference
云服务器ECS夏日省钱秘籍,这次@老用户快来领走
241. Different Ways to Add Parentheses
Methods of finding various limits
Lake Shore低温恒温器的氦气传输线
Download (export) PDF template file (such as approval form), and report error: invalid nested tag * * * found, expected closing tag***
Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
118. 杨辉三角
M91 fast hall measuring instrument - better measurement in a shorter time
[pytorch record] automatic hybrid accuracy training torch cuda. amp
论文阅读【Discriminative Latent Semantic Graph for Video Captioning】
What must be done in graduation season before going to Shanhai
求各种极限的方法
OpenCV视频质量检测--清晰度检测
win10下使用msys+vs2019编译ffmpeg源码
Introduction to relevant processes and functions of wechat official account development
[pytorch record] distributed training dataparallel and distributeddataparallel of the model
EasyGBS网络不稳定情况下重复请求视频拉流问题的优化