mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-22 05:31:11 +00:00
Get rid of m08, m16, s08, s16 kernels in -m 9700 and -m 9720 since maximum password length for old office documents is 15
This commit is contained in:
parent
e999ae8737
commit
49c56f713a
@ -1019,100 +1019,10 @@ KERNEL_FQ void m09700_m04 (KERN_ATTR_ESALT (oldoffice01_t))
|
|||||||
|
|
||||||
KERNEL_FQ void m09700_m08 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09700_m08 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = 0;
|
|
||||||
w2[1] = 0;
|
|
||||||
w2[2] = 0;
|
|
||||||
w2[3] = 0;
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = 0;
|
|
||||||
w3[1] = 0;
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
LOCAL_VK RC4_KEY rc4_keys[64];
|
|
||||||
|
|
||||||
m09700m (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KERNEL_FQ void m09700_m16 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09700_m16 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = pws[gid].i[ 8];
|
|
||||||
w2[1] = pws[gid].i[ 9];
|
|
||||||
w2[2] = pws[gid].i[10];
|
|
||||||
w2[3] = pws[gid].i[11];
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = pws[gid].i[12];
|
|
||||||
w3[1] = pws[gid].i[13];
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
LOCAL_VK RC4_KEY rc4_keys[64];
|
|
||||||
|
|
||||||
m09700m (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KERNEL_FQ void m09700_s04 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09700_s04 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
@ -1166,98 +1076,8 @@ KERNEL_FQ void m09700_s04 (KERN_ATTR_ESALT (oldoffice01_t))
|
|||||||
|
|
||||||
KERNEL_FQ void m09700_s08 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09700_s08 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = 0;
|
|
||||||
w2[1] = 0;
|
|
||||||
w2[2] = 0;
|
|
||||||
w2[3] = 0;
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = 0;
|
|
||||||
w3[1] = 0;
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
LOCAL_VK RC4_KEY rc4_keys[64];
|
|
||||||
|
|
||||||
m09700s (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KERNEL_FQ void m09700_s16 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09700_s16 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = pws[gid].i[ 8];
|
|
||||||
w2[1] = pws[gid].i[ 9];
|
|
||||||
w2[2] = pws[gid].i[10];
|
|
||||||
w2[3] = pws[gid].i[11];
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = pws[gid].i[12];
|
|
||||||
w3[1] = pws[gid].i[13];
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
LOCAL_VK RC4_KEY rc4_keys[64];
|
|
||||||
|
|
||||||
m09700s (rc4_keys, w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
@ -608,96 +608,10 @@ KERNEL_FQ void m09720_m04 (KERN_ATTR_ESALT (oldoffice01_t))
|
|||||||
|
|
||||||
KERNEL_FQ void m09720_m08 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09720_m08 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = 0;
|
|
||||||
w2[1] = 0;
|
|
||||||
w2[2] = 0;
|
|
||||||
w2[3] = 0;
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = 0;
|
|
||||||
w3[1] = 0;
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
m09720m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KERNEL_FQ void m09720_m16 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09720_m16 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = pws[gid].i[ 8];
|
|
||||||
w2[1] = pws[gid].i[ 9];
|
|
||||||
w2[2] = pws[gid].i[10];
|
|
||||||
w2[3] = pws[gid].i[11];
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = pws[gid].i[12];
|
|
||||||
w3[1] = pws[gid].i[13];
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
m09720m (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KERNEL_FQ void m09720_s04 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09720_s04 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
@ -749,94 +663,8 @@ KERNEL_FQ void m09720_s04 (KERN_ATTR_ESALT (oldoffice01_t))
|
|||||||
|
|
||||||
KERNEL_FQ void m09720_s08 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09720_s08 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = 0;
|
|
||||||
w2[1] = 0;
|
|
||||||
w2[2] = 0;
|
|
||||||
w2[3] = 0;
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = 0;
|
|
||||||
w3[1] = 0;
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
m09720s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KERNEL_FQ void m09720_s16 (KERN_ATTR_ESALT (oldoffice01_t))
|
KERNEL_FQ void m09720_s16 (KERN_ATTR_ESALT (oldoffice01_t))
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* base
|
|
||||||
*/
|
|
||||||
|
|
||||||
const u64 gid = get_global_id (0);
|
|
||||||
|
|
||||||
if (gid >= gid_max) return;
|
|
||||||
|
|
||||||
u32 w0[4];
|
|
||||||
|
|
||||||
w0[0] = pws[gid].i[ 0];
|
|
||||||
w0[1] = pws[gid].i[ 1];
|
|
||||||
w0[2] = pws[gid].i[ 2];
|
|
||||||
w0[3] = pws[gid].i[ 3];
|
|
||||||
|
|
||||||
u32 w1[4];
|
|
||||||
|
|
||||||
w1[0] = pws[gid].i[ 4];
|
|
||||||
w1[1] = pws[gid].i[ 5];
|
|
||||||
w1[2] = pws[gid].i[ 6];
|
|
||||||
w1[3] = pws[gid].i[ 7];
|
|
||||||
|
|
||||||
u32 w2[4];
|
|
||||||
|
|
||||||
w2[0] = pws[gid].i[ 8];
|
|
||||||
w2[1] = pws[gid].i[ 9];
|
|
||||||
w2[2] = pws[gid].i[10];
|
|
||||||
w2[3] = pws[gid].i[11];
|
|
||||||
|
|
||||||
u32 w3[4];
|
|
||||||
|
|
||||||
w3[0] = pws[gid].i[12];
|
|
||||||
w3[1] = pws[gid].i[13];
|
|
||||||
w3[2] = 0;
|
|
||||||
w3[3] = 0;
|
|
||||||
|
|
||||||
const u32 pw_len = pws[gid].pw_len & 63;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* main
|
|
||||||
*/
|
|
||||||
|
|
||||||
m09720s (w0, w1, w2, w3, pw_len, pws, rules_buf, combs_buf, bfs_buf, tmps, hooks, bitmaps_buf_s1_a, bitmaps_buf_s1_b, bitmaps_buf_s1_c, bitmaps_buf_s1_d, bitmaps_buf_s2_a, bitmaps_buf_s2_b, bitmaps_buf_s2_c, bitmaps_buf_s2_d, plains_buf, digests_buf, hashes_shown, salt_bufs, esalt_bufs, d_return_buf, d_extra0_buf, d_extra1_buf, d_extra2_buf, d_extra3_buf, bitmap_mask, bitmap_shift1, bitmap_shift2, salt_pos, loop_pos, loop_cnt, il_cnt, digests_cnt, digests_offset, combs_mode, gid_max);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user