certly / yara
此包最新版本(v1.0.4)的许可信息不可用。
v1.0.4
2016-06-23 21:44 UTC
Requires
- symfony/process: ^3.0
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;
}