certly/yara

此包最新版本(v1.0.4)的许可信息不可用。

维护者

详细信息

github.com/certly/yara

源代码

问题

安装数: 1,393

依赖者: 0

建议者: 0

安全性: 0

星标: 6

关注者: 3

分支: 1

开放问题: 0

语言:Hack

v1.0.4 2016-06-23 21:44 UTC

This package is not auto-updated.

Last update: 2024-09-23 12:04:51 UTC


README

PHP的YARA包装器。要求在您的PATH或指定的路径中存在yara可执行文件。

$yara = new Certly\YARA\YARA();

$matches = $yara->match('abcdef', [
    '
        rule silent_banker : banker
        {
            meta:
                description = "An example rule."
        
            strings:
                $a = "abc"
        
            condition:
                $a
        }
    ',
]));

foreach ($matches as $match) {
    echo "Matched {$match['rule']}." . PHP_EOL;
    echo "Raw output: {$match['raw']}" . PHP_EOL;
}