Hugh Mungis
Hugh Mungis

Reputation: 11

Reverse hashcat mask

It is possible to use hashcat to generate a dictionary file based on a "mask" where the argument for hashcat looks like ?l?l?l?l?l?l?l?l for the pattern of an 8 char all lowercase passwords.

Other charsets looks like

?u = ABCDEFGHIJKLMNOPQRSTUVWXYZ
?d = 0123456789
?h = 0123456789abcdef
?H = 0123456789ABCDEF
?s = «space»!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
?a = ?l?u?d?s
?b = 0x00 - 0xff

I'm trying to do the opposite where I feed a dictionary file (like rockyou or something) into the script, and it will return the top 10 patterns.

Can this be done in bash?

Upvotes: 0

Views: 318

Answers (1)

Royce Williams
Royce Williams

Reputation: 1639

statsgen from the PACK toolkit will save masks by frequency to a file if you use its -o [outfile] option.

Upvotes: 0

Related Questions