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

Macos run error. #3121

Closed
mlinton opened this issue Jan 10, 2022 · 4 comments
Closed

Macos run error. #3121

mlinton opened this issue Jan 10, 2022 · 4 comments
Labels

Comments

@mlinton
Copy link

mlinton commented Jan 10, 2022

I am attempting to run hashcat compiled and run on Macos Monterey with GPU acceleration, and it is throwing an error regarding some kernel file not existing. I first attempted an install with homebrew which didn't work, and then this is from the latest github version.

OS information (a macos VM in qemu):
image

hashcat (v6.2.5-108-ge18d16bc6) 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.

OpenCL API (OpenCL 1.2 (Oct  1 2021 19:40:58)) - Platform #1 [Apple]
====================================================================
* Device #1: Intel Core 2 Duo P9xxx (Penryn Class Core 2), skipped
* Device #2: AMD Radeon RX Vega 64 Compute Engine, 8064/8176 MB (2044 MB allocatable), 64MCU

Benchmark relevant options:
===========================
* --backend-devices=2
* --opencl-device-types=2
* --optimized-kernel-enable

-----------------------
* Hash-Mode 1000 (NTLM)
-----------------------

/Users/user/.cache/hashcat/kernels/shared.77c81869.kernel: No such file or directory

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

Started: Mon Jan 10 11:42:01 2022
Stopped: Mon Jan 10 11:42:05 2022

Post hashcat -I output

❯ hashcat -I
hashcat (v6.2.5-108-ge18d16bc6) starting in backend information mode

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

OpenCL Platform ID #1
  Vendor..: Apple
  Name....: Apple
  Version.: OpenCL 1.2 (Oct  1 2021 19:40:58)

  Backend Device ID #1
    Type...........: CPU
    Vendor.ID......: 8
    Vendor.........: Intel
    Name...........: Intel Core 2 Duo P9xxx (Penryn Class Core 2)
    Version........: OpenCL 1.2
    Processor(s)...: 32
    Clock..........: 3500
    Memory.Total...: 32786 MB (limited to 4098 MB allocatable in one block)
    Memory.Free....: 16361 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2
    Driver.Version.: 1.1

  Backend Device ID #2
    Type...........: GPU
    Vendor.ID......: 1
    Vendor.........: AMD
    Name...........: AMD Radeon RX Vega 64 Compute Engine
    Version........: OpenCL 1.2
    Processor(s)...: 64
    Clock..........: 1630
    Memory.Total...: 8176 MB (limited to 2044 MB allocatable in one block)
    Memory.Free....: 8064 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2
    Driver.Version.: 1.2 (Oct 14 2021 00:44:23)
@mlinton mlinton added the bug label Jan 10, 2022
@matrix
Copy link
Member

matrix commented Jan 12, 2022

@mlinton please use the binary from the github cloned folder, without using "make install", only "make"

@singe
Copy link

singe commented Jan 13, 2022

This can be simply fixed by running:
mkdir -p ~/.cache/hashcat/kernels/

You'll note the error message is complaining about that directory not existing. This creates it.

@matrix
Copy link
Member

matrix commented Jan 13, 2022

This can be simply fixed by running: mkdir -p ~/.cache/hashcat/kernels/

You'll note the error message is complaining about that directory not existing. This creates it.

Hi, I think the problem in this case is another. I would try with -D 1 to understand in the meantime if it works by selecting the CPU. He will most likely also have to create the directories as you indicate :)

@matrix
Copy link
Member

matrix commented Jan 28, 2022

@mlinton free to re-open this issue if you want to share more details

@matrix matrix closed this as completed Jan 28, 2022
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

3 participants