hashcat Forum
Configurable mask based on character class - 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: Configurable mask based on character class (/thread-10307.html)



Configurable mask based on character class - rocquefort - 08-31-2021

Is there a way for determining the class of character which should be incremented in a configurable way?

For example, let's suppose the following mask:
  • ?u?l?l?l?l?l?l?l?l?d?d?d?d?d?s

Given the aforementioned mask, I'd like to increment:
  • ?l?l?l?l?l?l?l?l from 2 to 8 (?l?l <-> ?l?l?l?l?l?l?l?l), and;
  • ?d?d?d?d from 2 to 4 (?d?d <-> ?d?d?d?d).

Uppercase first letter (?u) will never increment (there is only one, always existing in the beginning), as well as the symbol, which always exists at the end of each attempt.

Visually, this attack should look like this:
  • ?u | ?l?l <-> ?l?l?l?l?l?l?l?l | ?d?d <-> ?d?d?d?d | ?s (pipe works only as a delimiter in order to facilitate view).

Thank you.


RE: Configurable mask based on character class - Xanadrel - 08-31-2021

Default -i behaviour won't do that, you can however do it by generating all possible masks to a file and use that mask file with hashcat: https://hashcat.net/wiki/doku.php?id=mask_attack#hashcat_mask_files.

PS: Nice nick


RE: Configurable mask based on character class - epixoip - 08-31-2021

This is silly, just use static characters instead of character classes.


RE: Configurable mask based on character class - rocquefort - 08-31-2021

(08-31-2021, 02:18 AM)Xanadrel Wrote: Default -i behaviour won't do that, you can however do it by generating all possible masks to a file and use that mask file with hashcat: https://hashcat.net/wiki/doku.php?id=mask_attack#hashcat_mask_files.

PS: Nice nick

This is cool!
Thank you.


RE: Configurable mask based on character class - rocquefort - 08-31-2021

(08-31-2021, 02:29 AM)epixoip Wrote: This is silly, just use static characters instead of character classes.

You're right. Once I got the hang of hcmask files I realized using character classes in this approach wouldn't be necessary.