1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

tools/benchmark_deep.pl use benchmark_mask from module if defined

This commit is contained in:
jsteube 2023-01-11 22:34:15 +00:00
parent f77a21dec7
commit f940c7f073

View File

@ -507,6 +507,7 @@ sub get_module
my $is_binary = 0;
my $pw_min = -1;
my $pw_max = -1;
my $benchmark_mask = undef;
my $path = sprintf ("src/modules/module_%05d.c", $hash_type);
@ -542,11 +543,16 @@ sub get_module
{
$pw_max = $1;
}
if ($line =~ /BENCHMARK_MASK *= \"(.*)\"/)
{
$benchmark_mask = $1;
}
}
close (IN);
my $mask = $default_mask;
my $mask = (defined $benchmark_mask) ? $benchmark_mask : $default_mask;
if ($pw_min != -1)
{