hashcat常用命令

破解word(password.txt为常用密码字典)

1. office2john.py 11.docx > hash.txt
2. awk -F ":" '{print $2}' hash.txt > hashhc.txt
3. hashcat -a 3  -m 9600 hashhc.txt -o output.txt
或者 有字典
3. hashcat -a 3  -m 9600 hashhc.txt password.txt -o output.txt --show


破解压缩文件(password.txt为常用密码字典)

1. 生成hash文件
7z2john 11.zip > hash.txt (运行7z2john的时候可能会报错,显示缺少算法模块lzma。安装该模块即可sudo apt install libcompress-raw-lzma-perl)
2. 修改hash文件
修改前
7zdecrypt.txt.7z:$7z$2$19$0$$8$1628f11dfc0f2e320000000000000000$2940131417$48$46
修改后
$7z$2$19$0$$8$1628f11dfc0f2e320000000000000000$2940131417$48$46
3. hashcat -m 11600 hash.txt -o output.txt


破解linux root密码

1. 查看/etc/shadow中root密码
root:$6$PQTSU/Qm$YMSthJ.QnYA1LOU2R3bS7YTsC5vsFkbMJTdCR3yD3uNzEJm8DtuVhEn68P.MGvVUk1lGR9t1n6LpoDPhMjuTu1:19557:0:99999:7:::
2. 保存到hash.txt
将$6$PQTSU/Qm$YMSthJ.QnYA1LOU2R3bS7YTsC5vsFkbMJTdCR3yD3uNzEJm8DtuVhEn68P.MGvVUk1lGR9t1n6LpoDPhMjuTu1   保存至hash.txt
3. hashcat -a 3 -m 1800 /hash.txt -o /output.txt


1-8位纯数字密码破解
hashcat -m 9600 hash -a 3 --increment --increment-min 1 --increment-max 8 ?d?d?d?d?d?d?d?d -o output.txt


1-8 位小写字母破解
hashcat -m 9600 hash -a 3 --increment --increment-min 1 --increment-max 8 ?l?l?l?l?l?l?l?l -o output.txt


8 位小写字母破解
hashcat -m 9600 hash -a 3 ?l?l?l?l?l?l?l?l -O -o output.txt


1-8 位大写字母破解
hashcat -m 9600 hash -a 3 --increment --increment-min 1--increment-max 8 ?u?u?u?u?u?u?u?u -o output.txt


8 位大写字母破解
hashcat -m 9600 hash -a 3 ?u?u?u?u?u?u?u?u –O -o output.txt


5 位小写+大写+数字+特殊字符破解
hashcat -m 9600 hash -a 3 ?b?b?b?b?b -o output.txt


对数据库中取出的md5加密字段值解密
hashcat -a 3 -m 0 8fabd2b9e983f97ae2aa84cffc67c13c  ?b?b?b?b?b?b -o output.txt

文件类型对应的代码
https://hashcat.net/wiki/doku.php?id=example_hashes

  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值