07-21-2022, 09:25 AM
https://hashcat.net/wiki/doku.php?id=fre..._mask_file states:
So your # should work. It's weird you are getting an "Invalid mask." error
Code:
There are 4 important syntax rules:
if you use \, the comma will be seen by *hashcat as a literal character, i.e. the backward slash escapes the comma (which would otherwise be seen as a separator between the different fields: -1, -2, -3, -4 and the mask)
if you use # at the beginning of the line, the line will be treated as a comment and hence ignored
if you use \# at the beginning of the line, the # will be used literally as a character (since the backward slash escapes the # which otherwise would be seen as a comment)
if you want to use a question mark (“?”, without quotes) within your mask or within your custom charsets, you need to escape it with an additional question mark, i.e. ?? means that the question mark is used as a literal symbol
So your # should work. It's weird you are getting an "Invalid mask." error