aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-03-03 19:30:01 +0100
committerLuca Deri <deri@ntop.org>2021-03-03 19:30:01 +0100
commit0f8a9948415bceac84148e1965e12e3f19c5050e (patch)
treee0615fc8fbf465178d29c78472638fb56b6ba5e3 /example/ndpiReader.c
parent49843509e54aa70dc69005dab5f02f32df7866e2 (diff)
Improved DGA detection
Before Accuracy 66%, Precision 86%, Recall 38% After Accuracy 71%, Precision 89%, Recall 49%
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 4eece7268..4df335d1c 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -3530,9 +3530,11 @@ static void dgaUnitTest() {
for(i=0; dga[i] != NULL; i++)
assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i], 1) == 1);
- for(i=0; non_dga[i] != NULL; i++)
+ for(i=0; non_dga[i] != NULL; i++) {
+ /* printf("Checking non DGA %s\n", non_dga[i]); */
assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i], 1) == 0);
-
+ }
+
ndpi_exit_detection_module(ndpi_str);
}