hashcat Forum

Full Version: Mask attack question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I'm trying to run a mask attack and would like to get your advice regarding the best approach for this.

Let's say I have the following candidates:

alpha12345678
beta1234
gamma849233
...

I'm currently running 3 separate commands, something like:

./hashcat -m 11300 -w 4 -a 3 hash alpha?d?d?d?d?d?d?d?d
./hashcat -m 11300 -w 4 -a 3 hash beta?d?d?d?d
./hashcat -m 11300 -w 4 -a 3 hash gamma?d?d?d?d?d?d?d

My questions:

1. How can I remove the need to run 3 separate commands and work maybe with a file that will contain all prefixes?
2. How can I define an 'up to X chars/digits' in my mask attack? I'd like to check between 3-8 digits for example

Thanks!
You can put masks in a file:

alpha?d?d?d?d?d?d?d?d
beta?d?d?d?d
gamma?d?d?d?d?d?d?d

... and then use the filename in your command:

./hashcat -m 11300 -w 4 -a 3 hash masks.txt

You can also use -i (increment) with masks, but the incrementing may happen in a way that you're not expecting - give it a try.
(11-24-2020, 08:43 PM)royce Wrote: [ -> ]You can put masks in a file:

alpha?d?d?d?d?d?d?d?d
beta?d?d?d?d
gamma?d?d?d?d?d?d?d

... and then use the filename in your command:

./hashcat -m 11300 -w 4 -a 3 hash masks.txt

You can also use -i (increment) with masks, but the incrementing may happen in a way that you're not expecting - give it a try.

Thanks! That helps.

How does the increment work? What do you mean it may work in a way that I do not expect?