Configurable mask based on character class
#1
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.
Reply
#2
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
Reply
#3
This is silly, just use static characters instead of character classes.
Reply
#4
(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.
Reply
#5
(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.
Reply