From 0f8a9948415bceac84148e1965e12e3f19c5050e Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 3 Mar 2021 19:30:01 +0100 Subject: Improved DGA detection Before Accuracy 66%, Precision 86%, Recall 38% After Accuracy 71%, Precision 89%, Recall 49% --- example/ndpiReader.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'example/ndpiReader.c') 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); } -- cgit v1.2.3