hashcat Forum

Full Version: Configurable mask based on character class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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=mas...mask_files.

PS: Nice nick
This is silly, just use static characters instead of character classes.
(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=mas...mask_files.

PS: Nice nick

This is cool!
Thank you.
(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.