hashcat Forum
Using increment correctly with maskprocessor. - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat-utils, maskprocessor, statsprocessor, md5stress, wikistrip (https://hashcat.net/forum/forum-28.html)
+--- Thread: Using increment correctly with maskprocessor. (/thread-10987.html)



Using increment correctly with maskprocessor. - Tom_R - 08-26-2022

I'm trying to use the increment option with maskprocessor, but when I use this command:
Code:
./mp64.bin -i 1:6 '$_$a$b'

I get the following result, which contains invalid rules:
Quote:$
$_
$_$
$_$a
$_$a$
$_$a$b

What is the correct syntax that I need to use, to get the correct output of:
Quote:$_
$_$a
$_$a$b



RE: Using increment correctly with maskprocessor. - fsdafsadfsdsdaf - 09-12-2024

2 years later I have the same issue. trying to generate 1-4 digits based on the wiki example
Code:
mp64.exe -o bf.rule "$?d $?d $?d $?d" -i 1:4

i get

Code:
$
$0
$1
$2
$3
$4
$5
$6
$7
$8
$9
$0
$1
$2
$3
$4
$5
$6
$7
$8
$9
$0 $
$1 $
$2 $
$3 $
$4 $
$5 $
$6 $
$7 $
$8 $
$9 $

The problem seem to be that maskprocessor does count on chars (or bytes) and not on valid tokens.


RE: Using increment correctly with maskprocessor. - Snoopy - 09-13-2024

mp64 -i1:4 ?d?d?d?d

result in output 1 up to 9999


RE: Using increment correctly with maskprocessor. - fsdafsadfsdsdaf - 09-13-2024

(09-13-2024, 11:42 AM)Snoopy Wrote: mp64 -i1:4 ?d?d?d?d

result in output 1 up to 9999

Sorry, this example is about the append the digits to a wordlist, I think your example only generates a wordlist of numbers, doesn't it?


RE: Using increment correctly with maskprocessor. - Snoopy - 09-13-2024

(09-13-2024, 11:44 AM)fsdafsadfsdsdaf Wrote:
(09-13-2024, 11:42 AM)Snoopy Wrote: mp64 -i1:4 ?d?d?d?d

result in output 1 up to 9999

Sorry, this example is about the append the digits to a wordlist, I think your example only generates a wordlist of numbers, doesn't it?

Okay got it, you want to generate the rules okay, you hve to split it up, it will not work with -increment as it counts the lenght of the "output" so you have to use this

mp64 "$?d" >> your_rulefile
mp64 "$?d $?d"  >> your_rulefile
mp64 "$?d $?d $?d"  >> your_rulefile
mp64 "$?d $?d $?d $?d   >> your_rulefile

result will be a file with all rules for adding 1 up to 9999