hashcat Forum
precompute bcrypt hashes - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: precompute bcrypt hashes (/thread-8903.html)

Pages: 1 2


RE: precompute bcrypt hashes - f1l1b0x - 02-01-2020

Hi

I cant do it, I dont have the skills to do it. But thanks a ton for the recommendation this is most likely saving me a ton of time.

If someone wants to help me with it. Happy to send you more about the project in a dm.

Thanks


RE: precompute bcrypt hashes - f1l1b0x - 02-02-2020

Do you see a way to do it without the need of a modified kernel?

Thanks


RE: precompute bcrypt hashes - philsmd - 02-02-2020

as said, for the basic testing and checking the (hexadecimal) digest, you could just add a printf ():
Code:
diff --git a/OpenCL/m03200-pure.cl b/OpenCL/m03200-pure.cl
index d4eaac06..bd0afdc2 100644
--- a/OpenCL/m03200-pure.cl
+++ b/OpenCL/m03200-pure.cl
@@ -846,6 +846,17 @@ KERNEL_FQ void FIXED_THREAD_COUNT(FIXED_LOCAL_SIZE) m03200_comp (KERN_ATTR_TMPS
   const u32 r2 = L0;
   const u32 r3 = R0;

+  L0 = BCRYPTM_4;
+  R0 = BCRYPTM_5;
+
+  for (u32 i = 0; i < 64; i++)
+  {
+    BF_ENCRYPT (L0, R0);
+  }
+
+  const u32 r4 = L0;
+  const u32 r5 = R0;
+
   /*
   e = L0;
   f = R0;
@@ -853,6 +864,8 @@ KERNEL_FQ void FIXED_THREAD_COUNT(FIXED_LOCAL_SIZE) m03200_comp (KERN_ATTR_TMPS
   f &= ~0xff; // its just 23 not 24 !
   */

+  printf ("%08x%08x%08x%08x%08x%06x\n", r0, r1, r2, r3, r4, r5 >> 8);
+
   #define il_pos 0

   #ifdef KERNEL_STATIC



RE: precompute bcrypt hashes - f1l1b0x - 02-02-2020

thanks will give it a try