From 7086197047f3b342f650b91374c322615693c888 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 9 Sep 2020 23:25:19 +0200 Subject: Added extension to detect nested subdomains as used in Browsertunnel attack tool https://github.com/veggiedefender/browsertunnel --- example/ndpiReader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 6017bab23..76b844b30 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3327,10 +3327,10 @@ static void dgaUnitTest() { assert(ndpi_str != NULL); for(i=0; dga[i] != NULL; i++) - assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i]) == 1); + assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)dga[i], 1) == 1); for(i=0; non_dga[i] != NULL; i++) - assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i]) == 0); + assert(ndpi_check_dga_name(ndpi_str, NULL, (char*)non_dga[i], 1) == 0); ndpi_exit_detection_module(ndpi_str); } -- cgit v1.2.3