-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Command to list the modules installed #737
Comments
I'd like to see this also |
+1 |
Came here to leave a +1! |
wxsBSD
added a commit
to wxsBSD/yara
that referenced
this issue
Oct 12, 2022
Add a -M option to the cli which will print the module names to stdout. As the number of modules has grown it can become confusing to know what modules are available, so this option will display them on stdout. NOTE: I'm not sure I like how I implemented this. It seems hackish to expose an API that just prints things on stdout but it felt even more hackish to walk the yr_modules_table array from outside of the module code. ;) Fixes VirusTotal#737.
Merged
plusvic
pushed a commit
that referenced
this issue
Oct 14, 2022
* Print module names. Add a -M option to the cli which will print the module names to stdout. As the number of modules has grown it can become confusing to know what modules are available, so this option will display them on stdout. NOTE: I'm not sure I like how I implemented this. It seems hackish to expose an API that just prints things on stdout but it felt even more hackish to walk the yr_modules_table array from outside of the module code. ;) Fixes #737. * Expose access to modules in the API. This adds a yr_modules_get_table to the libyara API so callers can get access to the modules. This is currently only used for printing the available module names in the yara cli. With this change it is now possible to expose this information in yara-python too.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to see the modules compiled with yara, we can include a command like:
The text was updated successfully, but these errors were encountered: