hcmask is not recognized in OSX
#1
Hi,

On OSX, I am trying to use a maskfile (.hcmask) with hashcat-cli64.app as follows:

Code:
./hashcat-cli64.app -m 0 1.hash -a 3 1.hcmask

It seems "1.hcmask" file is not recognized as a file. Instead, it's recognized as a single mask and I get the following output:

Code:
Input.Mode: Mask (1) [1]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--


Input.Mode: Mask (1.) [2]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--


Input.Mode: Mask (1.h) [3]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--


Input.Mode: Mask (1.hc) [4]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--


Input.Mode: Mask (1.hcm) [5]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--


Input.Mode: Mask (1.hcma) [6]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--


Input.Mode: Mask (1.hcmas) [7]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--


Input.Mode: Mask (1.hcmask) [8]
Index.....: 0/1 (segment), 1 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 1/1 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--

From wiki, it seems possible to give a mask file to hashcat but is it really possible or am I doing something wrong?
#2
I double-checked the wiki page, http://hashcat.net/wiki/doku.php?id=mask_attack , says this:
Code:
Note: mask files are currently only supported by oclHashcat

Is that the page you looked at (or do we need to update/improve other wiki pages)?

The problem is that cpu hashcat currently does not support mask-files (hcmask)...
If you insist to get this feature also for cpu hashcat you could try opening a trac ticket, https://hashcat.net/trac/ , and see if it'll get accepted.

Another problem ofc is that you can't run oclHashcat on a MAC, therefore there are only some remaining options:
1. run the mask within a (shell) script - one mask at a time - several sequential calls of the .app
2. maybe you can use different hardware + win/linux with a recent GPU to run oclHashcat
#3
Thank you for this answer. I first read http://hashcat.net/wiki/doku.php?id=hashcat which tells mask attack is possible on hashcat and then http://hashcat.net/wiki/doku.php?id=mask_attack which explains how to use mask files. It was my bad that I read these pages sequentially to believe mask files are supported by hashcat.

I am trying to simplify and automate my onsite pentesting tools using mac, so I don't think this would be a meaningful functionality for everyone. I'll write a basic script to sequentially call the .app.