mirror of
https://github.com/hashcat/hashcat.git
synced 2025-05-05 08:29:17 +00:00
fixes #2009: padding problem in -m 13400 tests
This commit is contained in:
parent
4bef41ed1b
commit
a86235a68c
@ -299,6 +299,8 @@ sub module_generate_hash
|
|||||||
|
|
||||||
$expected_bytes = $cipher->decrypt ($contents_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',
|
$hash = sprintf ('$keepass$*%d*%d*%d*%s*%s*%s*%s*%s%s',
|
||||||
$version,
|
$version,
|
||||||
$iteration,
|
$iteration,
|
||||||
|
Loading…
Reference in New Issue
Block a user