You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like the withPlainString, withHexString and withRegexp accept one more parameter comment and add supplied text as a one line comment next to the string. Through Python the functions may be accessed as follows:
a = YaraRuleBuilder()
a = a.with_name("b")
a = a.with_plain_string("$s1", "hello", "COMMENT")
a = a.with_condition(of(all(), them()).get())
which would create a rule
rule b
{
strings:
$s1 = "hello" // COMMENT
condition:
all of them
}
The new parameter comment needs to be optional.
The comment shall be after string modifiers if present.
The text was updated successfully, but these errors were encountered:
We would like the
withPlainString
,withHexString
andwithRegexp
accept one more parametercomment
and add supplied text as a one line comment next to the string. Through Python the functions may be accessed as follows:which would create a rule
comment
needs to be optional.The text was updated successfully, but these errors were encountered: