Prepend, append, and prepend+append words from one list to words from another list
#1
Hi guys. The question is in the title.

I want to recover my own password that I stupidly forgot. I've made a list of possible words, and also I've made a list of words/combinations of symbols that I would like to try to prepend, append, and prepend+append to each word from the list.

So let's say this is one word from my first word list:

Code:
tree

And this is my additional word list:

Code:
*
**
!
!*
*!
**!
!**

The result must look like this:


Code:
*tree
tree*
*tree*
**tree
tree**
**tree**
!tree
tree!
!tree!
!*tree
tree!*
!*tree!*
*!tree
tree*!
*!tree*!
**!tree
**!tree
**!tree**!
!**tree
tree!**
!**tree!**

etc.

How do I achieve this? I also have HashCat GUI by BlandyUK v. 1.3 (2021), but I haven't been able to find any obvious way to do so. But I'm willing to use just the CLI if I must. Please help.
Reply
#2
https://hashcat.net/wiki/doku.php?id=rule_based_attack
Reply
#3
(07-05-2021, 03:24 PM)Xanadrel Wrote: https://hashcat.net/wiki/doku.php?id=rule_based_attack

I've already seen this page. I don't see any instruction on how to mutually append, prepend, and append+prepend words from two files to one another.
Reply
#4
Consider using PRINCE (https://github.com/hashcat/princeprocessor)
Put all the different word-parts in one file and PRINCE will make all the possible combinations for you. Pipe this output to Hashcat.
Reply
#5
(07-05-2021, 04:01 PM)COOLak Wrote:
(07-05-2021, 03:24 PM)Xanadrel Wrote: https://hashcat.net/wiki/doku.php?id=rule_based_attack

I've already seen this page. I don't see any instruction on how to mutually append, prepend, and append+prepend words from two files to one another.

Put appends in for example append.rule, prepends in prepend.rule and then use
Code:
-r append.rule -r prepend.rule

And throw a : rule in each file as well...
Reply
#6
(07-05-2021, 05:14 PM)Xanadrel Wrote:
(07-05-2021, 04:01 PM)COOLak Wrote:
(07-05-2021, 03:24 PM)Xanadrel Wrote: https://hashcat.net/wiki/doku.php?id=rule_based_attack

I've already seen this page. I don't see any instruction on how to mutually append, prepend, and append+prepend words from two files to one another.

Put appends in for example append.rule, prepends in prepend.rule and then use
Code:
-r append.rule -r prepend.rule

And throw a : rule in each file as well...

I don't understand. How do I make it know which rule file is for prepending and which one is for appending?
Reply