hashcat Forum
Line length exception with example MD5 hash? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: Line length exception with example MD5 hash? (/thread-6908.html)



Line length exception with example MD5 hash? - deady1000 - 09-29-2017

Hello,


I have got a simple problem and cannot find the mistake.
Since today my hashcat gives me "length exception"-errors when I try to crack the example MD5 hash from the FAQ.

0
MD5
8743b52063cd84097a65d1633f5c74f5

I pasted the hash with a hexeditor in a file (16 Bytes)
Code:
87 43 B5 20 63 CD 84 09 7A 65 D1 63 3F 5C 74 F5
and called it md5.hash

I use

Code:
hashcat64.exe -a 3 -m 0 md5.hash ?a?a?a?a?a?a?a

pause

I do everything like said in the faq. What is causing this error?
The mode is set on brute-force with 7 characters.
Hashcat does not even try to brute it.
Seem that the hash_mode does not fit the hash...

Code:
C:\Users\xxxxxxx>hashcat64.exe -a 3 -m 0 md5.hash ?a?a?a?a?a?a?a
hashcat (v3.6.0) starting...

* Device #1: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU

Hashfile 'md5.hash' on line 1 (çCÁ c═ä  zeÐc?\t§): Line-length exception
No hashes loaded.

Started: Fri Sep 29 09:03:44 2017
Stopped: Fri Sep 29 09:03:44 2017

C:\Users\xxxxxxx>pause



RE: Line length exception with example MD5 hash? - TofuBoy22 - 09-29-2017

just paste the hash into the file using notepad/notepad++ etc. By using your hex editor, you are giving hashcat something else different


RE: Line length exception with example MD5 hash? - deady1000 - 09-29-2017

Ok thank you now it can read the hash-files.

I have got another problem. I use passwords in vera-crypt that contail special characters
Code:
€²³ºÄÖÜßäöü

They are inside:
Code:
\charsets\special\German\de_cp1252-special.hcchr

But even when I create a vera-crypt container with password "ö", AES, SHA512 --> Hashcat cant crack it with:
Code:
hashcat64.exe -a 3 -m 13721 test.hash ?1 -1 charsets/standard/German/de_cp1252.hcchr
pause

I don't understand that.
How do I make hashcat understand these characters?


RE: Line length exception with example MD5 hash? - philsmd - 09-29-2017

Hashcat, like any other cracker I know and also all underlying hash algorithm, work with bytes.
If you use a UTF-8 password which is 2 bytes long, your mask also must be 2 bytes.

Therefore to troubleshoot your problem you must:
1. use more than just length 1 (at least to test), e.g. --increment -1 charsets/standard/German/de_cp1252.hcchr ?1?1?1?1
2. try with different encodings.... how do you know that veracrypt uses cp1252 encoding? ... my guess is that it rather uses utf-8 instead


RE: Line length exception with example MD5 hash? - deady1000 - 09-29-2017

Ok it did not work at all with "ßßßß" and "?1?1?1?1" etc.

The problem is more basic I guess.
I just created a new container with vera-crypt
[Image: unbenannt2-vert.jpg]

and it just failed again with:
Code:
hashcat64.exe -a 3 -m 13721 test.hash ?a
pause

The password was:
Code:
a

How come that hashcat can't even crack this one?
I used hash_mode -m 13721 like it says in FAQ for SHA512 and pure AES.


No surprise that hashcat can't deal with "ß" when it can't even crack "a".

Quote:C:\Users\xxx>hashcat64.exe -a 3 -m 13721 test.hash a
hashcat (v3.6.0) starting...

* Device #1: WARNING! Kernel exec timeout is not disabled.
            This may cause "CL_OUT_OF_RESOURCES" or related errors.
            To disable the timeout, see: https://hashcat.net/q/timeoutpatch
OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU

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

Applicable optimizers:
* Zero-Byte
* Single-Hash
* Single-Salt
* Brute-Force
* Uses-64-Bit

Watchdog: Temperature abort trigger set to 90c
Watchdog: Temperature retain trigger set to 75c

The wordlist or mask that you are using is too small.
This means that hashcat cannot use the full parallel power of your device(s).
Unless you supply more work, your cracking speed will drop.
For tips on supplying more work, see: https://hashcat.net/faq/morework

Approaching final keyspace - workload adjusted.

Cracking performance lower than expected? Append -w 3 to the commandline.

Session..........: hashcat
Status...........: Exhausted
Hash.Type........: VeraCrypt PBKDF2-HMAC-SHA512 + XTS 512 bit
Hash.Target......: test.hash
Time.Started.....: Fri Sep 29 12:47:42 2017 (7 secs)
Time.Estimated...: Fri Sep 29 12:47:49 2017 (0 secs)
Guess.Mask.......: a [1]
Guess.Queue......: 1/1 (100.00%)
Speed.Dev.#1.....:        0 H/s (0.39ms)
Recovered........: 0/1 (0.00%) Digests, 0/1 (0.00%) Salts
Progress.........: 1/1 (100.00%)
Rejected.........: 0/1 (0.00%)
Restore.Point....: 1/1 (100.00%)
Candidates.#1....: a -> a
HWMon.Dev.#1.....: Temp: 52c Fan: 42% Util: 88% Core:2037MHz Mem:4714MHz Bus:16

Started: Fri Sep 29 12:47:39 2017
Stopped: Fri Sep 29 12:47:50 2017



RE: Line length exception with example MD5 hash? - philsmd - 09-29-2017

OP did open a new thread. Therefore the discussion continues here: https://hashcat.net/forum/thread-6910-post-36848.html