Преглед изворни кода

Merge branch 'pr-issue-37-table-lookup' of https://github.com/philsmd/hashcat into philsmd-pr-issue-37-table-lookup

Conflicts:
	docs/changes.txt
Jens Steube пре 10 година
родитељ
комит
51882ef63b
2 измењених фајлова са 12 додато и 0 уклоњено
  1. 5 0
      docs/changes.txt
  2. 7 0
      src/engine.c

+ 5 - 0
docs/changes.txt

@@ -20,6 +20,11 @@ file.: Host
 desc.: Fixed the output of attack mode -a 4 (permutation attack)
 issue: 36
 
+type.: bug
+file.: Host
+desc.: Implemented a fix for the final output for attack mode -a 5 (table lookup attack)
+issue: 37
+
 * changes v0.50 -> v2.00:
 
 type: Project

+ 7 - 0
src/engine.c

@@ -15554,6 +15554,13 @@ void *attack_a5r0 (thread_parameter_t *thread_parameter)
         memset (ptrs[j] + plains[j].len, 0, BLOCK_SIZE - plains[j].len);
       }
 
+      for (; j < 4; j++)
+      {
+        memset (ptrs[j], 0, BLOCK_SIZE);
+
+        plains[j].len = 0;
+      }
+
       thread_parameter->hashing (thread_parameter, plains);
 
       thread_parameter->thread_plains_done += left;