当前位置:网站首页>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
边栏推荐
- Native JS creates a calendar - supports mouse wheel scrolling to select months - and can be ported to any framework
- Detailed explanation of JUnit unit test framework
- 241. Different Ways to Add Parentheses
- 采集抖音视频
- IPv4地址、子网掩码、网关
- ES6中的代理proxy
- 大厂音视频职位面试题目--今日头条
- The difference between indexof and includes
- Lake shore M91 fast hall measuring instrument
- The use of subplot function in MATLAB
猜你喜欢
案例分享:QinQ基本组网配置
寶,運維100+服務器很頭疼怎麼辦?用行雲管家!
Shell高级进阶
AAAI2020: Real-time Scene Text Detection with Differentiable Binarization
Cdga | if you are engaged in the communication industry, you should get a data management certificate
Extensive reading of the paper [film: visual reasoning with a general condition layer]
Dom4j parsing XML, XPath retrieving XML
Once the SQL is optimized, the database query speed is increased by 60 times
Lake shore M91 fast hall measuring instrument
Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!
随机推荐
Shell高级进阶
Detailed explanation of JUnit unit test framework
Lumiprobe phosphide hexaethylene phosphide specification
【pytorch记录】模型的分布式训练DataParallel、DistributedDataParallel
白盒加密技术浅理解
精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会
ffmpeg 错误码
Lake shore M91 fast hall measuring instrument
The intelligent epidemic prevention system provides safety guarantee for the resumption of work and production at the construction site
nacos启动失败问题解决与总结
What must be done in graduation season before going to Shanhai
[info() method in org.slf4j.logger]
音频编解码基础知识
OpenCV视频质量诊断----视频遮挡诊断
GB28181之SIP协议
寶,運維100+服務器很頭疼怎麼辦?用行雲管家!
Lake Shore低温恒温器的氦气传输线
Team up to learn! 14 days of Hongmeng equipment development "learning, practicing and testing" practical camp, free of charge!
H264编码profile & level控制
大厂音视频职位面试题目--今日头条