YARA Rule

这是一个用于演示比较字符串之间相对偏移的YARA rule.

rule IsPEFile
{
        strings:
           $mz = "MZ"
           $pe = "PE"
           
        condition:
           $mz and $pe and for any of ($pe*) : ( @ > @mz and @ < @mz+0x130 )
}

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top