Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hashcat failed to use GPUs found in macbook pro 2019, even though recognized when using hashcat -I #3502

Open
mtnrabi opened this issue Nov 5, 2022 · 3 comments
Labels

Comments

@mtnrabi
Copy link

mtnrabi commented Nov 5, 2022

Bug description and how to re-produce
When trying to crack a hash, I can see that hashcat defaults to using my CPU, and not my GPU(s).
Log:

hashcat -m 22000 -a 3 -d 3 file.hc22000 "?d?d?d?d?d?d?d?d"
hashcat (v6.2.6) starting

METAL API (Metal 306.2.4)
=========================
* Device #1: Intel(R) UHD Graphics 630, skipped
* Device #2: AMD Radeon Pro 5500M, skipped

OpenCL API (OpenCL 1.2 (Sep 30 2022 01:37:53)) - Platform #1 [Apple]
====================================================================
* Device #3: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz, 16352/32768 MB (4096 MB allocatable), 16MCU
* Device #4: Intel(R) UHD Graphics 630, skipped
* Device #5: AMD Radeon Pro 5500M Compute Engine, skipped

When trying to choose one of the GPUs, I'm getting an error.
When using -d 4,5:

hashcat -m 22000 -a 3 -d 4,5 file.hc22000 "?d?d?d?d?d?d?d?d"
hashcat (v6.2.6) starting

No devices found/left.

Started: Sat Nov  5 15:32:36 2022
Stopped: Sat Nov  5 15:32:36 2022

When using -D 2:

hashcat -m 22000 -a 3 -D 2 file.hc22000 "?d?d?d?d?d?d?d?d"  
hashcat (v6.2.6) starting

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

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

METAL API (Metal 306.2.4)
=========================
* Device #1: Intel(R) UHD Graphics 630, skipped
* Device #2: AMD Radeon Pro 5500M, skipped

OpenCL API (OpenCL 1.2 (Sep 30 2022 01:37:53)) - Platform #1 [Apple]
====================================================================
* Device #3: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz, skipped
* Device #4: Intel(R) UHD Graphics 630, 704/1536 MB (192 MB allocatable), 24MCU
* Device #5: AMD Radeon Pro 5500M Compute Engine, 3968/4080 MB (1020 MB allocatable), 24MCU

Minimum password length supported by kernel: 8
Maximum password length supported by kernel: 63

Hashes: 1 digests; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates

Optimizers applied:
* Zero-Byte
* Single-Hash
* Single-Salt
* Brute-Force
* Slow-Hash-SIMD-LOOP

Watchdog: Temperature abort trigger set to 100c

/Users/matanrabi/.cache/hashcat/kernels/shared.83c4ee58.kernel: No such file or directory

* Device #4: Kernel /usr/local/Cellar/hashcat/6.2.6/share/hashcat/OpenCL/shared.cl build failed.

Started: Sat Nov  5 15:33:34 2022
Stopped: Sat Nov  5 15:33:35 2022

Expected behavior
Being able to use the GPUs appropriately, since they are recognized by hashcat...

Hardware/Compute device:

  • Compute device name: Macbook pro 2019 16'
  • OpenCL/CUDA driver name: Not sure... how can I tell?
  • OpenCL/CUDA driver version: Not sure... how can I tell?
  • OpenCL/CUDA driver source: Not sure... how can I tell?

Hashcat version (please complete the following information):

  • OS: MacOS Ventura 13.0
  • Distribution: MacOS Ventura 13.0
  • Version: 6.2.6

Post hashcat -I output

hashcat -I
hashcat (v6.2.6) starting in backend information mode

Metal Info:
===========

Metal.Version.: 306.2.4

Backend Device ID #1
  Type...........: GPU
  Vendor.ID......: 2
  Vendor.........: Apple
  Name...........: Intel(R) UHD Graphics 630
  Processor(s)...: 1
  Clock..........: N/A
  Memory.Total...: 1536 MB (limited to 1024 MB allocatable in one block)
  Memory.Free....: 704 MB
  Local.Memory...: 32 KB
  Phys.Location..: built-in
  Feature.Set....: macOS GPU Family 2 v1
  Registry.ID....: 1942
  Max.TX.Rate....: N/A
  GPU.Properties.: headless 0, low-power 1, removable 0

Backend Device ID #2
  Type...........: GPU
  Vendor.ID......: 2
  Vendor.........: Apple
  Name...........: AMD Radeon Pro 5500M
  Processor(s)...: 1
  Clock..........: N/A
  Memory.Total...: 4080 MB (limited to 3060 MB allocatable in one block)
  Memory.Free....: 3968 MB
  Local.Memory...: 32 KB
  Phys.Location..: built-in
  Feature.Set....: macOS GPU Family 2 v1
  Registry.ID....: 1999
  Max.TX.Rate....: N/A
  GPU.Properties.: headless 0, low-power 0, removable 0

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

OpenCL Platform ID #1
  Vendor..: Apple
  Name....: Apple
  Version.: OpenCL 1.2 (Sep 30 2022 01:37:53)

  Backend Device ID #3
    Type...........: CPU
    Vendor.ID......: 8
    Vendor.........: Intel
    Name...........: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Version........: OpenCL 1.2 
    Processor(s)...: 16
    Clock..........: 2300
    Memory.Total...: 32768 MB (limited to 4096 MB allocatable in one block)
    Memory.Free....: 16352 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 1.1

  Backend Device ID #4
    Type...........: GPU
    Vendor.ID......: 8
    Vendor.........: Intel Inc.
    Name...........: Intel(R) UHD Graphics 630
    Version........: OpenCL 1.2 
    Processor(s)...: 24
    Clock..........: 1200
    Memory.Total...: 1536 MB (limited to 192 MB allocatable in one block)
    Memory.Free....: 704 MB
    Local.Memory...: 64 KB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 1.2(Oct 12 2022 20:48:21)

  Backend Device ID #5
    Type...........: GPU
    Vendor.ID......: 1
    Vendor.........: AMD
    Name...........: AMD Radeon Pro 5500M Compute Engine
    Version........: OpenCL 1.2 
    Processor(s)...: 24
    Clock..........: 95
    Memory.Total...: 4080 MB (limited to 1020 MB allocatable in one block)
    Memory.Free....: 3968 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 1.2 (Oct 12 2022 20:53:00)
@mtnrabi mtnrabi added the bug label Nov 5, 2022
@defragmentator
Copy link

defragmentator commented Nov 27, 2022

Os: MacOS BigSur 11.7.1 (20G918)

 Metal Info:
===========

Metal.Version.: 244.303

Backend Device ID #1
  Type...........: GPU
  Vendor.ID......: 2
  Vendor.........: Apple
  Name...........: AMD Radeon Pro 570X
  Processor(s)...: 1
  Clock..........: N/A
  Memory.Total...: 4096 MB (limited to 3072 MB allocatable in one block)
  Memory.Free....: 3968 MB
  Local.Memory...: 32 KB
  Phys.Location..: built-in
  Feature.Set....: macOS GPU Family 2 v1
  Registry.ID....: 1558
  Max.TX.Rate....: N/A
  GPU.Properties.: headless 0, low-power 0, removable 0

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

OpenCL Platform ID #1
  Vendor..: Apple
  Name....: Apple
  Version.: OpenCL 1.2 (Aug 29 2022 02:56:50)

  Backend Device ID #2
    Type...........: CPU
    Vendor.ID......: 8
    Vendor.........: Intel
    Name...........: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
    Version........: OpenCL 1.2
    Processor(s)...: 6
    Clock..........: 3000
    Memory.Total...: 28672 MB (limited to 3584 MB allocatable in one block)
    Memory.Free....: 14304 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2
    Driver.Version.: 1.1

  Backend Device ID #3
    Type...........: GPU
    Vendor.ID......: 1
    Vendor.........: AMD
    Name...........: AMD Radeon Pro 570X Compute Engine
    Version........: OpenCL 1.2
    Processor(s)...: 28
    Clock..........: 1000
    Memory.Total...: 4096 MB (limited to 1024 MB allocatable in one block)
    Memory.Free....: 3968 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2
    Driver.Version.: 1.2 (Sep 29 2022 20:15:22)

same error:

/.cache/hashcat/kernels/shared.361d3e6c.kernel: No such file or directory

* Device #3: Kernel /usr/local/Cellar/hashcat/6.2.6/share/hashcat/OpenCL/shared.cl build failed.
*

@matrix
Copy link
Member

matrix commented Dec 9, 2022

Hi @mtnrabi, please retry with github master

@Wes974
Copy link

Wes974 commented Jul 22, 2024

Hello, I had the same issue with hashcat 6.2.6 on the same Mac model but after testing with master it was working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants