for a start, here is the article about rules: https://hashcat.net/wiki/doku.php?id=rule_based_attack
The rules you need to accomplish what you are looking for are
prepend rule is easy: reverse the word you want to prepend and then use the prepend rule for every character, ie ^d^1^@^m
the procedure for inserting a substring is very similar. You need to create an individual rule for every position you want to insert the substring like this:
i2D i2A i2L will insert "LAD" after the second character of the word.
After you've done that you need to create all needed combinations of the rules you have.
The rules you need to accomplish what you are looking for are
- the insert rule (i)
- the prepend rule (^)
prepend rule is easy: reverse the word you want to prepend and then use the prepend rule for every character, ie ^d^1^@^m
the procedure for inserting a substring is very similar. You need to create an individual rule for every position you want to insert the substring like this:
i2D i2A i2L will insert "LAD" after the second character of the word.
After you've done that you need to create all needed combinations of the rules you have.