mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Merge pull request #3873 from piru/master
Raise Flask Session Cookie (-m 29100) max data length to 120 chars.
This commit is contained in:
commit
2801527d81
@ -34,13 +34,13 @@ KERNEL_FQ void m29100_mxx (KERN_ATTR_RULES ())
|
||||
|
||||
const u32 salt_len = salt_bufs[SALT_POS_HOST].salt_len;
|
||||
|
||||
u32 s[16] = { 0 };
|
||||
u32 s[32] = { 0 };
|
||||
|
||||
#pragma unroll
|
||||
for (u32 id = 0; id < 16; id++)
|
||||
for (u32 id = 0; id < 32; id++)
|
||||
{
|
||||
s[id] = hc_swap32_S (salt_bufs[SALT_POS_HOST].salt_buf[id]);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* base
|
||||
@ -129,13 +129,13 @@ KERNEL_FQ void m29100_sxx (KERN_ATTR_RULES ())
|
||||
|
||||
const u32 salt_len = salt_bufs[SALT_POS_HOST].salt_len;
|
||||
|
||||
u32 s[16] = { 0 };
|
||||
u32 s[32] = { 0 };
|
||||
|
||||
#pragma unroll
|
||||
for (u32 id = 0; id < 16; id++)
|
||||
for (u32 id = 0; id < 32; id++)
|
||||
{
|
||||
s[id] = hc_swap32_S (salt_bufs[SALT_POS_HOST].salt_buf[id]);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* base
|
||||
|
@ -42,13 +42,13 @@ KERNEL_FQ void m29100_mxx (KERN_ATTR_BASIC ())
|
||||
|
||||
const u32 salt_len = salt_bufs[SALT_POS_HOST].salt_len;
|
||||
|
||||
u32 s[16] = { 0 };
|
||||
u32 s[32] = { 0 };
|
||||
|
||||
#pragma unroll
|
||||
for (u32 id = 0; id < 16; id++)
|
||||
for (u32 id = 0; id < 32; id++)
|
||||
{
|
||||
s[id] = hc_swap32_S (salt_bufs[SALT_POS_HOST].salt_buf[id]);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* loop
|
||||
@ -164,13 +164,13 @@ KERNEL_FQ void m29100_sxx (KERN_ATTR_BASIC ())
|
||||
|
||||
const u32 salt_len = salt_bufs[SALT_POS_HOST].salt_len;
|
||||
|
||||
u32 s[16] = { 0 };
|
||||
u32 s[32] = { 0 };
|
||||
|
||||
#pragma unroll
|
||||
for (u32 id = 0; id < 16; id++)
|
||||
for (u32 id = 0; id < 32; id++)
|
||||
{
|
||||
s[id] = hc_swap32_S (salt_bufs[SALT_POS_HOST].salt_buf[id]);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* loop
|
||||
|
@ -41,13 +41,13 @@ KERNEL_FQ void m29100_mxx (KERN_ATTR_BASIC ())
|
||||
|
||||
const u32 salt_len = salt_bufs[SALT_POS_HOST].salt_len;
|
||||
|
||||
u32 s[16] = { 0 };
|
||||
u32 s[32] = { 0 };
|
||||
|
||||
#pragma unroll
|
||||
for (u32 id = 0; id < 16; id++)
|
||||
for (u32 id = 0; id < 32; id++)
|
||||
{
|
||||
s[id] = hc_swap32_S (salt_bufs[SALT_POS_HOST].salt_buf[id]);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* loop
|
||||
@ -149,13 +149,13 @@ KERNEL_FQ void m29100_sxx (KERN_ATTR_BASIC ())
|
||||
|
||||
const u32 salt_len = salt_bufs[SALT_POS_HOST].salt_len;
|
||||
|
||||
u32 s[16] = { 0 };
|
||||
u32 s[32] = { 0 };
|
||||
|
||||
#pragma unroll
|
||||
for (u32 id = 0; id < 16; id++)
|
||||
for (u32 id = 0; id < 32; id++)
|
||||
{
|
||||
s[id] = hc_swap32_S (salt_bufs[SALT_POS_HOST].salt_buf[id]);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* loop
|
||||
|
@ -64,7 +64,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
|
||||
token.sep[0] = '.';
|
||||
token.len_min[0] = 0;
|
||||
token.len_max[0] = 56;
|
||||
token.len_max[0] = 120;
|
||||
token.attr[0] = TOKEN_ATTR_VERIFY_LENGTH
|
||||
| TOKEN_ATTR_VERIFY_BASE64C;
|
||||
|
||||
@ -96,6 +96,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
if (parse_rc == false) return (PARSER_SALT_LENGTH);
|
||||
|
||||
memcpy (salt->salt_buf, line_buf, salt_len);
|
||||
salt->salt_buf[salt_len] = '\0';
|
||||
|
||||
u8 tmp_buf[100] = { 0 };
|
||||
|
||||
@ -120,8 +121,6 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
{
|
||||
const u32 *digest32 = (const u32 *) digest_buf;
|
||||
|
||||
char tmp_buf[128] = { 0 };
|
||||
|
||||
char ptr_plain[128];
|
||||
|
||||
u32 tmp[5];
|
||||
@ -132,9 +131,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
tmp[3] = byte_swap_32 (digest32[3]);
|
||||
tmp[4] = byte_swap_32 (digest32[4]);
|
||||
|
||||
memcpy (tmp_buf, tmp, 20);
|
||||
|
||||
base64_encode (int_to_base64url, (const u8 *) tmp_buf, 48, (u8 *) ptr_plain);
|
||||
base64_encode (int_to_base64url, (const u8 *) tmp, 20, (u8 *) ptr_plain);
|
||||
|
||||
ptr_plain[27] = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user