Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132844 - johntheripper-1.6.40 skip words from wordlist
Summary: johntheripper-1.6.40 skip words from wordlist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-09 18:03 UTC by Alex Efros
Modified: 2006-08-04 00:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
wordlist (words_c1.gz,245.01 KB, application/octet-stream)
2006-05-09 18:06 UTC, Alex Efros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2006-05-09 18:03:08 UTC
Here is file "with passwords" which I've created and my file with "words":

$ echo -n cool | md5sum 
b1f4f9a523e36fd969f4573e25af4540  -
$ cat md5_3 
user:b1f4f9a523e36fd969f4573e25af4540
$ grep '^cool$' words_c1 
cool
$ wc words_c1 
 92151  92151 914294 words_c1
$ john --wordlist=words_c1 --format=raw-md5 md5_3
Loaded 1 password hash (Raw MD5 [raw-md5 MMX])
guesses: 0  time: 0:00:00:00 100%  c/s: 11518M  trying: coola

Then I delete first word from my wordlist file and try again:

powerman@home ~/tmp/hack/hack4u $ wc words_c1 
 92150  92150 914259 words_c1
$ john --wordlist=words_c1 --format=raw-md5 md5_3
Loaded 1 password hash (Raw MD5 [raw-md5 MMX])
cool             (user)
guesses: 1  time: 0:00:00:00 100%  c/s: 10238M  trying: cookys - cool

Also I found it's enough to delete last 3 chars "etz" from first word in this file instead of deleting first word.

I'll attach gzip'd version of words_c1 to this report.
Comment 1 Alex Efros 2006-05-09 18:06:13 UTC
Created attachment 86521 [details]
wordlist

This is minimal version of wordlist which has this bug.
Comment 2 Alex Efros 2006-05-10 11:41:16 UTC
I just got reply from patch author:

---cut---
From: bartavelle <bartavelle@bandecon.com>
To: Alex Efros <powerman@powerman.asdfGroup.com>
Subject: Re: johntheripper-1.6.40 skip words from wordlist

yes this is a bug i found and forgot to advertise, because i mainly use
 btb now :(
you should change:

memset(saved_key, 0, PLAINTEXT_LENGTH*MMX_COEF);

by

memset(saved_key, 0, sizeof(saved_key));

The same bug could also be in sha1 and md4 stuff i made.

In doubt you can always use the latest tree, where i fix bugs as soon a
i find them (http://www.bandecon.net/misc/myjohn.tgz).

It is not suited for inclusion into a distribution, but you'll find
there AMD64 support for md5 (20% speedup approx.).
---cut---
Comment 3 Christian Heim (RETIRED) gentoo-dev 2006-08-04 00:50:24 UTC
Should now be fixed in CVS. Thanks