p8a / yara-java

Java bindings for Yara
Apache License 2.0
23 stars 25 forks source link

Adds the ability to scan a byte array to the YaraScanner API #25

Closed wjsl closed 7 years ago

wjsl commented 7 years ago

We embed yara in some of our process to scan memory buffers. Most of the functionality to do this using libyara is already built in, but is not exposed in YaraScanner. This patch sets adds a similar set of scan methods to the YaraScanner API that accept a byte[] instead of a File.

Props to @mobileAgent for the initial time investment into this.