Home > Products > Windows Passwords > Windows Password Recovery > Screenshots > Attacking hashes > Mask attack
Recovering Windows hashes - mask attack
New blog post
Farewell to Syskey!
Wireless Password Recovery 4.2.5
Support for NVidia Volta
Office password recovery tools
Support for new GPU devices, some improvements
Reset Windows Password v8.0
Support for domain cached credentials, new bootable environment

Articles and video

You may find it helpful to read our articles on Windows security and password recovery examples. Video section contains a number of movies about our programs in action

Windows Password Recovery - Mask attack

Mask attack

Mask attack is an irreplaceable tool when you know a fragment of the password or have any specific details about it. For example, when you know that the password consists of 12 characters and ends with the qwerty, it is obvious that searching the entire 12-character range of passwords is unreasonable. All what would be required in this case is to recover the first 6 characters of the sought password. That is what mask attack is for.

In our case, we could define the following mask: %c%c%c%c%c%cqwerty. That means that the program would serially check the following combinations: aaaaaaqwerty .. zzzzzzqwerty. If the original password is 'secretqwerty', it perfectly hits our range.

The mask entry field is used for setting the rule, by which the program will try to recover the password. If the mask is set correctly, below you will see the range of characters generated by the mask. User-defined masks can be saved to disk. You can also use the mask tool to generate a dictionary (may not be available in some editions).

The mask syntax is quite trivial and consists of static (unmodifiable) and dynamic (modifiable) characters or sets. Dynamic characters/sets always have a leading %. For example, if you set the mask secret%d(1-100), the program will generate 100 passwords (secret1, secret2: secret100).

Windows Password Recovery supports the following dynamic mask sets:

  • %c  lower-case Latin characters (a..z), 26 symbols
  • %C  upper-case Latin characters (A..Z), 26 symbols
  • %#  full set of special characters (!..~ space), total 33 symbols
  • %@  small set of special characters (!@#$%^&*()-_+= space), 15 symbols
  • %?  all printable characters with ASCII codes of 32..127
  • %* all ASCII characters (codes 1 through 255)
  • %d  one digit (0..9)
  • %d(x-y)  numbers between x and y inclusive
  • %r(x-y)  user-defined characters with serial UNICODE codes between x and y
  • %r(x1-y1,x2-y2...xn-yn)  set of several non-overlapping sequences of UNICODE characters.
  • %1[..9](min-max) user-defined range of variable length (from min to max) to brute-force. You can set up to 9 your own custom character sets.
  • %%  standalone static character %
When setting %r, keep in mind that the range of defined OEM characters (with character code greater than 127) is generated using the DOS encoding. 

test%d - will generate password range test0..test9, 10 passwords total
test%d(1980-2007) - test1980..test2007, 28 passwords
test%r(0x0600-0x06FF) - 256 passwords with Arabic character at the end
%#test%# - _test_..~test~, 1089 passwords
admin%1(1-5) - admina .. adminzzzzz, where %1 is user defined charset 1 (a..z)
%1%1%1pin%2%2%2 - aaapin000 .. zzzpin999, %1 is user character set a..z and %2 is second user-defined charset which contains characters 0..9

By switching to Dictionary generator tab, you can generate your own dictionary by a given mask, and save it to disk. However this feature available in Advanced edition of the program only.

Third tab of the mask options contains a short description of the mask syntax and a couple of simple examples.