[Forensics-changes] [yara] 227/407: Implement --pring-namespace commad-line argument
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:29 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.3.0
in repository yara.
commit 3234c4be616997ffcdd3dee0a46f2f92c9bc0265
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Fri Nov 21 18:26:56 2014 +0100
Implement --pring-namespace commad-line argument
---
yara.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/yara.c b/yara.c
index 330cf8c..f34a3cf 100644
--- a/yara.c
+++ b/yara.c
@@ -92,6 +92,7 @@ int show_specified_tags = FALSE;
int show_specified_rules = FALSE;
int show_strings = FALSE;
int show_meta = FALSE;
+int show_namespace = FALSE;
int ignore_warnings = FALSE;
int fast_scan = FALSE;
int negate = FALSE;
@@ -127,6 +128,9 @@ struct argparse_option options[] =
OPT_BOOLEAN('s', "print-strings", &show_strings,
"print matching strings"),
+ OPT_BOOLEAN('e', "print-namespace", &show_namespace,
+ "print rules' namespace"),
+
OPT_INTEGER('p', "threads", &threads,
"use the specified number of threads to scan a directory", "<number>"),
@@ -491,6 +495,10 @@ int handle_message(int message, YR_RULE* rule, void* data)
if (show)
{
mutex_lock(&output_mutex);
+
+ if (show_namespace)
+ printf("%s:", rule->ns->name);
+
printf("%s ", rule->identifier);
if (show_tags)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list