Fix issue with yara scans not accepting binary data.

This commit is contained in:
Mike Auty
2018-12-01 20:32:08 +00:00
parent 5dea1968bb
commit 185d4ccdc2
+1 -1
View File
@@ -23,7 +23,7 @@ class YaraScanner(interfaces.layers.ScannerInterface):
self._rules = rules
def __call__(self, data: bytes, data_offset: int) -> typing.Iterable[typing.Tuple[int, str]]:
for match in self._rules.match(data):
for match in self._rules.match(data = data):
for offset, name, value in match.strings:
yield (offset + data_offset, name)