lvaccaro / truecrack

TrueCrack is a brute-force password cracker for TrueCrypt (Copyrigth) volumes. It works on Linux and it is optimized for Nvidia Cuda technology.
GNU General Public License v3.0
155 stars 58 forks source link

enable-cpu: even password is found, it is said not found (and then not shown) #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem:
svn checkout http://truecrack.googlecode.com/svn/ truecrack-read-only
cd truecrack-read-only/
./configure --enable-cpu
make

(it is relevant that _GPU_ is not defined)

Steps:
src/truecrack -t test/ripemd160_aes.test.tc -c tes -m 4

  TrueCrack v3.5
  Website: http://code.google.com/p/truecrack
  Contact us: infotruecrack@gmail.com
  No found password
  Total computations:     "61"

Adding --verbose reveals that it found correct password.

core_charset defines local 'status' which shadows global 'status' and thus /* 
3. Check the result */ on core thinks status != 1.

First fix what comes in my mind (works at least in this test-case):

Index: src/Main/Core.c
===================================================================
--- src/Main/Core.c     (revision 61)
+++ src/Main/Core.c     (working copy)
@@ -408,7 +408,7 @@
        void core_charset(void) {

                /* Local variables */
-               short int status=0;                     // value for the found 
rigth key
+               //short int status=0;                   // value for the found 
rigth key
                uint64_t j;                             // counters for temporany cycles

Original issue reported on code.google.com by aapo.rantalainen on 27 Feb 2014 at 2:37