1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-11 08:10:59 +00:00

Merge pull request #2265 from philsmd/patch-7

fixes #2009: padding problem in -m 13400 tests
This commit is contained in:
Jens Steube 2020-01-06 13:38:16 +01:00 committed by GitHub
commit cb865cb05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,6 +299,8 @@ sub module_generate_hash
$expected_bytes = $cipher->decrypt ($contents_hash);
$expected_bytes = substr ($expected_bytes . "\x00" x 32, 0, 32); # padding
$hash = sprintf ('$keepass$*%d*%d*%d*%s*%s*%s*%s*%s%s',
$version,
$iteration,