hashcat Forum

Full Version: Is there a way to do this with masks or rules?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to create a mask or rule that meets the following requirements:
Between 10 and 20 characters
Each character can be anything (?a)
The plaintext must include "hello"
The plaintext must include "world"

Is there a way to do this with masks or rules?
(04-08-2024, 11:15 AM)Delize Wrote: [ -> ]I would like to create a mask or rule that meets the following requirements:
Between 10 and 20 characters
Each character can be anything (?a)
The plaintext must include "hello"
The plaintext must include "world"

Is there a way to do this with masks or rules?

well not really, you have to generate a maskfile for that, but you can use hashcats princeprocessor to assist you in some kind of way

input.txt
Code:
hello
world
?a

use princeprocesor
pp64 --pw-min=12 --pw-max=30 --elem-cnt-min=3 input.txt >> output.txt

clean output.txt from unwanted lines or use a good texteditor like sublimetext with regex search to find the lines which contains hello world or world hello and copy them into a new file

each line is a mask on its own and you need to feed hashcat with that file, but just one thing lines with 10 times ?a will mostly result in a buffer overflow, because the keyspace is way to much