mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-17 01:52:06 +00:00
Respect base64 padding lenghts in input tokenizer
This commit is contained in:
parent
2d0c57c647
commit
83b9a81704
@ -67,8 +67,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
token.attr[0] = TOKEN_ATTR_FIXED_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_SIGNATURE;
|
||||
|
||||
token.len_min[1] = ((20 + SALT_MIN) * 8) / 6;
|
||||
token.len_max[1] = ((20 + SALT_MAX) * 8) / 6;
|
||||
token.len_min[1] = (((20 + SALT_MIN) * 8) / 6) + 0;
|
||||
token.len_max[1] = (((20 + SALT_MAX) * 8) / 6) + 3;
|
||||
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
@ -75,8 +75,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_DIGIT;
|
||||
|
||||
token.len_min[2] = (SALT_MIN * 8) / 6;
|
||||
token.len_max[2] = (SALT_MAX * 8) / 6;
|
||||
token.len_min[2] = ((SALT_MIN * 8) / 6) + 0;
|
||||
token.len_max[2] = ((SALT_MAX * 8) / 6) + 3;
|
||||
token.sep[2] = '*';
|
||||
token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
@ -65,8 +65,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
token.attr[0] = TOKEN_ATTR_FIXED_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_SIGNATURE;
|
||||
|
||||
token.len_min[1] = ((32 + SALT_MIN) * 8) / 6;
|
||||
token.len_max[1] = ((32 + SALT_MAX) * 8) / 6;
|
||||
token.len_min[1] = (((32 + SALT_MIN) * 8) / 6) + 0;
|
||||
token.len_max[1] = (((32 + SALT_MAX) * 8) / 6) + 3;
|
||||
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
@ -75,8 +75,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_DIGIT;
|
||||
|
||||
token.len_min[2] = (SALT_MIN * 8) / 6;
|
||||
token.len_max[2] = (SALT_MAX * 8) / 6;
|
||||
token.len_min[2] = ((SALT_MIN * 8) / 6) + 0;
|
||||
token.len_max[2] = ((SALT_MAX * 8) / 6) + 3;
|
||||
token.sep[2] = '*';
|
||||
token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
@ -66,8 +66,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
token.attr[0] = TOKEN_ATTR_FIXED_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_SIGNATURE;
|
||||
|
||||
token.len_min[1] = ((64 + SALT_MIN) * 8) / 6;
|
||||
token.len_max[1] = ((64 + SALT_MAX) * 8) / 6;
|
||||
token.len_min[1] = (((64 + SALT_MIN) * 8) / 6) + 0;
|
||||
token.len_max[1] = (((64 + SALT_MAX) * 8) / 6) + 3;
|
||||
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
@ -77,8 +77,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
| TOKEN_ATTR_VERIFY_SIGNATURE;
|
||||
|
||||
token.sep[1] = '$';
|
||||
token.len_min[1] = (SALT_MIN * 8) / 6;
|
||||
token.len_max[1] = (SALT_MAX * 8) / 6;
|
||||
token.len_min[1] = ((SALT_MIN * 8) / 6) + 0;
|
||||
token.len_max[1] = ((SALT_MAX * 8) / 6) + 3;
|
||||
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
@ -111,8 +111,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
| TOKEN_ATTR_VERIFY_DIGIT;
|
||||
|
||||
token.sep[2] = ':';
|
||||
token.len_min[2] = (SALT_MIN * 8) / 6;
|
||||
token.len_max[2] = (SALT_MAX * 8) / 6;
|
||||
token.len_min[2] = ((SALT_MIN * 8) / 6) + 0;
|
||||
token.len_max[2] = ((SALT_MAX * 8) / 6) + 3;
|
||||
token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
@ -111,8 +111,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
| TOKEN_ATTR_VERIFY_DIGIT;
|
||||
|
||||
token.sep[2] = ':';
|
||||
token.len_min[2] = (SALT_MIN * 8) / 6;
|
||||
token.len_max[2] = (SALT_MAX * 8) / 6;
|
||||
token.len_min[2] = ((SALT_MIN * 8) / 6) + 0;
|
||||
token.len_max[2] = ((SALT_MAX * 8) / 6) + 3;
|
||||
token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
@ -111,8 +111,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
| TOKEN_ATTR_VERIFY_DIGIT;
|
||||
|
||||
token.sep[2] = ':';
|
||||
token.len_min[2] = (SALT_MIN * 8) / 6;
|
||||
token.len_max[2] = (SALT_MAX * 8) / 6;
|
||||
token.len_min[2] = ((SALT_MIN * 8) / 6) + 0;
|
||||
token.len_max[2] = ((SALT_MAX * 8) / 6) + 3;
|
||||
token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
@ -112,8 +112,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
| TOKEN_ATTR_VERIFY_DIGIT;
|
||||
|
||||
token.sep[2] = ':';
|
||||
token.len_min[2] = (SALT_MIN * 8) / 6;
|
||||
token.len_max[2] = (SALT_MAX * 8) / 6;
|
||||
token.len_min[2] = ((SALT_MIN * 8) / 6) + 0;
|
||||
token.len_max[2] = ((SALT_MAX * 8) / 6) + 3;
|
||||
token.attr[2] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64A;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user