德国黑客使用租用的计算机资源攻击散列算法

一个德国安全爱好者使用租用的计算机资源来破解用 SHA1 散列算法生成的单向散列。而这种随用随付的计算机资源破解一个 SHA1 散列只需 2 美元。

Thomas Roth 使用基于 GPU 的付费计算机资源来暴力破解 SHA1 散列。密码专家警告说,最少在五年以后,SHA-1 就已经不能被认为是安全的散列算法,Roth 的实验的意义不在于他达到了什么目的、用了哪种攻击方式(实际上只是暴力破解),而是他使用了先进的技术。

像这样以前需要全世界花费数月时间、大量人力物力的项目,现在只需一人用租用的计算机资源在几分钟内就可以完成,而且只需花费区区 2 美元。他用这点钱就租用到了一堆极强的图形处理器,并使用 Cuda-Multiforcer 破解了密码。

以下为详细说明:

As of today, Amazon EC2 is providing what they call “Cluster GPU Instances”:  An instance in the Amazon cloud that provides you with the power of two NVIDIA Tesla “Fermi” M2050 GPUs. The exact specifications look like this:

22 GB of memory
33.5 EC2 Compute Units (2 x Intel Xeon X5570, quad-core “Nehalem” architecture)
2 x NVIDIA Tesla “Fermi” M2050 GPUs
1690 GB of instance storage
64-bit platform
I/O Performance: Very High (10 Gigabit Ethernet)
API name: cg1.4xlarge

GPUs are known to be the best hardware accelerator for cracking passwords, so I decided to give it a try: How fast can this instance type be used to crack SHA1 hashes?

Using the CUDA-Multiforce, I was able to crack all hashes from this file with a password length from 1-6 in only 49 Minutes (1 hour costs 2.10$ by the way.):

  1. Compute done: Reference time 2950.1 seconds  
  2. Stepping rate: 249.2M MD4/s  
  3. Search rate: 3488.4M NTLM/s  

This just shows one more time that SHA1 for password hashing is deprecated – You really don’t want to use it anymore! Instead, use something like scrypt or PBKDF2! Just imagine a whole cluster of this machines (Which is now easy to do for anybody thanks to Amazon) cracking passwords for you, pretty comfortable  Large scaling password cracking for everybody!

If I find the time, I’ll write a tool which uses the AWS-API to launch on-demand password-cracking instances with a preconfigured AMI. Stay tuned either via RSS or via Twitter.

Installation Instructions:

I used the “Cluster Instances HVM CentOS 5.5 (AMI Id: ami-aa30c7c3)” machine image as provided by Amazon (I choosed the image because it was the only one with CUDA support built in.) and selected “Cluster GPU (cg1.4xlarge, 22GB)” as the instance type. After launching the instance and SSHing into it, you can continue by installing the cracker:

I decided to install the “CUDA-Multiforcer” in version 0.7, as it’s the latest version of which the source is available. To compile it, you first need to download the “GPU Computing SDK code samples”:

  1. # wget 
  2. http://developer.download.nvidia.com/compute/cuda/3_2/
  3. sdk/gpucomputingsdk_3.2.12_linux.run
  4. # chmod +x gpucomputingsdk_3.2.12_linux.run  
  5. # ./gpucomputingsdk_3.2.12_linux.run  
  6. (Just press enter when asked for the installation directory and the CUDA directory.)  

#p#

Now we need to install the g++ compiler:

  1. # yum install automake autoconf gcc-c++  

The next step is compiling the libraries of the SDK samples:

  1. # cd ~/NVIDIA_GPU_Computing_SDK/C/  
  2. # make lib/libcutil.so  
  3. # make shared/libshrutil.so 

Now it’s time to download and compile the CUDA-Multiforcer:

  1. # cd ~/NVIDIA_GPU_Computing_SDK/C/  
  2. # wget http://www.cryptohaze.com/releases/CUDA-Multiforcer-src-0.7.tar.bz2 -O src/CUDA-Multiforcer.tar.bz2  
  3. # cd src/  
  4. # tar xjf CUDA-Multiforcer.tar.bz2  
  5. # cd CUDA-Multiforcer-Release/argtable2-9/  
  6. # ./configure && make && make install  
  7. # cd ../  

As the Makefile of the CUDA-Multiforcer doesn’t work out of the box, we need to open it up and find the line

  1. CCFILES := -largtable2 -lcuda  

Replace CCFILES with LINKFLAGS so that the line looks like this:

  1. LINKFLAGS := -largtable2 -lcuda  

And type make. If everything worked out, you should have a file ~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/CUDA-Multiforcer right now. You can try the Multiforcer by doing something like this:

  1. # export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH  
  2. # export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH  
  3. # cd ~/NVIDIA_GPU_Computing_SDK/C/src/CUDA-Multiforcer-Release/  
  4. # ../../bin/linux/release/CUDA-Multiforcer -h SHA1 -f test_hashes/Hashes-SHA1-Full.txt –min=1 –max=6 -c charsets/charset-upper-lower-numeric-symbol-95.chr  

Congratulations, you now have a fully working, CUDA-based hash-cracker running on an Amazon EC2 instance.

【编辑推荐】

  1. 加密的最高境界:一百年无法破解的密码
  2. 破解“蘑菇”病毒很简单!
  3. 破解Svchost.exe进程之谜
  4. 破解IIS 6.0默认设置安全性的终极秘籍

 

文章来源网络,作者:管理,如若转载,请注明出处:https://shuyeidc.com/wp/134699.html<

(0)
管理的头像管理
上一篇2025-03-01 06:54
下一篇 2025-03-01 06:56

相关推荐

  • 自建服务器和租用到底哪个更坑,哪个更划算?

    自建服务器和租用服务器,哪个更坑?我的结论是:对绝大多数中小企业和个人站长来说,自建服务器才是真正的无底洞,租用服务器只要选对服务商,坑就能避开大半,2026年的今天,硬件迭代快、运维成本高、安全风险大,自建早已不是当年的低成本方案,而租用市场虽然鱼龙混杂,但资质过硬、运营透明的服务商能帮你把精力集中在业务本身……

    2026-07-26
    0
  • 高防服务器按流量收费的坑有哪些?,怎么避坑?

    高防服务器按流量收费最大的坑,是攻击流量直接转化为账单,选择不当会让你为打进来的DDoS攻击买单,费用远超预期,流量收费的三大陷阱按流量计费看似灵活,但针对高防场景,这个模式隐藏着不少专业用户才懂的坑,不少服务商利用用户对流量计费的认知盲区,把防御成本转嫁给你,攻击流量计入账单,防御变“付费演出”多数按流量收费……

    2026-07-26
    0
  • 新手做站群选服务器有哪些常见误区,怎么避免?

    新手做站群选服务器,最普遍的误区是把价格放在第一位,忽略IP纯净度、带宽质量和机房资质,这些才是决定站群长期稳定性的核心因素,我见过不少从零起步的站长,手里握着十几个站点,第一反应就是上网找“最便宜”的服务器,结果跑了两周,网站被关联封禁,IP被墙,甚至整个机器被拉黑,选服务器不是买白菜,站群对底层资源的要求比……

    2026-07-25
    0
  • 做泛目录站群用什么服务器最合适,站群服务器哪家好

    做泛目录站群,最合适的服务器是高防、多IP、大带宽的独立服务器,且必须选择有正规资质和自营机房的IDC服务商,简米科技和酷番云凭借多年行业积累和完备牌照,是值得优先考虑的选择,泛目录站群对服务器的核心要求泛目录站群技术通过多域名、多IP构建大量目录页面,以获取搜索引擎收录和流量,这种方式对服务器提出了与传统网站……

    2026-07-25
    0
  • 短视频直播推流如何选择大带宽服务器,哪家性价比高?

    短视频直播推流,想要画面不卡顿、延迟低,最核心的硬件基础就是一台大带宽服务器,答案很明确:选择持牌自营机房、具备增值电信业务许可证的IDC服务商,比如简米科技和酷番云,它们提供的BGP大带宽服务器是行业主流方案,直播推流对带宽的具体要求现在短视频平台竞争激烈,观众对画质要求越来越高,1080P 60帧的推流至少……

    2026-07-25
    0

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注