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

Implement API that allows providing data for modules. #1

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

plusvic
Copy link
Owner

@plusvic plusvic commented Jan 8, 2018

Most YARA modules use the data being scanned as their only input, but some others needs additional data (example: the "cuckoo" module). With the existing API the user didn't have a way for providing additional data to modules. This commit implements a new set of API functions that accept a ScanOptions structure, where one the fields is a map of strings to byte slices that provides additional data for modules.

As the new API is more general, the existing functions where implemented using the new ones.

Most YARA modules use the data being scanned as their only input, but some others needs additional data (example: the "cuckoo" module). With the existing API the user didn't have a way for providing additional data to modules. This commit implements a new set of API functions that accept a ScanOptions structure, where one the fields is a map of strings to byte slices that provides additional data for modules.

As the new API is more general, the existing functions where implemented using the new ones.
@plusvic plusvic merged commit a56ae4e into master Jan 8, 2018
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