rules.... just append with the append rule $\x00 16 times and then truncate the password
my.rule
The problem here might only be, what should happen with passwords longer than 16 ? but I guess these aren't that common (of course this depends on the user base).
for mask attacks, you can use the hashcat mask file support (.hcmask): all lines within your hcmask file have a mask with a mask length of exactly 16 bytes (also see --hex-charset option etc). see https://hashcat.net/wiki/doku.php?id=mas...mask_files and https://hashcat.net/faq#what_is_a_hashcat_mask_file
my.rule
Code:
$\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 $\x00 'G
The problem here might only be, what should happen with passwords longer than 16 ? but I guess these aren't that common (of course this depends on the user base).
for mask attacks, you can use the hashcat mask file support (.hcmask): all lines within your hcmask file have a mask with a mask length of exactly 16 bytes (also see --hex-charset option etc). see https://hashcat.net/wiki/doku.php?id=mas...mask_files and https://hashcat.net/faq#what_is_a_hashcat_mask_file