Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement new API that allows invoking YARA modules directly #52

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

plusvic
Copy link
Member

@plusvic plusvic commented Nov 10, 2023

With this new API you use a YARA module as a file-parsing tool, and obtain the results produced by the module without any YARA rule involved in the process. This is useful for external tools that what to leverage YARA's file parsing capabilities for their own purposes.

This required changing the arguments passed to the main function of each module, from &ScanContext to &[u8].

…ithout any YARA rule involved.

This required changing the arguments passed to the main function of each module, from `&ScanContext` to `&[u8]`.
@plusvic plusvic enabled auto-merge (squash) November 10, 2023 10:11
@plusvic plusvic merged commit 8c0a57b into main Nov 10, 2023
23 checks passed
@plusvic plusvic deleted the context-refactor branch November 10, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant