1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-13 17:21:10 +00:00

Fix unicode conversion in -m 24800

This commit is contained in:
Jens Steube 2021-04-26 09:24:06 +02:00
parent 1879cbefd2
commit 17b9fcb925
3 changed files with 12 additions and 12 deletions

View File

@ -52,9 +52,9 @@ KERNEL_FQ void m24800_mxx (KERN_ATTR_RULES ())
u32 t[128] = { 0 };
// make it unicode.
for (u32 i = 0, idx = 0; i < tmp.pw_len; i += 4, idx += 1)
for (u32 i = 0, idx = 0; i < tmp.pw_len; i += 16, idx += 4)
{
make_utf16beN (&tmp.i[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 1]);
make_utf16beN (&tmp.i[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 4]);
}
// hash time
@ -123,9 +123,9 @@ KERNEL_FQ void m24800_sxx (KERN_ATTR_RULES ())
u32 t[128] = { 0 };
// make it unicode.
for (u32 i = 0, idx = 0; i < tmp.pw_len; i += 4, idx += 1)
for (u32 i = 0, idx = 0; i < tmp.pw_len; i += 16, idx += 4)
{
make_utf16beN (&tmp.i[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 1]);
make_utf16beN (&tmp.i[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 4]);
}
// hash time

View File

@ -69,9 +69,9 @@ KERNEL_FQ void m24800_mxx (KERN_ATTR_BASIC ())
u32 t[128] = { 0 };
// make it unicode.
for (u32 i = 0, idx = 0; i < pw_len + comb_len; i += 4, idx += 1)
for (u32 i = 0, idx = 0; i < pw_len + comb_len; i += 16, idx += 4)
{
make_utf16beN (&c[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 1]);
make_utf16beN (&c[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 4]);
}
sha1_hmac_ctx_t ctx;
@ -158,9 +158,9 @@ KERNEL_FQ void m24800_sxx (KERN_ATTR_BASIC ())
u32 t[128] = { 0 };
// make it unicode.
for (u32 i = 0, idx = 0; i < pw_len + comb_len; i += 4, idx += 1)
for (u32 i = 0, idx = 0; i < pw_len + comb_len; i += 16, idx += 4)
{
make_utf16beN (&c[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 1]);
make_utf16beN (&c[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 4]);
}
sha1_hmac_ctx_t ctx;

View File

@ -55,9 +55,9 @@ KERNEL_FQ void m24800_mxx (KERN_ATTR_VECTOR ())
u32x t[128] = { 0 };
// make it unicode.
for (u32 i = 0, idx = 0; i < pw_len; i += 4, idx += 1)
for (u32 i = 0, idx = 0; i < pw_len; i += 16, idx += 4)
{
make_utf16beN (&w[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 1]);
make_utf16beN (&w[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 4]);
}
sha1_hmac_ctx_vector_t ctx;
@ -130,9 +130,9 @@ KERNEL_FQ void m24800_sxx (KERN_ATTR_VECTOR ())
u32x t[128] = { 0 };
// make it unicode.
for (u32 i = 0, idx = 0; i < pw_len; i += 4, idx += 1)
for (u32 i = 0, idx = 0; i < pw_len; i += 16, idx += 4)
{
make_utf16beN (&w[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 1]);
make_utf16beN (&w[idx], &t[(idx * 2) + 0], &t[(idx * 2) + 4]);
}
sha1_hmac_ctx_vector_t ctx;