1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

Fix modules where salt->salt_buf[] is used but salt->salt_len was not set

This commit is contained in:
Jens Steube 2020-05-29 11:19:49 +02:00
parent 84d3981e7b
commit 6c0dc7493e
6 changed files with 12 additions and 0 deletions

View File

@ -178,6 +178,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf[2] = 0;
salt->salt_buf[3] = 0;
salt->salt_len = 8;
salt->salt_buf_pc[0] = salt->salt_buf[0];
salt->salt_buf_pc[1] = salt->salt_buf[1];

View File

@ -139,6 +139,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf[2] = 0;
salt->salt_buf[3] = 0;
salt->salt_len = 8;
salt->salt_buf_pc[0] = salt->salt_buf[0];
salt->salt_buf_pc[1] = salt->salt_buf[1];

View File

@ -242,6 +242,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf[1] = krb5tgs->checksum[1];
salt->salt_buf[2] = krb5tgs->checksum[2];
salt->salt_len = 12;
salt->salt_iter = 4096 - 1;
digest[0] = krb5tgs->checksum[0];

View File

@ -242,6 +242,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf[1] = krb5tgs->checksum[1];
salt->salt_buf[2] = krb5tgs->checksum[2];
salt->salt_len = 12;
salt->salt_iter = 4096 - 1;
digest[0] = krb5tgs->checksum[0];

View File

@ -188,6 +188,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf[1] = krb5pa->checksum[1];
salt->salt_buf[2] = krb5pa->checksum[2];
salt->salt_len = 12;
salt->salt_iter = 4096 - 1;
digest[0] = krb5pa->checksum[0];

View File

@ -188,6 +188,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
salt->salt_buf[1] = krb5pa->checksum[1];
salt->salt_buf[2] = krb5pa->checksum[2];
salt->salt_len = 12;
salt->salt_iter = 4096 - 1;
digest[0] = krb5pa->checksum[0];