当前位置:网站首页>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
边栏推荐
猜你喜欢

uni-app商品分类
使用环信提供的uni-app Demo,快速实现一对一单聊

Lake shore M91 fast hall measuring instrument

Once the SQL is optimized, the database query speed is increased by 60 times

Flutter 实战-快速实现音视频通话应用

Dlib+Opencv库实现疲劳检测

Enabling "new Chinese enterprises", SAP process automation landing in China

从零开始学 MySQL —数据库和数据表操作

The intelligent epidemic prevention system provides safety guarantee for the resumption of work and production at the construction site

MySQL common graphics management tools | dark horse programmers
随机推荐
学习笔记【gumbel softmax】
pickle. Load error [attributeerror: can't get attribute 'volatile' on < module '\u main']
Shell高级进阶
Dlib+Opencv库实现疲劳检测
English语法_形容词/副词3级 -注意事项
MySQL common graphics management tools | dark horse programmers
Learning records of building thingsboard, an Internet of things platform
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
MFC中如何重绘CListCtrl的表头
【pytorch记录】自动混合精度训练 torch.cuda.amp
【pytorch记录】模型的分布式训练DataParallel、DistributedDataParallel
Learning notes - steps of JDBC connection database operation
uni-app微信小程序一键登录获取权限功能
ffmpeg AVFrame 转 cv::Mat
Solidity - contract structure - error - ^0.8.4 NEW
OpenCV视频质量检测--清晰度检测
nacos配置文件发布失败,请检查参数是否正确的解决方案
MATLAB中subplot函数的使用
新版国标GB28181视频平台EasyGBS如何配置WebRTC视频流格式播放?
从零开始学 MySQL —数据库和数据表操作