hashcat Forum
Can You Limit Rule Candidate Lengths? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: Can You Limit Rule Candidate Lengths? (/thread-11989.html)



Can You Limit Rule Candidate Lengths? - Ruthless11042541 - 05-18-2024

I'm not sure if this is possible, and I'm still pretty new to hashcat, but is it possible to limit the length of candidates after rules have been applied to a wordlist and reject the rest?

For example, say my wordlist has words varying from 2-20 characters in length. Is there a way that hashcat can only apply the rules in my .rule file to them if the candidate will be between 8-12 characters?

I saw this post, but I'm not exactly sure how the answer works:
https://security.stackexchange.com/questions/195682/hashcat-how-to-discard-words-of-length-less-than-n-after-rules-have-been-applie

What would I really put after
Code:
hashcat /home/user/Desktop/Wordlists/wordlist.txt -r myrule.rule --stdout | len 8 12 |
if I were to use it?

Thanks for the help!