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:
parent
84d3981e7b
commit
6c0dc7493e
@ -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];
|
||||
|
||||
|
@ -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];
|
||||
|
||||
|
@ -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];
|
||||
|
@ -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];
|
||||
|
@ -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];
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user