Hashcat on VPS (CPU only)
#1
Hi folks,

I'm struggling a bit with running hashcat on VPS with KVM in CPU only mode.
I installed opencl from Intel and here are some major command's output:

clinfo:
Code:
Number of platforms                              2
  Platform Name                                  Intel(R) OpenCL
  Platform Vendor                                Intel(R) Corporation
  Platform Version                                OpenCL 1.2 LINUX
  Platform Profile                                FULL_PROFILE
  Platform Extensions                            cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_intel_vec_len_hint
  Platform Extensions function suffix            INTEL

  Platform Name                                  Clover
  Platform Vendor                                Mesa
  Platform Version                                OpenCL 1.1 Mesa 13.0.6
  Platform Profile                                FULL_PROFILE
  Platform Extensions                            cl_khr_icd
  Platform Extensions function suffix            MESA

  Platform Name                                  Intel(R) OpenCL
Number of devices                                1
  Device Name                                    Common KVM processor
  Device Vendor                                  Intel(R) Corporation
  Device Vendor ID                                0x8086
  Device Version                                  OpenCL 1.2 (Build 37)
  Driver Version                                  1.2.0.37
  Device OpenCL C Version                        OpenCL C 1.2
  Device Type                                    CPU
  Device Profile                                  FULL_PROFILE
  Max compute units                              2
  Max clock frequency                            0MHz
  Device Partition                                (core)
    Max number of sub-devices                    2
    Supported partition types                    by counts, equally, by names (Intel)
  Max work item dimensions                        3
  Max work item sizes                            8192x8192x8192
  Max work group size                            8192
  Preferred work group size multiple              <getWGsizes:494: create context : error -2>
  Preferred / native vector sizes               
    char                                                1 / 16     
    short                                                1 / 8     
    int                                                  1 / 4     
    long                                                1 / 2     
    half                                                0 / 0        (n/a)
    float                                                1 / 4     
    double                                              0 / 0        (n/a)
  Half-precision Floating-point support          (n/a)
  Single-precision Floating-point support        (core)
    Denormals                                    Yes
    Infinity and NANs                            Yes
    Round to nearest                              Yes
    Round to zero                                No
    Round to infinity                            No
    IEEE754-2008 fused multiply-add              No
    Support is emulated in software              No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support        (n/a)
  Address bits                                    64, Little-Endian
  Global memory size                              2101669888 (1.957GiB)
  Error Correction support                        No
  Max memory allocation                          525417472 (501.1MiB)
  Unified memory for Host and Device              Yes
  Minimum alignment for any data type            128 bytes
  Alignment of base address                      1024 bits (128 bytes)
  Global Memory cache type                        Read/Write
  Global Memory cache size                        524288
  Global Memory cache line                        64 bytes
  Image support                                  Yes
    Max number of samplers per kernel            480
    Max size for 1D images from buffer            32838592 pixels
    Max 1D or 2D image array size                2048 images
    Max 2D image size                            16384x16384 pixels
    Max 3D image size                            2048x2048x2048 pixels
    Max number of read image args                480
    Max number of write image args                480
  Local memory type                              Global
  Local memory size                              32768 (32KiB)
  Max constant buffer size                        131072 (128KiB)
  Max number of constant args                    480
  Max size of kernel argument                    3840 (3.75KiB)
  Queue properties                               
    Out-of-order execution                        Yes
    Profiling                                    Yes
    Local thread execution (Intel)                Yes
  Prefer user sync for interop                    No
  Profiling timer resolution                      1ns
  Execution capabilities                         
    Run OpenCL kernels                            Yes
    Run native kernels                            Yes
    SPIR versions                                1.2
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                               
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Device Extensions                              cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_intel_vec_len_hint

  Platform Name                                  Clover
Number of devices                                0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel(R) OpenCL
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)  Success [INTEL]
  clCreateContext(NULL, ...) [default]            <checkNullCtx:2241: create context with device from default platform : error -2>
  clCreateContext(NULL, ...) [other]              <error: no devices in non-default plaforms>
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices available in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices available in platform

ICD loader properties
  ICD loader Name                                OpenCL ICD Loader
  ICD loader Vendor                              OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1


lscpu:

Code:
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:  0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):            1
NUMA node(s):          1
Vendor ID:            GenuineIntel
CPU family:            15
Model:                6
Model name:            Common KVM processor
Stepping:              1
CPU MHz:              2599.998
BogoMIPS:              5199.99
Hypervisor vendor:    KVM
Virtualization type:  full
L1d cache:            32K
L1i cache:            32K
L2 cache:              4096K
L3 cache:              16384K
NUMA node0 CPU(s):    0,1

hashcat -I

Code:
hashcat (v3.30) starting...

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

OpenCL Info:

Platform ID #1
  Vendor  : Intel(R) Corporation
  Name    : Intel(R) OpenCL
  Version : OpenCL 1.2 LINUX

  Device ID #1
    Type          : CPU
    Vendor ID      : 8
    Vendor        : Intel(R) Corporation
    Name          : Common KVM processor
    Version        : OpenCL 1.2 (Build 37)
    Processor(s)  : 2
    Clock          : 0
    Memory        : 501/2004 MB allocatable
    OpenCL Version : OpenCL C 1.2
    Driver Version : 1.2.0.37

Platform ID #2
  Vendor  : Mesa
  Name    : Clover
  Version : OpenCL 1.1 Mesa 13.0.6

Note, that I also tried HC 4 and 5 but none of this seemed to work.
I tried running a benchmark like this:

Code:
nism0@smoke:~$ hashcat -b -D1
hashcat (v3.30) starting in benchmark mode...

clGetDeviceIDs(): CL_DEVICE_NOT_FOUND

OpenCL Platform #1: Intel(R) Corporation
========================================
* Device #1: Common KVM processor, 501/2004 MB allocatable, 2MCU

OpenCL Platform #2: Mesa, skipped or no OpenCL compatible devices found

Hashtype: MD4

clCreateContext(): CL_UNKNOWN_ERROR

Started: Mon Jan 13 14:53:03 2020
Stopped: Mon Jan 13 14:53:04 2020
nism0@smoke:~$

Any help would be apprecieated.
Reply
#2
undeath edit: removed completely useless and excessive quote

I have to add "--force" on mine to get it to run on Intel at all... but I don't have hc 3.3 to test with I'm afraid.
Reply
#3
--force does not work either...
Reply
#4
Why would you even think about using these old versions of hashcat ?

Do not use --force

uninstall all the non-vendor drivers (the open source drivers like Mesa/Pocl etc)

Try to fix the clinfo error first, clinfo clearly says it failed to use this device

Code:
clCreateContext(NULL, ...) [default]            <checkNullCtx:2241: create context with device from default platform : error -2>

clCreateContext failed with error code -2

even a tool as simple as clinfo failed to use your devices

What hardware do you even use ?

You should probably better test with release, or beta version from https://hashcat.net/beta), not with older versions of hashcat.
Reply