mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-16 17:42:04 +00:00
Fix test.pl single mode if password is '0'
This commit is contained in:
parent
7538e82b72
commit
2afb4e0f36
@ -115,8 +115,8 @@ sub single
|
||||
|
||||
$idx++;
|
||||
|
||||
my $word = random_numeric_string ($word_len) || "";
|
||||
my $salt = random_numeric_string ($salt_len) || "";
|
||||
my $word = random_numeric_string ($word_len) // "";
|
||||
my $salt = random_numeric_string ($salt_len) // "";
|
||||
|
||||
my $hash = module_generate_hash ($word, $salt);
|
||||
|
||||
@ -165,7 +165,7 @@ sub passthrough
|
||||
|
||||
$idx++;
|
||||
|
||||
my $salt = random_numeric_string ($salt_len) || "";
|
||||
my $salt = random_numeric_string ($salt_len) // "";
|
||||
|
||||
my $hash = module_generate_hash ($word, $salt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user