Created
January 29, 2020 21:31
-
-
Save blurbdust/ba7e96e8921687db41672845116b5fb6 to your computer and use it in GitHub Desktop.
OpenCL/m10500-pure.cl updated for 2020 from https://hashcat.net/forum/thread-6233.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/OpenCL/m10500-pure.cl b/OpenCL/m10500-pure.cl | |
index 51ee7312..687d7302 100644 | |
--- a/OpenCL/m10500-pure.cl | |
+++ b/OpenCL/m10500-pure.cl | |
@@ -253,25 +253,9 @@ KERNEL_FQ void m10500_init (KERN_ATTR_TMPS_ESALT (pdf14_tmp_t, pdf_t)) | |
u32 rc4data[2]; | |
- rc4data[0] = esalt_bufs[digests_offset].rc4data[0]; | |
- rc4data[1] = esalt_bufs[digests_offset].rc4data[1]; | |
- | |
- u32 final_length = 68 + id_len; | |
- | |
- u32 w11 = 0x80; | |
- u32 w12 = 0; | |
- | |
- if (esalt_bufs[digests_offset].enc_md != 1) | |
- { | |
- w11 = 0xffffffff; | |
- w12 = 0x80; | |
- | |
- final_length += 4; | |
- } | |
- | |
- id_buf[id_len4 + 0] = w11; | |
- id_buf[id_len4 + 1] = w12; | |
- | |
+ rc4data[0] = padding[0]; | |
+ rc4data[1] = padding[1]; | |
+ | |
/** | |
* main init | |
*/ | |
@@ -314,14 +298,14 @@ KERNEL_FQ void m10500_init (KERN_ATTR_TMPS_ESALT (pdf14_tmp_t, pdf_t)) | |
w1_t[1] |= w1[1]; | |
w1_t[2] |= w1[2]; | |
w1_t[3] |= w1[3]; | |
- w2_t[0] = o_buf[0]; | |
- w2_t[1] = o_buf[1]; | |
- w2_t[2] = o_buf[2]; | |
- w2_t[3] = o_buf[3]; | |
- w3_t[0] = o_buf[4]; | |
- w3_t[1] = o_buf[5]; | |
- w3_t[2] = o_buf[6]; | |
- w3_t[3] = o_buf[7]; | |
+ w2_t[0] = 0x80; | |
+ w2_t[1] = 0; | |
+ w2_t[2] = 0; | |
+ w2_t[3] = 0; | |
+ w3_t[0] = 0; | |
+ w3_t[1] = 0; | |
+ w3_t[2] = 32 * 8; | |
+ w3_t[3] = 0; | |
u32 digest[4]; | |
@@ -332,25 +316,6 @@ KERNEL_FQ void m10500_init (KERN_ATTR_TMPS_ESALT (pdf14_tmp_t, pdf_t)) | |
md5_transform (w0_t, w1_t, w2_t, w3_t, digest); | |
- w0_t[0] = P; | |
- w0_t[1] = id_buf[ 0]; | |
- w0_t[2] = id_buf[ 1]; | |
- w0_t[3] = id_buf[ 2]; | |
- w1_t[0] = id_buf[ 3]; | |
- w1_t[1] = id_buf[ 4]; | |
- w1_t[2] = id_buf[ 5]; | |
- w1_t[3] = id_buf[ 6]; | |
- w2_t[0] = id_buf[ 7]; | |
- w2_t[1] = id_buf[ 8]; | |
- w2_t[2] = id_buf[ 9]; | |
- w2_t[3] = id_buf[10]; | |
- w3_t[0] = id_buf[11]; | |
- w3_t[1] = 0; | |
- w3_t[2] = final_length * 8; | |
- w3_t[3] = 0; | |
- | |
- md5_transform (w0_t, w1_t, w2_t, w3_t, digest); | |
- | |
tmps[gid].digest[0] = digest[0]; | |
tmps[gid].digest[1] = digest[1]; | |
tmps[gid].digest[2] = digest[2]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment