Closed seb-acsc closed 15 hours ago
Appears that it should now be something like strings = {z.plaintext().decode("utf8") for x in matches for y in x.strings for z in y.instances}
Assuming this is intentional, I can put together a PR to update the demo extractors and try to make a unit test for them
Well the maco.yara
module is meant to contain a bunch of interfaces that are meant to replicate the behaviour of matches from yara-python
(while running yara-x
under the hood).
If this is an action that you can perform in yara-python normally, then I think we should extend that functionality to the interface classes
I've confirmed that this issue was originally raised with Yara (non x) v4.3.0, and that the maco interfaces are correct. I'll submit a PR with the updated demo extractor, and add testing of the demo extractor run so we can pick this up next time
Looks like 1.2.0 breaks compatibility for extractors that inspect yara rules.
Running maco with the demo extractors causes the following issue: