How to add repetition of the same letter combination on a mask?
#1
Question 
Hello, I would like to generate passwords that follow this pattern
<3 capital letters> <same 3 letters undercase> <same 3 letters undercase> <same 3 letters undercase>_9

which would generate (skipping AAAaaa... and other repetitive permutations)
ABCabcabcabc_9
ABDabdabdabd_9
...

So always the same 3 letters repeated four times (those 3 letters all possible combinations of the alphabet, so from AAAaaaaaaaaa_1 to ZZZzzzzzzzzz_1 and everything in between).

I'm thinking the repetition should decrease the amount of iterations that would be needed to find the match.

I have read the docs on the wiki, but could find how would I reflect this repetition in a mask for hashcat (rule based attack seems the closest thing to it, but I can't still wrap my head around it).

If you could point me in the right direction with an example, I'd appreciate it. Thanks.
Reply
#2
(04-05-2025, 09:10 PM)ecomorph Wrote: Hello, I would like to generate passwords that follow this pattern
<3 capital letters> <same 3 letters undercase> <same 3 letters undercase> <same 3 letters undercase>_9

which would generate (skipping AAAaaa... and other repetitive permutations)
ABCabcabcabc_9
ABDabdabdabd_9
...

So always the same 3 letters repeated four times (those 3 letters all possible combinations of the alphabet, so from AAAaaaaaaaaa_1 to ZZZzzzzzzzzz_1 and everything in between).

I'm thinking the repetition should decrease the amount of iterations that would be needed to find the match.

I have read the docs on the wiki, but could find how would I reflect this repetition in a mask for hashcat (rule based attack seems the closest thing to it, but I can't still wrap my head around it).

If you could point me in the right direction with an example, I'd appreciate it. Thanks.

There's probably several ways to do it, but if you create a list of 3-letter words, all in lowercase, you could use a rule file on that list with the rules

p3 T0 T1 T2 $_ $0
p3 T0 T1 T2 $_ $1
p3 T0 T1 T2 $_ $2
p3 T0 T1 T2 $_ $3
p3 T0 T1 T2 $_ $4
p3 T0 T1 T2 $_ $5
p3 T0 T1 T2 $_ $6
p3 T0 T1 T2 $_ $7
p3 T0 T1 T2 $_ $8
p3 T0 T1 T2 $_ $9

That will duplicate the word 3 times, uppercase the first 3 and the add _<number>
Reply