mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-09 19:27:39 +02:00
Fix issue with yara scans not accepting binary data.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user