字典生成工具crunch的安装以及使用

python生成字典真的太慢了

kali自带的crunch超级快

虽然kali自带了crunch

但是这里我好像想使用centos下使用

于是

首先需要去下载crunch安装包(https://sourceforge.net/projects/crunch-wordlist/

然后下载到的安装包拷贝进linux

-rw-r--r--  1 root root 38635 Jun  7 07:53 crunch-3.6.tgz

解压它:

tar -xvf crunch-3.6.tgz

进入到crunch-3.6路径下

cd crunch-3.6/

编译:

[root@node00 ~]# make

然后就可以看到

多出来一个可执行的文件crunch

-rw-r--r-- 1 root root   5616 Mar 17  2013 charset.lst
-rw-r--r-- 1 root root  18092 Mar 17  2013 COPYING
-rwxr-xr-x 1 root root  70544 Jun  7 15:57 crunch
-rw-r--r-- 1 root root  16176 May 17  2014 crunch.1
-rw-r--r-- 1 root root 116916 May 17  2014 crunch.c
-rw-r--r-- 1 root root   3414 May  3  2014 Makefile
-rw-r--r-- 1 root root    128 Mar 17  2013 unicode_test.lst

我们可以试一下该命令:

[root@node00 crunch-3.6]# ./crunch
crunch version 3.6

Crunch can create a wordlist based on criteria you specify.  The outout from crunch can be sent to the screen, file, or to another program.

Usage: crunch <min> <max> [options]
where min and max are numbers

Please refer to the man page for instructions and examples on how to use crunch.

说明是成功安装好了

只是唯一不足的是此时不是能够作为全局使用的命令,添加一下环境变量就行了

export PATH=$PATH:/root/crunch-3.6

注意的是这个需要跟自己的crunch安装包的位置有关,我这里是放在/root/下的。

可以看一下效果:

[root@node00 crunch-3.6]# crunch
crunch version 3.6

Crunch can create a wordlist based on criteria you specify.  The outout from crunch can be sent to the screen, file, or to another program.

Usage: crunch <min> <max> [options]
where min and max are numbers

Please refer to the man page for instructions and examples on how to use crunch.

既然安装好了,我们简单试一下效果吧:

[root@node00 crunch-3.6]# crunch 2 5 1234567890 -o password.txt
Crunch will now generate the following amount of data: 654300 bytes
0 MB
0 GB
0 TB
0 PB
Crunch will now generate the following number of lines: 111100 

crunch: 100% completed generating output

这里试生成长度为2-5的数字,我把结果追加到了一个txt文件方便我们查看

-rw-r--r-- 1 root root 654300 Jun  7 16:14 password.txt

这里我们生成的全是数字,要是想要字幕可以使用

crunch 2 5 1234567890qwertyuiopasdfghjklzxcvbnm -o password.txt

以此类推,不过需要谨慎一点,生成的文件可能很大,特别是长度如果设置长一些,动辄就是tb级别和gb级别了

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值