Skip to content

Conversation

wxsBSD
Copy link
Contributor

@wxsBSD wxsBSD commented Aug 16, 2024

This adds a "developers" feature that when enabled will turn on the "debug" command - and without it the command is not available. Prior to this the command was always available but hidden.

I think the ability to list modules is a nice feature for users to have available, so I'm not sure I like the idea of putting this behind a features flag that is off by default. Does it make sense to have "debug" be behind developers but move the ability to list modules to it's own command that is on by default?

wxsBSD added 3 commits August 16, 2024 13:40
Add the ability to print available modules via "yr debug modules".

I experimented with making it take a "verbose" flag that would also print the
protobuf definition of the module, which would make it easier for users to find
out what is "available" to use from the module in their rules, but it was a lot
to print out and would require users to translate from the protobuf types into
YARA types, which is probably more than they want to do.
Add a "developer" feature that enables the debug command. Prior to this the
command was always available but just hidden. This makes it a compile-time
feature that can be useful if you're into doing developer type things like
debugging the syntax trees.
@plusvic plusvic enabled auto-merge (squash) August 19, 2024 19:48
@plusvic plusvic merged commit 83eb9ea into VirusTotal:main Aug 19, 2024
@wxsBSD wxsBSD deleted the listmodules branch August 19, 2024 21:17
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.

2 participants