Create a single rule file with maskprocessor
#1
Hello,

I would like to create a rule file with maskprocessor - creating a rule to generate passwords. I know the pwd is a single birthday. It contains only 8 digits and begin 19.
I have a test.hccap file. The password let's be:19540302.

This command working:
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/hashes/test# hashcat -m 2500 -a 3 test.hccap -1 01 -2 0123 19?d?d?1?d?2?d
Initializing hashcat v2.00 with 2 threads and 32mb segment-size...

Added hashes from file test.hccap: 1 (1 salts)
Activating quick-digest mode for single-hash with salt

[s]tatus [p]ause [r]esume ypass [q]uit => s
[b]test.hccap:19540302    
            
                                             
All hashes have been recovered

Input.Mode: Mask (19?d?d?1?d?2?d) [8]
Index.....: 0/1 (segment), 80000 (words), 0 (bytes)
Recovered.: 1/1 hashes, 1/1 salts
Speed/sec.: - plains, 784 words
Progress..: 65740/80000 (82.17%)
Running...: 00:00:01:24
Estimated.: 00:00:00:18

If I generate a single rule with maskprocessor:
maskprocessor -1 01 -2 0123 19?d?d?1?d?2?d >> birthday.rule
It's create a dictionary file, but I need a rule file. So this command was bad.

This command better, I guess:
maskprocessor -1 01 -2 0123 '19$?d $?d $?1 $?d $?2 $?d' >> birthday2.rule
root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/hashes/test# tail birthday2.rule
19$9 $9 $1$ 9$ 3 $0
19$9 $9 $1$ 9$ 3 $1
19$9 $9 $1$ 9$ 3 $2
.
.
.

root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/hashes/test#wc -l birthday2.rule
80000 birthday2.rule

Which contains 80000 rows. But I need only 1 rule, which contains only 1 row to generate passwords.
How could I do that?

root@The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali):~/hashes/test# hashcat -V
2.00

Could you help me?
Note: this would be my first rule, I just started to learn using hashcat.

Thanks,
[/b]


Messages In This Thread
Create a single rule file with maskprocessor - by freeroute - 07-24-2016, 06:09 AM