Hashcat beta on ubuntu 18.04
#1
Hello. I tried to install hashcat on ubuntu 18.04, but the problem is that when i try to run it, i have problem with rocm (because i have radeon rx 560) so a lot of people recommended to try hashcat beta,. How it work? what i have to do for use it?
Reply
#2
download. extract. enter folder. run (e.g. hashcat -b)

you only need to have 7-Zip installed to unpack the .7z file
Reply
#3
URL: https://hashcat.net/beta/
Reply
#4
(04-01-2020, 09:00 AM)philsmd Wrote: download. extract. enter folder. run (e.g. hashcat -b)







you only need to have 7-Zip installed to unpack the .7z file



and that is what i did!! But i have the same problem as i got on normal hashact... i report down the steps i did:







Code:
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21



p7zip Version 16.02 (locale=it_IT.UTF-8,Utf16=on,HugeFiles=on,64 bits,12 CPUs AMD Ryzen 5 2600X Six-Core Processor            (800F82),ASM,AES-NI)







Scanning the drive for archives:



1 file, 5820797 bytes (5685 KiB)







Extracting archive: hashcat-5.1.0+1764.7z



--



Path = hashcat-5.1.0+1764.7z



Type = 7z



Physical Size = 5820797



Headers Size = 14400



Method = LZMA2:27 LZMA:20 BCJ2



Solid = +



Blocks = 2







   



Would you like to replace the existing file:



  Path:    ./hashcat-5.1.0/OpenCL/inc_comp_multi.h



  Size:    0 bytes



  Modified: 2020-03-20 17:21:53



with the file from archive:



  Path:    hashcat-5.1.0/OpenCL/inc_comp_multi.h



  Size:    0 bytes



  Modified: 2020-04-01 10:26:28



? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? y







                                             



Would you like to replace the existing file:



  Path:    ./hashcat-5.1.0/OpenCL/inc_comp_multi_bs.h



  Size:    0 bytes



  Modified: 2020-03-20 17:21:53



with the file from archive:



  Path:    hashcat-5.1.0/OpenCL/inc_comp_multi_bs.h



  Size:    0 bytes



  Modified: 2020-04-01 10:26:28



? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? y







                                                 



Would you like to replace the existing file:



  Path:    ./hashcat-5.1.0/OpenCL/inc_comp_single.h



  Size:    0 bytes



  Modified: 2020-03-20 17:21:53



with the file from archive:



  Path:    hashcat-5.1.0/OpenCL/inc_comp_single.h



  Size:    0 bytes



  Modified: 2020-04-01 10:26:28



? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit? a







Everything is Ok                                     







Folders: 43



Files: 1832



Size:      127629220



Compressed: 5820797







then when i use hashcat -b i have this issues:

can u explain me how to fix it? (ps: i have a radeon rx 560)





Code:
:~/Scaricati$ sudo hashcat -b


hashcat (v5.1.0) 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.







OpenCL Platform #1: Advanced Micro Devices, Inc.



================================================



* Device #1: gfx803, 1740/2048 MB allocatable, 14MCU







Benchmark relevant options:



===========================



* --optimized-kernel-enable







Hashmode: 0 - MD5







Speed.#1.........:  4297.0 MH/s (53.76ms) @ Accel:512 Loops:128 Thr:256 Vec:1







Hashmode: 100 - SHA1







Speed.#1.........:  1603.2 MH/s (72.55ms) @ Accel:256 Loops:128 Thr:256 Vec:1







Hashmode: 1400 - SHA2-256







Speed.#1.........:  685.1 MH/s (84.95ms) @ Accel:256 Loops:64 Thr:256 Vec:1







Hashmode: 1700 - SHA2-512







Speed.#1.........:  210.7 MH/s (69.16ms) @ Accel:128 Loops:32 Thr:256 Vec:1







Hashmode: 2500 - WPA-EAPOL-PBKDF2 (Iterations: 4096)







clBuildProgram(): CL_BUILD_PROGRAM_FAILURE







/usr/bin/OpenCL/comgr-b51631/input/CompileSource:1016:15: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



__kernel void m02500_aux3 (KERN_ATTR_TMPS_ESALT (wpa_pbkdf2_tmp_t, wpa_eapol_t))



              ^



/usr/bin/OpenCL/comgr-b51631/input/CompileSource:1016:15: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



/usr/bin/OpenCL/comgr-b51631/input/CompileSource:1016:15: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



/usr/bin/OpenCL/comgr-b51631/input/CompileSource:1016:15: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



/usr/bin/OpenCL/comgr-b51631/input/CompileSource:1016:15: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



/usr/bin/OpenCL/comgr-b51631/input/CompileSource:1016:15: warning: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



6 warnings generated.



warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering



6 warnings generated.



lld: error: undefined hidden symbol: sha1_hmac_init_global_swap



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_init)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_init)







lld: error: undefined hidden symbol: sha1_hmac_final



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_init)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_init)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux1)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux1)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux1)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux1)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux2)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux2)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux2)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux2)







lld: error: undefined hidden symbol: sha256_hmac_init_64



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)







lld: error: undefined hidden symbol: sha256_hmac_final



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)



>>> referenced by /usr/bin/OpenCL/comgr-dbec69/input/linked.bc.o:(m02500_aux3)



Error: Creating the executable from LLVM IRs failed.







* Device #1: Kernel /usr/bin/OpenCL/m02500-pure.cl build failed - proceeding without this device.







Started: Wed Apr  1 16:41:47 2020



Stopped: Wed Apr  1 16:42:38 2020
Reply
#5
so many problems with what you do

1. do not ever try to replace one hashcat installation with another in the same folder. use different folders (all these "Would you like to replace the existing file" should really ring your alarm clocks)
2. why use sudo. do not use sudo
3. you do not run the new version by using "hashcat", but you need to run the local version "./hashcat"
4. why not just uninstall the old version, if you have problems to distinguish them ?
5. "hashcat (v5.1.0) starting in benchmark mode" is clearly the wrong version (see error #3)

etc etc

It seems that you are really new to linux if you make such noobish errors. Maybe you should just stick to the windows operating system ? hashcat doesn't really run faster on linux compared to linux (in general), so the operating system doesn't matter that much (only the drivers etc).
Reply
#6
(04-01-2020, 06:18 PM)philsmd Wrote: so many problems with what you do

1. do not ever try to replace one hashcat installation with another in the same folder. use different folders (all these "Would you like to replace the existing file" should really ring your alarm clocks)
2. why use sudo. do not use sudo
3. you do not run the new version by using "hashcat", but you need to run the local version "./hashcat"
4. why not just uninstall the old version, if you have problems to distinguish them ?
5. "hashcat (v5.1.0) starting in benchmark mode" is clearly the wrong version (see error #3)

etc etc

It seems that you are really new to linux if you make such noobish errors. Maybe you should just stick to the windows operating system ? hashcat doesn't really run faster on linux compared to linux (in general), so the operating system doesn't matter that much (only the drivers etc).

Really yes, i'm new on linux.. i am learning to use it. Ok so i removed all directories and file that contained hashcat
then if i use this:
Code:
locate hashcat
 terminal give me back :

/home/fede/naive-hashcat
/home/fede/Scaricati/hashcat-5.1.0
/usr/bin/hashcat
/usr/bin/hashcat.dictstat2
/usr/bin/hashcat.hcstat2
/usr/bin/hashcat.hctune
/usr/bin/hashcat.log
/usr/bin/hashcat64.bin

It's a problem??
 then i installed again hashcat beta and launched --benchamark:

Code:
fede@fede-UB:~/Scaricati/hashcat-5.1.0$ hashcat -b

Comando «hashcat» non trovato, ma può essere installato con:

sudo apt install hashcat

fede@fede-UB:~/Scaricati/hashcat-5.1.0$ ./hashcat -b
bash: ./hashcat: File o directory non esistente
fede@fede-UB:~/Scaricati/hashcat-5.1.0$ sudo hashcat -b
sudo: hashcat: comando non trovato
fede@fede-UB:~/Scaricati/hashcat-5.1.0$ sudo hashcat64.bin -b
hashcat (v5.1.0) 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.

OpenCL Platform #1: Advanced Micro Devices, Inc.
================================================
* Device #1: gfx803, 1740/2048 MB allocatable, 14MCU

Benchmark relevant options:
===========================
* --optimized-kernel-enable

Hashmode: 0 - MD5

Speed.#1.........:  4552.3 MH/s (50.60ms) @ Accel:512 Loops:128 Thr:256 Vec:1

Hashmode: 100 - SHA1

Speed.#1.........:  1600.3 MH/s (72.55ms) @ Accel:256 Loops:128 Thr:256 Vec:1

Hashmode: 1400 - SHA2-256

Speed.#1.........:  704.2 MH/s (82.55ms) @ Accel:256 Loops:64 Thr:256 Vec:1

Hashmode: 1700 - SHA2-512

Speed.#1.........:  210.1 MH/s (69.16ms) @ Accel:128 Loops:32 Thr:256 Vec:1

Hashmode: 2500 - WPA-EAPOL-PBKDF2 (Iterations: 4096)

clBuildProgram(): CL_BUILD_PROGRAM_FAILURE


....
....

OpenCL/inc_vendor.h:119:18: note: expanded from macro 'DECLSPEC'
#define DECLSPEC inline static
                ^
30 warnings and 650 errors generated.
Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).

* Device #1: Kernel /usr/bin/OpenCL/m02500-pure.cl build failed - proceeding without this device.

Return problem just with OpenCL that i don't have, i installed just ROCm.
how i can fix it?
Reply
#7
this has nothing to do with the beta


only if you download, extract, enter and run "./hashcat" (with the ./ at the beginning) you are running the beta
Reply
#8
(04-01-2020, 08:54 PM)philsmd Wrote: this has nothing to do with the beta


only if you download, extract, enter and run "./hashcat" (with the ./ at the beginning) you are running the beta
it tells me that there are no files or directories when i use " ./ " before hashcat
Reply
#9
there is clearly a hashcat binary file in the archive and you execute this executable like this:
Code:
./hashcat.bin -b
Reply
#10
(04-01-2020, 09:26 PM)philsmd Wrote: there is clearly a hashcat binary file in the archive and you execute this executable like this:
Code:
./hashcat.bin -b
thanks you so much, now it work. Another one question, do you know when i install gpu driver for amd what command i have to pass to terminal when i'm doing the installation ? because there's a lot of option for install it... as:
amdgpu-install; amdgpu-pro-install; pal and legacy opencl; amdgpu-pro-install with opengl or just rocm.. etc, but i don't know what i have to choose for my rx 560. Maybe you can help me.
Reply