Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ripemd160_aes.test.tc test fails on Fedora 22, NVidia GTX 970 #47

Open
jhgorse opened this issue Jan 23, 2016 · 1 comment
Open

ripemd160_aes.test.tc test fails on Fedora 22, NVidia GTX 970 #47

jhgorse opened this issue Jan 23, 2016 · 1 comment

Comments

@jhgorse
Copy link

jhgorse commented Jan 23, 2016

ripemd160_aes.test.tc test fails on Fedora 22, NVidia GTX 970

Modify src/Makefile.am:
* add -gencode 50, 52, 53. Remove incompatible 20.
* remove --opencc-options -OPT:Olimit=0
$ gutogen.sh
$ ./configure && make
$ cd test
$ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]
Found password:     "tsts"
Password length:    "4"
Total computations: "120"

Correct answer is "test".

This works when "-s 4" is appended, reducing computations from 120 to 81:

$ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 4
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]
Found password:     "test"
Password length:    "4"
Total computations: "81"

Also, when "-v" is added, the computation for solving it is correct but reported incorrectly.

$ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -v
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]

Memory initialization...

COUNT   PASSWORD    RESULT
0   t       NO
--- Performance: inf p/s, time: 0 s, passwords: 3 
... snip...
59  stst        NO
--- Performance: inf p/s, time: 0 s, passwords: 81 
60  test        YES
--- Performance: inf p/s, time: 0 s, passwords: 81 
61  eest        NO
--- Performance: inf p/s, time: 0 s, passwords: 81 
... snip...
119 ssss        NO
--- Performance: inf p/s, time: 0 s, passwords: 81 
Found password:     "tsts"
Password length:    "4"
Total computations: "120"
@jhgorse
Copy link
Author

jhgorse commented Jan 23, 2016

in Core.c around line 390, why does this occur?

        for (k=CORE_minlength;k<wordlength;k++){
            maxcombination=1;
            for (l=0;l<k;l++)
                maxcombination*=strlen(CORE_charset);
            offset+=maxcombination;
        }

I believe this maxcombination is messing up the offset, which then gives the wrong computePwd().

More tests to confirm with index added to incorrect password for reference

→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 0
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]
Found password:     "tsts" 99
Password length:    "4"
Total computations: "120"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 1
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]
Found password:     "tsts" 99
Password length:    "4"
Total computations: "120"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 2
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]
Found password:     "tets" 96
Password length:    "4"
Total computations: "117"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 3
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]
Found password:     "tese" 87
Password length:    "4"
Total computations: "108"
→ ../src/truecrack -t ripemd160_aes.test.tc -c tes -m 4 -s 4
TrueCrack v3.6
Website: http://code.google.com/p/truecrack
Contact us: [email protected]
Found password:     "test" 60
Password length:    "4"
Total computations: "81"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant