|
|
@ -38,7 +38,6 @@ typedef struct md5_double_salt
|
|
|
|
|
|
|
|
|
|
|
|
} md5_double_salt_t;
|
|
|
|
} md5_double_salt_t;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KERNEL_FQ void m03730_mxx (KERN_ATTR_RULES_ESALT (md5_double_salt_t))
|
|
|
|
KERNEL_FQ void m03730_mxx (KERN_ATTR_RULES_ESALT (md5_double_salt_t))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -83,15 +82,6 @@ KERNEL_FQ void m03730_mxx (KERN_ATTR_RULES_ESALT (md5_double_salt_t))
|
|
|
|
s[idx] = esalt_bufs[DIGESTS_OFFSET_HOST].salt1_buf[idx];
|
|
|
|
s[idx] = esalt_bufs[DIGESTS_OFFSET_HOST].salt1_buf[idx];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const int salt2_len = esalt_bufs[DIGESTS_OFFSET_HOST].salt2_len;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
u32 s2[64] = { 0 };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0, idx = 0; i < salt2_len; i += 4, idx += 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
s2[idx] = esalt_bufs[DIGESTS_OFFSET_HOST].salt2_buf[idx];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
md5_ctx_t ctx0;
|
|
|
|
md5_ctx_t ctx0;
|
|
|
|
|
|
|
|
|
|
|
|
md5_init (&ctx0);
|
|
|
|
md5_init (&ctx0);
|
|
|
@ -181,6 +171,7 @@ KERNEL_FQ void m03730_sxx (KERN_ATTR_RULES_ESALT (md5_double_salt_t))
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* bin2asc uppercase table
|
|
|
|
* bin2asc uppercase table
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
LOCAL_VK u32 u_bin2asc[256];
|
|
|
|
LOCAL_VK u32 u_bin2asc[256];
|
|
|
|
|
|
|
|
|
|
|
|
for (u32 j = lid; j < 256; j += lsz)
|
|
|
|
for (u32 j = lid; j < 256; j += lsz)
|
|
|
@ -223,15 +214,6 @@ KERNEL_FQ void m03730_sxx (KERN_ATTR_RULES_ESALT (md5_double_salt_t))
|
|
|
|
s[idx] = esalt_bufs[DIGESTS_OFFSET_HOST].salt1_buf[idx];
|
|
|
|
s[idx] = esalt_bufs[DIGESTS_OFFSET_HOST].salt1_buf[idx];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const int salt2_len = esalt_bufs[DIGESTS_OFFSET_HOST].salt2_len;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
u32 s2[64] = { 0 };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (u32 i = 0, idx = 0; i < salt2_len; i += 4, idx += 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
s2[idx] = esalt_bufs[DIGESTS_OFFSET_HOST].salt2_buf[idx];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
md5_ctx_t ctx0;
|
|
|
|
md5_ctx_t ctx0;
|
|
|
|
|
|
|
|
|
|
|
|
md5_init (&ctx0);
|
|
|
|
md5_init (&ctx0);
|
|
|
@ -244,7 +226,6 @@ KERNEL_FQ void m03730_sxx (KERN_ATTR_RULES_ESALT (md5_double_salt_t))
|
|
|
|
|
|
|
|
|
|
|
|
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
|
|
|
for (u32 il_pos = 0; il_pos < IL_CNT; il_pos++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
pw_t tmp = PASTE_PW;
|
|
|
|
pw_t tmp = PASTE_PW;
|
|
|
|
|
|
|
|
|
|
|
|
tmp.pw_len = apply_rules (rules_buf[il_pos].cmds, tmp.i, tmp.pw_len);
|
|
|
|
tmp.pw_len = apply_rules (rules_buf[il_pos].cmds, tmp.i, tmp.pw_len);
|
|
|
|