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

Command to list the modules installed #737

Closed
plutec opened this issue Sep 11, 2017 · 3 comments · Fixed by #1801
Closed

Command to list the modules installed #737

plutec opened this issue Sep 11, 2017 · 3 comments · Fixed by #1801

Comments

@plutec
Copy link
Contributor

plutec commented Sep 11, 2017

In order to see the modules compiled with yara, we can include a command like:

$yara -xl
pe
elf
cuckoo
math
[...]
@silascutler
Copy link
Contributor

I'd like to see this also

@elhoim
Copy link

elhoim commented Dec 17, 2021

+1

@geekscrapy
Copy link

Came here to leave a +1!
This is really important with appliance based tech which bundles YARA, sometimes developers miss out this information in the documentation...

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.
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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants