37

褥资本主义羊毛:使用Google的免费GPU破解哈希

 5 years ago
source link: https://www.freebuf.com/geek/195453.html?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

*本文作者:r0yanx,本文属 FreeBuf 原创奖励计划,未经许可禁止转载。

前言

Colab ( https://colab.research.google.com/ )是不久前Google 公开的一个Python Notebook 工具,支持包括TensorFlow、BigQuery、Google Drive 在内的Google 全家桶。GoogleColab提供了免费的GPUTesla K80为开发者提供免费的GPU来学习开发深度学习应用。面对如此强大的GPU,不由得产生了邪恶的想法,于是便尝试在上面安装hashcat测试哈希爆破,效果还可以。

6NRNBfV.jpg!web

操作步骤

1. 打开colab: https://colab.research.google.com/ ,新建一个Python 3记事本:

BjaeeuE.jpg!web

2. 添加GPU硬件加速器。

JbqEjm3.jpg!web

3. 安装 hashcat

! apt-get -y install hashcat

IrMFNrF.jpg!web

4. 查看GPU OpenCL 信息

! hashcat -I --opencl-info

zaeaInR.jpg!web

5. 测试 MD5破解

测试 8 位数字破解: 98765432 (bac76b0feb747e3bde11269cf367c97b)

! hashcat -m 0 -a3 bac76b0feb747e3bde11269cf367c97b ?d?d?d?d?d?d?d?d -i --increment-min 1

6s便完成了破解。

IjU3Mb7.jpg!web

再用一个不在字典里的密文来测试 1 – 8位纯数字的字典耗时: aaaa (74b87337454200d4d33f80c4663dc5e5)

! hashcat -m 0 -a3 74b87337454200d4d33f80c4663dc5e5 ?d?d?d?d?d?d?d?d -i --increment-min 1

UB7ZZb3.jpg!web

6. 测试 WPA 破解

先上点击左上角大于号展开侧栏,上传 WPA握手包。

n67R3qF.jpg!web

VJNJJzf.jpg!web

开始 8位纯数字WPA破解 ,并没有破解成功,耗时大概24分钟

! hashcat -m 2500 -a 3 f12.hccapx ?d?d?d?d?d?d?d?d -w 3

rU3YNvN.jpg!web

小结

1. hashcat 是一个支持使用 GPU进行密码破解的神器,支持多种哈希格式,详细使用方法可参考此文: https://www.freebuf.com/sectool/164507.html

2. colab的免费 GPU性能有限,相比某些土豪玩家的独显破解速度略显鸡肋,但是用来应急或者挂机”云破解”还是还是不错的。相比本人工作使用的是核显轻薄本,经简单测试速度至少快上一倍

3. 虽免费资源,合理使用,请勿滥用

4. 本文仅用于技术交流,请勿用作非法用途

*本文作者:r0yanx,本文属 FreeBuf 原创奖励计划,未经许可禁止转载。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK