mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-06 05:41:36 +00:00
Add missing non-boot volumes support
This commit is contained in:
parent
5d5ac1c935
commit
400be920ba
@ -7073,6 +7073,11 @@ int truecrypt_parse_hash_2k (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAY
|
|||||||
|
|
||||||
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
||||||
|
|
||||||
|
for (int i = 0; i < 256; i++)
|
||||||
|
{
|
||||||
|
tc->keyboard_layout[i] = i;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy (tc->salt_buf, buf, 64);
|
memcpy (tc->salt_buf, buf, 64);
|
||||||
|
|
||||||
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
||||||
@ -7116,6 +7121,11 @@ int veracrypt_parse_hash_200000 (u8 *input_buf, u32 input_len, hash_t *hash_buf,
|
|||||||
|
|
||||||
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
||||||
|
|
||||||
|
for (int i = 0; i < 256; i++)
|
||||||
|
{
|
||||||
|
tc->keyboard_layout[i] = i;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy (tc->salt_buf, buf, 64);
|
memcpy (tc->salt_buf, buf, 64);
|
||||||
|
|
||||||
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
||||||
@ -7159,6 +7169,11 @@ int veracrypt_parse_hash_500000 (u8 *input_buf, u32 input_len, hash_t *hash_buf,
|
|||||||
|
|
||||||
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
||||||
|
|
||||||
|
for (int i = 0; i < 256; i++)
|
||||||
|
{
|
||||||
|
tc->keyboard_layout[i] = i;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy (tc->salt_buf, buf, 64);
|
memcpy (tc->salt_buf, buf, 64);
|
||||||
|
|
||||||
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
||||||
@ -7202,6 +7217,11 @@ int veracrypt_parse_hash_327661 (u8 *input_buf, u32 input_len, hash_t *hash_buf,
|
|||||||
|
|
||||||
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
||||||
|
|
||||||
|
for (int i = 0; i < 256; i++)
|
||||||
|
{
|
||||||
|
tc->keyboard_layout[i] = i;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy (tc->salt_buf, buf, 64);
|
memcpy (tc->salt_buf, buf, 64);
|
||||||
|
|
||||||
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
||||||
@ -7245,6 +7265,11 @@ int veracrypt_parse_hash_655331 (u8 *input_buf, u32 input_len, hash_t *hash_buf,
|
|||||||
|
|
||||||
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
if (entropy < MIN_SUFFICIENT_ENTROPY_FILE) return (PARSER_INSUFFICIENT_ENTROPY);
|
||||||
|
|
||||||
|
for (int i = 0; i < 256; i++)
|
||||||
|
{
|
||||||
|
tc->keyboard_layout[i] = i;
|
||||||
|
}
|
||||||
|
|
||||||
memcpy (tc->salt_buf, buf, 64);
|
memcpy (tc->salt_buf, buf, 64);
|
||||||
|
|
||||||
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
memcpy (tc->data_buf, buf + 64, 512 - 64);
|
||||||
@ -29299,11 +29324,14 @@ int hashconfig_general_defaults (hashcat_ctx_t *hashcat_ctx)
|
|||||||
if (user_options->truecrypt_keyboard_layout) optional_param2 = user_options->truecrypt_keyboard_layout;
|
if (user_options->truecrypt_keyboard_layout) optional_param2 = user_options->truecrypt_keyboard_layout;
|
||||||
if (user_options->veracrypt_keyboard_layout) optional_param2 = user_options->veracrypt_keyboard_layout;
|
if (user_options->veracrypt_keyboard_layout) optional_param2 = user_options->veracrypt_keyboard_layout;
|
||||||
|
|
||||||
|
if (optional_param2)
|
||||||
|
{
|
||||||
const bool rc = initialize_keyboard_layout (hashcat_ctx, optional_param2, tc->keyboard_layout);
|
const bool rc = initialize_keyboard_layout (hashcat_ctx, optional_param2, tc->keyboard_layout);
|
||||||
|
|
||||||
if (rc == false) return -1;
|
if (rc == false) return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// veracrypt only
|
// veracrypt only
|
||||||
if ((hashconfig->hash_mode >= 13700) && (hashconfig->hash_mode == 13799))
|
if ((hashconfig->hash_mode >= 13700) && (hashconfig->hash_mode == 13799))
|
||||||
|
Loading…
Reference in New Issue
Block a user