首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >hashcat跳过gpu,即使它识别了设备并安装了驱动程序

hashcat跳过gpu,即使它识别了设备并安装了驱动程序
EN

Security用户
提问于 2021-12-16 08:48:18
回答 1查看 6.2K关注 0票数 3

我试图在MacBook Pro上运行hashcat。

运行hashcat -I以检查设备的信息结果:

代码语言:javascript
运行
复制
hashcat (v6.2.5-38-g8b61f60e8) starting in backend information mode

OpenCL Info:
============

OpenCL Platform ID #1
  Vendor..: Apple
  Name....: Apple
  Version.: OpenCL 1.2 (Aug 11 2021 00:46:43)

  Backend Device ID #1
    Type...........: CPU
    Vendor.ID......: 8
    Vendor.........: Intel
    Name...........: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Version........: OpenCL 1.2 
    Processor(s)...: 12
    Clock..........: 2600
    Memory.Total...: 16384 MB (limited to 2048 MB allocatable in one block)
    Memory.Free....: 8160 MB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 1.1

  Backend Device ID #2
    Type...........: GPU
    Vendor.ID......: 8
    Vendor.........: Intel Inc.
    Name...........: Intel(R) UHD Graphics 630
    Version........: OpenCL 1.2 
    Processor(s)...: 24
    Clock..........: 1150
    Memory.Total...: 1536 MB (limited to 192 MB allocatable in one block)
    Memory.Free....: 704 MB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 1.2(Oct 12 2021 18:42:39)

  Backend Device ID #3
    Type...........: GPU
    Vendor.ID......: 1
    Vendor.........: AMD
    Name...........: AMD Radeon Pro 560X Compute Engine
    Version........: OpenCL 1.2 
    Processor(s)...: 16
    Clock..........: 300
    Memory.Total...: 4096 MB (limited to 1024 MB allocatable in one block)
    Memory.Free....: 3968 MB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 1.2 (Oct 12 2021 18:37:05)

Hashcat正确地识别了这三种设备(1 CPU +2 GPU),并显示安装了最新版本的OpenCL驱动程序。如果我以基准测试模式运行它,它也正确地显示了所有三个设备:

代码语言:javascript
运行
复制
hashcat -b
hashcat (v6.2.5-38-g8b61f60e8) starting in benchmark mode

Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.

* Device #2: Apple's OpenCL drivers (GPU) are known to be unreliable.
             You have been warned.

* Device #3: Apple's OpenCL drivers (GPU) are known to be unreliable.
             You have been warned.

OpenCL API (OpenCL 1.2 (Aug 11 2021 00:46:43)) - Platform #1 [Apple]
====================================================================
* Device #1: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz, 8160/16384 MB (2048 MB allocatable), 12MCU
* Device #2: Intel(R) UHD Graphics 630, 704/1536 MB (192 MB allocatable), 24MCU
* Device #3: AMD Radeon Pro 560X Compute Engine, 3968/4096 MB (1024 MB allocatable), 16MCU

Benchmark relevant options:
===========================
* --opencl-device-types=1,2,3
* --optimized-kernel-enable

然而,它只使用CPU。如果我试图强迫它使用设备#2 (使用选项-D 2),它将显示以下消息:

代码语言:javascript
运行
复制
* Device #2: Not enough allocatable device memory for this attack.

如果我试图强迫它使用第二个GPU (设备#3),它会提示:

代码语言:javascript
运行
复制
No devices found/left.

即使之前正确识别了这个设备。

是什么导致了这个问题?

EN

回答 1

Security用户

发布于 2022-03-30 10:32:38

尝试使用-d 3 -D 2标志运行。

  1. -D 2将强制hashcat只查找GPU。(-D用于指定设备类型)
  2. -d 3将强制它使用Radeon 560 X计算引擎。(-d用于指定后端设备号)

我没有看到他们已经分别尝试了这些选项,但是我正在和有同样问题的人讨论不和,当两个旗子一起使用时,这个问题就解决了。

票数 2
EN
页面原文内容由Security提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://security.stackexchange.com/questions/258038

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档