hashcat Forum
Duplicate with 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: Duplicate with rules (/thread-12122.html)



Duplicate with rules - simon0302010 - 08-22-2024

Is it possible to put a character between the duplicated password if you duplicate it using rules so "abc123" would turn into "abc123$abc123" for example?


RE: Duplicate with rules - penguinkeeper - 08-22-2024

"$$ d"


RE: Duplicate with rules - monyanus - 08-22-2024

@penguinkeeper You forgot that the appended "$" will also get duplicated and should be removed.
Not sure if my solution is the most efficient way, but I think you can solve it by using:

1) rotating to the right, "}" will rotate the word to the right, so "abc123$abc123$" becomes "$abc123$abc123"
2) delete the first character "D0" to remove the "$" in front.
The rule that you should use @simon0302010 is:

"$$ d } D0"


RE: Duplicate with rules - penguinkeeper - 08-22-2024

Or just truncate right side with "$$ d ]" if you don't want it at the end too


RE: Duplicate with rules - monyanus - 08-22-2024

(08-22-2024, 12:00 PM)penguinkeeper Wrote: Or just truncate right side with "$$ d ]" if you don't want it at the end too

Great! I was already wondering how to truncate from the left, I tried "$$ d D-1", which would be the pythonic way to do it and did not work.
I learned something new today, much appreciated.


RE: Duplicate with rules - simon0302010 - 08-23-2024

It worked, thx