欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

[kali] kali 字典生成工具-紧缩和 Cewl 参数

最编程 2024-05-05 07:42:09
...
min-len 最小长度
max-len 最大长度
charset string 字符集
-b number[type] 指定输出文件大小配合-O START使用
-C number 指定输出文件大小的行数-O START使用
-d numbersymbol 限制字符重复字数 -d 2@
-e string 遇到字符提前停止
-f charset.lst 指定字符集
-i 反序输出
-o 输出生成的密码到指定的文件
-p Tells crunch to generate words that don't have repeating characters.
-q Tells crunch to read filename.txt and permute what is read.
-r Tells crunch to resume generate words from where it left off.
-s 从指定的字符开始
-t 定义密码的输出格式 @代表小写字母 ,代表大写字母 %代表数字 ^代表符号
-u The -u option disables the printpercentage thread. This should be the last option.
-z 压缩生成的字典文件,有效的参数是gzip, bzip2, lzma, and 7z,其中gzip压缩最快,bzip2压缩速度比gzip慢单压缩效率比gzip好,7z压缩速度最慢,但是压缩效效率最高
1、爆破身份证后六位

生成最小六位,最大六位的密码且都由0123456789中的10个数字组成 (需要生成空格则写成"0123456789 ",9后面有一个空格)

crunch 6 6 0123456789

在这里插入图片描述

将输出的字典输出到文件中

crunch crunch 6 6 0123456789 >>/root/桌面/pass.txt

在这里插入图片描述

2、生成个人信息的字典

例如:李四的姓名,年龄,生日,生活城市等(前面的最大和最小长度必须要输入,不过对结果不影响)

crunch 3 3 -p lisi 21 2000 0914 beijing

在这里插入图片描述

3、 生成以2021开头的7位纯数字密码
crunch 7 7  -t 2018%%%

其中%代表所有的数字,@代表所有的小写字母,逗号代表所有大写字母
在这里插入图片描述

Cewl

kali里是自带的,可直接食用

简介

ewl是一款采用Ruby开发的应用程序,你可以给它的爬虫指定URL地址和爬取深度,还可以添加额外的外部链接,接下来Cewl会给你返回一个txt字典文件,你可以把字典用到类似John the Ripper,hydra九头蛇这样的密码破解工具中。

基本指令
cewl http://xxx.xxx.xxx.xxx/(指定的url地址)

根据指定的URL和深度进行爬取,然后打印出可用于密码破解的字典

参数

--keep, -k: keep the downloaded file                                     #保存下载的文件    

--depth x, -d x: depth to spider to, default 2                       #网站爬取深度,默认为2,建议不要太大    

--min_word_length, -m: minimum word length, default 3   #字典的最小单词长度,如果小于此不收入字典    

--offsite, -o: let the spider visit other sites                          #让爬虫爬取其他站点,针对外链的    

--write, -w file: write the output to the file                           #爬取的内容输出到文件    

--ua, -u user-agent: user agent to send                             #使用useragent,这个可以突破简单防御    

--no-words, -n: don't output the wordlist                            #不要输出字典    

--meta, -a include meta data                                                #包含网页中的meta数据    

--meta_file file: output file for meta data                           #为meta数据输出个文件    

--email, -e include email addresses                                 #包含email地址    

--email_file file: output file for email addresses                #输出email地址    

--meta-temp-dir directory: the temporary directory used by exiftool when parsing files, default /tmp

--count, -c: show the count for each word found             #展示发现的每个单词的数量    

Authentication

    --auth_type: digest or basic

    --auth_user: authentication username

    --auth_pass: authentication password

Proxy Support

    --proxy_host: proxy host

    --proxy_port: proxy port, default 8080

    --proxy_username: username for proxy, if required

    --proxy_password: password for proxy, if required

Headers

    --header, -H: in format name:value - can pass multiple

--verbose, -v: verbose

URL: The site to spider.

爬取母校页面信息生成字典并保存到文件
cewl https://xxx.xxx.xxx.xxx/ -w /root/桌面/du.txt

在这里插入图片描述

在这里插入图片描述

如果显示进度就用-v参数
如果你想生成指定长度的密码字典,你可以使用-m选项来设置
增加爬取深度可以使用-d选项来指定爬取深度,默认的爬取深度为2;
生成包含数字和字符的字典,可以在命令中使用 --with-numbers选项
代理URL
如果目标网站设置了代理服务器的话,Cewl将无法使用默认命令来生成字典。此时你需要使用proxy option选项来启用代理URL功能
cewl -v -m 6 -d 3 https://www.xxx.com/ -w /root/桌面/du.txt

在这里插入图片描述
在这里插入图片描述
文件内容
在这里插入图片描述
生成包含数字和字符的字典文件

cewl https://www.jxuspt.com/ -w /root/桌面/du.txt --with-numbers

在这里插入图片描述
在这里插入图片描述