hashcat Forum
how to limit password character length - 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: how to limit password character length (/thread-4140.html)

Pages: 1 2


how to limit password character length - agoago - 03-02-2015

Hi,

I'm using this command to find my password on mac Yosemite

Code:
./hashcat-cli64.app -m 7100 hash.txt wordlist.txt

And it was successful, however it took a little bit long.

What if I know exactly how many chacracter my password have. In this case, it's 6 characters ("tobein"). How can I tell hashcat not to try further than that?


RE: how to limit password character length - epixoip - 03-02-2015

http://hashcat.net/wiki/doku.php?id=rule_based_attack

You could use '6 or <7


RE: how to limit password character length - agoago - 03-02-2015

(03-02-2015, 06:08 AM)epixoip Wrote: http://hashcat.net/wiki/doku.php?id=rule_based_attack

You could use '6 or <7

Like this below?

Code:
./hashcat-cli64.app -m 6 7100 hash.txt wordlist.txt



RE: how to limit password character length - epixoip - 03-02-2015

No, like this:

Code:
echo "<7"  >under_7.rule
./hashcat-cli64.app -m 7100 hash.txt wordlist.txt -r under_7.rule



RE: how to limit password character length - agoago - 03-02-2015

Ok. I'm still checking


RE: how to limit password character length - epixoip - 03-02-2015

Works here:

Code:
epixoip@token:~$ echo "<7" >under_7.rule

epixoip@token:~$ cat under_7.rule
<7

Did you forget the quotes?


RE: how to limit password character length - agoago - 03-02-2015

I see. It's working now. But something interesting that I want to clarify with you.

The limit character method should work faster than no limit right? However the limit method reports the longer estimated time than without using

I attached the screen shots for your reference.


RE: how to limit password character length - epixoip - 03-02-2015

Too much overhead checking the length of each candidate. You can try using the other rule instead. Edit the rule file and replace <7 with '6 and see if that helps.


RE: how to limit password character length - agoago - 03-02-2015

(03-02-2015, 06:54 AM)epixoip Wrote: Too much overhead checking the length of each candidate. You can try using the other rule instead. Edit the rule file and replace <7 with '6 and see if that helps.

I just tried that. The estimated time now is still the same as "<7"


RE: how to limit password character length - epixoip - 03-02-2015

Yeah, slightly faster but not near as fast as not filtering at all. String manipulation is just too slow.

So in this case what I'd suggest doing is pre-filtering your wordlist.

Code:
awk 'length < 7' wordlist.txt >wordlist_6.txt

Then run wordlist_6.txt instead of wordlist.txt