我试图在MacBook Pro上运行hashcat。
运行hashcat -I
以检查设备的信息结果:
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驱动程序。如果我以基准测试模式运行它,它也正确地显示了所有三个设备:
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
),它将显示以下消息:
* Device #2: Not enough allocatable device memory for this attack.
如果我试图强迫它使用第二个GPU (设备#3),它会提示:
No devices found/left.
即使之前正确识别了这个设备。
是什么导致了这个问题?
发布于 2022-03-30 10:32:38
尝试使用-d 3 -D 2
标志运行。
-D 2
将强制hashcat只查找GPU。(-D
用于指定设备类型)-d 3
将强制它使用Radeon 560 X计算引擎。(-d
用于指定后端设备号)我没有看到他们已经分别尝试了这些选项,但是我正在和有同样问题的人讨论不和,当两个旗子一起使用时,这个问题就解决了。
https://security.stackexchange.com/questions/258038
复制相似问题