06-25-2023, 03:56 AM
(06-25-2023, 02:58 AM)rodrigo.Brasil Wrote: Just to point out my example, I know I can do things like:
Code:--custom-charset1 ?u?l?d
?s?1?1?!?1
?1?s?1?!?1
?1?1?s?!?1
....
The point here is the permutation. If I try to make something more complex: Let's say I know my password have:
- One, and only one special character (in any place)
- One, and only one upper
- One, and only one lower
- and the rest are digits
How can I write this rule without having to write all the permutations possible?
Let me give it a go for your requirement.
Using mask:
?l?u?s?d?d?d?d?d
?u?s?l?d?d?d?d?d
?s?l?u?d?d?d?d?d
?l?s?u?d?d?d?d?d
?s?u?l?d?d?d?d?d
?u?l?s?d?d?d?d?d
?d?l?u?s?d?d?d?d
?d?u?s?l?d?d?d?d
?d?s?l?u?d?d?d?d
?D?l?s?u?d?d?d?d
?D?s?u?l?d?d?d?d
?D?u?l?s?d?d?d?d
?d?d?l?u?s?d?d?d
?d?d?u?s?l?d?d?d
?d?d?s?l?u?d?d?d
?d?d?l?s?u?d?d?d
?d?d?s?u?l?d?d?d
?d?d?u?l?s?d?d?d
.....
.....
?l?u?s just keep shift to right for every block.