Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 yara 规则文件malware.yar中,内容如
malware.yar
rule rules_one {} rule rules_two {} ...
文件中有很多规则,我yr_compiler_add_file用来添加文件,然后yr_compiler_get_rules用来获取规则。我从规则文件中获取所有规则,现在我只想使用一个规则来扫描缓冲区。
yr_compiler_add_file
yr_compiler_get_rules
如果我使用yr_rules_scan_mem,它将使用所有规则扫描缓冲区。但我只需要一个来做到这一点。我能怎么做?
yr_rules_scan_mem