hashview-old icon indicating copy to clipboard operation
hashview-old copied to clipboard

Support for Mask Files

Open binarytraveler opened this issue 7 years ago • 2 comments

Feature request for support for mask files.

-a3 hashfile

... could be added to the control subdirectory along with the existing rules directory

-a3 runlisthashes.txt quickscan.hcmask

binarytraveler avatar Mar 11 '17 19:03 binarytraveler

engineering reminder: if we implement this feature, we'll need to run hashcat on each mask to compute keyspace since the --keyspace option doesnt support mask files.

ccammilleri avatar May 19 '17 20:05 ccammilleri

Maybe it is possible to implement the upload and processing of hcmask files by utilizing 'Task Groups'.

For each uploaded hcmask file, you would create a new task group. Then you would start parsing the masks like ?d?d?d?d line by line from the uploaded hcmask file. For each line, add a new task entry to the previously created task group.

Things to consider:

  • Task name should correspond to the mask itsself (so if a line in an hcmask file contains ?l?l?l?l .. just set the task name respectively to ?l?l?l?l)
  • By adhering to the above naming convention, each new task creation needs to search the database and check, whether the mask has already been created. If not, create the new mask task by issuing a request to '/tasks/create'. If the mask has already been created (e.g. through an earlier upload or custom insert), search for the entry in the database, get its ID and append the task to the task group by issuing a request to '/task_groups/assign_task?id=1&task_id=1337'.

Finally we would be able to upload hcmask files and use the hereby created task groups to execute a mask attack for our hashes. Could be a simple wordaround.

Since each mask would be processed as a single job, users would be able to skip the processing of a mask by hitting 'cancel' at the displayed 'Job Queue'.

Cheers

l4rm4nd avatar Nov 28 '19 14:11 l4rm4nd