From b30e9ec4da0a18e20eee8ad745629778c25b2e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20S=C3=A6taberget?= Date: Fri, 21 Oct 2022 14:48:22 +0200 Subject: [PATCH] Fix bug in -m 6800 where not all hashes are checked if they have the same salt --- src/modules/module_06800.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/module_06800.c b/src/modules/module_06800.c index 1b30c2459..8ee00e456 100644 --- a/src/modules/module_06800.c +++ b/src/modules/module_06800.c @@ -163,6 +163,9 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE const bool parse_rc = generic_salt_decode (hashconfig, salt_pos, salt_len, (u8 *) salt->salt_buf, (int *) &salt->salt_len); + // Add first word of ciphertext to salt struct to ensure correct grouping in the kernel _comp function + salt->salt_buf[63] = digest[0]; + if (parse_rc == false) return (PARSER_SALT_LENGTH); return (PARSER_OK);