this fixes #400: --loopback was not working
authorphilsmd <philsmd@hashcat.net>
Tue, 5 Jul 2016 13:00:26 +0000 (15:00 +0200)
committerphilsmd <philsmd@hashcat.net>
Tue, 5 Jul 2016 13:00:26 +0000 (15:00 +0200)
docs/changes.txt
src/hashcat.c

index d44d6e7..81f3b40 100644 (file)
@@ -14,6 +14,7 @@
 - Fixed a bug where hashcat is suppressing --machine-readable output in the final status update
 - Fixed a bug where hashcat did not check the return of realpath() and crashes uncontrolled if the path does not exist
 - Fixed a bug where hashcat crashes for accessing deallocated buffer if user spams "s" shortly before hashcat shuts down
+- Fixed a bug where hashcat did not correctly use the newly cracked plains whenever --loopback or the induction folder was used
 
 * changes v2.01 -> v3.00:
 
index e508082..f8e4b1a 100644 (file)
@@ -18392,6 +18392,10 @@ int main (int argc, char **argv)
         if (induction_dictionaries_cnt)
         {
           qsort (induction_dictionaries, induction_dictionaries_cnt, sizeof (char *), sort_by_mtime);
+
+          // yeah, this next statement is a little hack to make sure that --loopback runs correctly (because with it we guarantee that the loop iterates one more time)
+
+          dictpos--;
         }
 
         time_t runtime_stop;