Skip to content

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

@jfoug

Description

@jfoug

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions