I have noticed that when a offset of variable ie. @variable[1] is used with the
range (in) like this: $variable2 in (0..@variable[1])
rule test_range : test {
strings:
$a = "Yara rulez!"
$b = "TOFIND"
condition:
$b and $b in (0..@a[1])
}
a Text file like this:
<BEGIN>
sdfsf
TOFIND
sdfsf
<END>
The rule "test_range" will hit even if the string $a
doesn't exist in the file.
Original issue reported on code.google.com by golgotr...@gmail.com on 18 Mar 2013 at 2:47
Original issue reported on code.google.com by
golgotr...@gmail.com
on 18 Mar 2013 at 2:47