1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

tests: solve telegram format conflict with jtr

This commit is contained in:
philsmd 2020-03-06 11:50:16 +01:00 committed by GitHub
parent 7f55f69d7f
commit eb46c82998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ sub module_generate_hash
my $digest = sha256_hex ($salt_bin . $word . $salt_bin); my $digest = sha256_hex ($salt_bin . $word . $salt_bin);
my $hash = sprintf ("\$telegram\$1*%s*%s", $digest, $salt); my $hash = sprintf ("\$telegram\$0*%s*%s", $digest, $salt);
return $hash; return $hash;
} }
@ -40,7 +40,7 @@ sub module_verify_hash
my $version = substr ($data[0], 10); my $version = substr ($data[0], 10);
return unless ($version eq "1"); return unless ($version eq "0");
my $digest = $data[1]; my $digest = $data[1];
my $salt = $data[2]; my $salt = $data[2];