Possible to use Yara command line options? #588
Replies: 1 comment
|
Short answer: no — those are flags of the From import yara
...
self.compiled_yara = yara.compile(filepaths=yara_filepaths)
...
yara_matches = self.compiled_yara.match(data=data)
One gotcha worth calling out on the if self.store_offset and self.offset_meta_key:
if match.meta.get(self.offset_meta_key):The rule itself has to carry that meta key. The shipped store_offset: True
offset_meta_key: "StrelkaHexDump"
offset_padding: 32so you need If you specifically want true |
Uh oh!
There was an error while loading. Please reload this page.
If you run yara standalone from the command line you can use options like -L or -s. Is it possible to add those in the configuration somewhere?
All reactions