mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Change --print-module-info to --print-module-data
This commit is contained in:
@@ -22,7 +22,7 @@ limitations under the License.
|
||||
// Bitmasks for flags.
|
||||
#define SCAN_FLAGS_FAST_MODE 1
|
||||
#define SCAN_FLAGS_PROCESS_MEMORY 2
|
||||
#define SCAN_FLAGS_SHOW_MODULE_INFO 4
|
||||
#define SCAN_FLAGS_SHOW_MODULE_DATA 4
|
||||
|
||||
|
||||
int yr_scan_verify_match(
|
||||
|
||||
+1
-1
@@ -478,7 +478,7 @@ _exit:
|
||||
|
||||
_yr_rules_clean_matches(rules, &context);
|
||||
|
||||
if (flags & SCAN_FLAGS_SHOW_MODULE_INFO)
|
||||
if (flags & SCAN_FLAGS_SHOW_MODULE_DATA)
|
||||
yr_modules_print_data(&context);
|
||||
|
||||
yr_modules_unload_all(&context);
|
||||
|
||||
@@ -94,7 +94,7 @@ char* ext_vars[MAX_ARGS_EXT_VAR + 1];
|
||||
char* modules_data[MAX_ARGS_EXT_VAR + 1];
|
||||
|
||||
int recursive_search = FALSE;
|
||||
int show_module_info = FALSE;
|
||||
int show_module_data = FALSE;
|
||||
int show_tags = FALSE;
|
||||
int show_specified_tags = FALSE;
|
||||
int show_specified_rules = FALSE;
|
||||
@@ -127,8 +127,8 @@ args_option_t options[] =
|
||||
OPT_BOOLEAN('n', "negate", &negate,
|
||||
"print only not satisfied rules (negate)", NULL),
|
||||
|
||||
OPT_BOOLEAN('D', "print-module-info", &show_module_info,
|
||||
"print module information"),
|
||||
OPT_BOOLEAN('D', "print-module-data", &show_module_data,
|
||||
"print module data"),
|
||||
|
||||
OPT_BOOLEAN('g', "print-tags", &show_tags,
|
||||
"print tags"),
|
||||
@@ -648,8 +648,8 @@ void* scanning_thread(void* param)
|
||||
if (fast_scan)
|
||||
flags |= SCAN_FLAGS_FAST_MODE;
|
||||
|
||||
if (show_module_info)
|
||||
flags |= SCAN_FLAGS_SHOW_MODULE_INFO;
|
||||
if (show_module_data)
|
||||
flags |= SCAN_FLAGS_SHOW_MODULE_DATA;
|
||||
|
||||
while (file_path != NULL)
|
||||
{
|
||||
@@ -1000,8 +1000,8 @@ int main(
|
||||
if (fast_scan)
|
||||
flags |= SCAN_FLAGS_FAST_MODE;
|
||||
|
||||
if (show_module_info)
|
||||
flags |= SCAN_FLAGS_SHOW_MODULE_INFO;
|
||||
if (show_module_data)
|
||||
flags |= SCAN_FLAGS_SHOW_MODULE_DATA;
|
||||
|
||||
result = yr_rules_scan_proc(
|
||||
rules,
|
||||
@@ -1064,8 +1064,8 @@ int main(
|
||||
if (fast_scan)
|
||||
flags |= SCAN_FLAGS_FAST_MODE;
|
||||
|
||||
if (show_module_info)
|
||||
flags |= SCAN_FLAGS_SHOW_MODULE_INFO;
|
||||
if (show_module_data)
|
||||
flags |= SCAN_FLAGS_SHOW_MODULE_DATA;
|
||||
|
||||
result = yr_rules_scan_file(
|
||||
rules,
|
||||
|
||||
Reference in New Issue
Block a user