hashcat Forum
Hashcat rules generate duplicates - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html)
+--- Forum: Old hashcat Support (https://hashcat.net/forum/forum-20.html)
+--- Thread: Hashcat rules generate duplicates (/thread-2566.html)



Hashcat rules generate duplicates - Wolfdale - 08-29-2013

I'm using the following command to redirect the words generated by hashcat with the best64 rule to a file. The file 'test' contains only the word test.

hashcat -r /usr/share/hashcat/rules/best64.rule test --stdout >> best64.txt

The command creates a file with 201 words.

wc -l best64.txt
201

But it contains duplicates!

..
t3st
tet
te
tes
tes
te
t
tt
..
..

I did
sort -u best64.txt | wc -l
188

So it created 13 duplicates!

i'm probably doing something wrong, anyone able to help? Thanks guys!


RE: Hashcat rules generate duplicates - epixoip - 08-29-2013

different rules can result in the same plaintext candidate under certain conditions, while under normal conditions they would result in different candidates.

for example, the following rules would all transform "test" into "tes":

]
D4
'3

whereas if they were each applied to "password" would result in:

passwor
passord
pass

hope that helps.


RE: Hashcat rules generate duplicates - Wolfdale - 08-29-2013

Oh, now i see! Very good explanation ! So it's a "tradeoff" if I want to have a more complete ruleset or duplicate words.
For slow algorithms every bit help and these duplicates will grow on me for sure... Need a more powerful hardware i guess Tongue I'm still salivating at your VCL rigs !

Quick edit: quick question, if i want to leetify the whole word, how do I do?
so0
si1
se3
This results in
l33tify
leet1fy

I want it to result in
l33t1fy
(Both rules applied to the same word)
Thanks again!


RE: Hashcat rules generate duplicates - epixoip - 08-29-2013

the frequency of this occurring depends entirely on the wordlist and the ruleset. don't sweat it.


RE: Hashcat rules generate duplicates - epixoip - 08-29-2013

if you want to leetify the whole word, use the leetspeak rules and/or tables.


RE: Hashcat rules generate duplicates - Wolfdale - 08-29-2013

Shouldn't this rule be enough to do it?
sa@sc<se3si1so0ss$
(found in leetspeak rules)
I tried it but hashcat doesn't show any output.

edit:
Oh i see, the word either matches the whole patter or it doesn't apply it at all.
So
sa@so0
works for 'dollar' but doesn't work for 'doe'.
Any way to make 1 pattern work for all words?
edit:
i've found this thread http://hashcat.net/forum/thread-1158.html
So i have to pipe hashcat to hascat plus and use lookup tables. Oh well : ((

Thanks epixoip for your patience. I'm an hashcat noobie : P