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

Fixed invalid handling of keyfiles in Keepass if transf_random_seed doesn't change

This commit is contained in:
jsteube 2022-08-14 18:15:06 +00:00
parent 78ee811fa9
commit 05eff0d683
2 changed files with 18 additions and 9 deletions

View File

@ -71,6 +71,7 @@
- Fixed Unit Test salt-max in case of optimized kernel, with hash-type 22 and 23 - Fixed Unit Test salt-max in case of optimized kernel, with hash-type 22 and 23
- Fixed wordlist handling in -m 3000 when candidate passwords use the $HEX[...] syntax - Fixed wordlist handling in -m 3000 when candidate passwords use the $HEX[...] syntax
- Fixed accepted salt length by PKCS#8 Private Keys modules - Fixed accepted salt length by PKCS#8 Private Keys modules
- Fixed invalid handling of keyfiles in Keepass if transf_random_seed doesn't change
## ##
## Technical ## Technical

View File

@ -495,16 +495,24 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
digest[3] = keepass->expected_bytes[3]; digest[3] = keepass->expected_bytes[3];
} }
salt->salt_buf[0] = keepass->transf_random_seed[0]; salt->salt_buf[ 0] = keepass->transf_random_seed[0];
salt->salt_buf[1] = keepass->transf_random_seed[1]; salt->salt_buf[ 1] = keepass->transf_random_seed[1];
salt->salt_buf[2] = keepass->transf_random_seed[2]; salt->salt_buf[ 2] = keepass->transf_random_seed[2];
salt->salt_buf[3] = keepass->transf_random_seed[3]; salt->salt_buf[ 3] = keepass->transf_random_seed[3];
salt->salt_buf[4] = keepass->transf_random_seed[4]; salt->salt_buf[ 4] = keepass->transf_random_seed[4];
salt->salt_buf[5] = keepass->transf_random_seed[5]; salt->salt_buf[ 5] = keepass->transf_random_seed[5];
salt->salt_buf[6] = keepass->transf_random_seed[6]; salt->salt_buf[ 6] = keepass->transf_random_seed[6];
salt->salt_buf[7] = keepass->transf_random_seed[7]; salt->salt_buf[ 7] = keepass->transf_random_seed[7];
salt->salt_buf[ 8] = keepass->keyfile[0];
salt->salt_buf[ 9] = keepass->keyfile[1];
salt->salt_buf[10] = keepass->keyfile[2];
salt->salt_buf[11] = keepass->keyfile[3];
salt->salt_buf[12] = keepass->keyfile[4];
salt->salt_buf[13] = keepass->keyfile[5];
salt->salt_buf[14] = keepass->keyfile[6];
salt->salt_buf[15] = keepass->keyfile[7];
salt->salt_len = 32; salt->salt_len = 64;
return (PARSER_OK); return (PARSER_OK);
} }