diff --git a/docs/USAGE.md b/docs/USAGE.md index 522f05f..dd7a86f 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -274,6 +274,28 @@ Retain masks or partial masks can be created to retain only certain keywords in ptt -f -t mask-retain -rm -tf ``` Where `` is the mask to retain and `` is the file containing the keywords to retain. The output will be the mask with only the keywords retained. + +The `retain` mode can also be used with `-rm` to alter the replacement mask and recieve different output. +``` +$ echo 'sp-test1337' | ptt -t retain -tf keep.tmp +[*] Reading files for input. +[*] All input loaded. +[*] Task complete with 2 unique results. +sp-?l?l?l?l?d?d?d?d +?l?l?s?l?l?l?l1337 + +$ echo 'sp-test1337' | ptt -t retain -tf keep.tmp -rm l +[*] Reading files for input. +[*] All input loaded. +[*] Task complete with 2 unique results. +sp-?l?l?l?l1337 +?l?l-?l?l?l?l1337 + +$ cat keep.tmp +sp- +1337 +``` + ## Rule Transformation Usage There are several types of rules that can be created using PTT: - `Append Rules`: Append a string to the end of the password.