hashcat Forum
Rule order and - 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: Rule order and (/thread-9864.html)



Rule order and - puck2 - 02-09-2021

This seems like an easy question, but I"m trying to figure it out. Do **hashcat** rules run *concurrently or sequentially*?

So for a simple *leet* rule like this:

    ## leetify
    :
    so0
    si1
    se3

If I'm running this and the word *sole* is in my dictionary file, will this only test

    s0le
    sol3

???

Similarly, how can I test partial replacements...
sXY replaces X with Y but what if I only want to replace one of two Xs ???

    s013

???

That is -  what is the syntax to run rules simultaneously AND independently?
Also, is there a way to run a rule on only some portion of the word, to account for an error in data entry?

so that

    week

would become

    w3ek
or
    we3k

(only one e being replaced)


RE: Rule order and - blacktraffic - 02-10-2021

(02-09-2021, 08:17 PM)puck2 Wrote: Also, is there a way to run a rule on only some portion of the word, to account for an error in data entry?

so that

    week

would become

    w3ek
or
    we3k

(only one e being replaced)

I wrote a (terrible) python3 script to do this for me - I don't know of a rule-based solution.

$ echo week > demo.txt
$ python3 scripts/leetify.py demo.txt
week
we3k
w3ek
w33k

https://github.com/blacktraffic/hashcrack/blob/master/scripts/leetify.py

Code is awful, but you can see how to tweak the substutions.