Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Use AN"str" vs $x$x$x or ^x^x^x to append/prepend #22

Open
jfoug opened this issue Sep 6, 2020 · 0 comments
Open

Enhancement: Use AN"str" vs $x$x$x or ^x^x^x to append/prepend #22

jfoug opened this issue Sep 6, 2020 · 0 comments

Comments

@jfoug
Copy link

jfoug commented Sep 6, 2020

This may be a JtR specific enhancement. I am not sure that HC does the string insertions.

The proper syntax change is:

$j$a$m$e$s  --> Az"james"  
^y^r^a^m  --> A0"mary"  

(Note the ^y^r^a^m is talked about in #21)

Using the 0 and z insertion methods is much faster than using the character append-prepend codes, UNLESS you are only appending/prepending 1 or 2 characters. 1 char is faster to use the character at a time, and 2 is pretty close to same speed (JtR results). Again, I am not 100% sure about internal speed of the rules engine in HC, and I do not think that the AN"str" rule is available in HC. As for the format of AN"str" the quote characters can be almost any character. BUT that character must not be in the string. So if you wanted to append the string test"this We could not use a quote. We must use something else, like Az~test"this~

This change may require a setting somewhere listing to output in JtR flavored rules (Such as a settings page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant