hashcat Forum
Mask attack question - 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: Mask attack question (/thread-9660.html)



Mask attack question - xabbix - 11-24-2020

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!


RE: Mask attack question - royce - 11-24-2020

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.


RE: Mask attack question - xabbix - 11-24-2020

(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?