hashcat Forum
Does it possible to set condition "if" in rules? - 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: Does it possible to set condition "if" in rules? (/thread-10377.html)



Does it possible to set condition "if" in rules? - reter94092 - 10-01-2021

For example

input: word

if input.lenght<7
input+input

output: wordword


RE: Does it possible to set condition "if" in rules? - Snoopy - 10-04-2021

just use the rule d

the extra logic to check if your password is shorter than 7 will just slow down the cracking process (more than just testing this extra password even if its longer than 7)

EDIT:
or another idea, for 3 basic rulesĀ 
: (do nothing)
d (duplicate)
'6 d (first truncate at position 6 or use 7 if you want <=7, and then duplicate this word)