certly/yara

There is no license information available for the latest version (v1.0.4) of this package.

Maintainers

Details

github.com/certly/yara

Source

Issues

Installs: 1 394

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 3

Forks: 1

Open Issues: 0

Language:Hack

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

This package is not auto-updated.

Last update: 2024-12-16 12:57:40 UTC


README

A YARA wrapper for PHP. Requires that a yara executable exist in your PATH or in a path specified.

$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;
}