Added extension to detect nested subdomains as used in Browsertunnel attack tool

https://github.com/veggiedefender/browsertunnel
This commit is contained in:
Luca Deri
2020-09-09 23:25:19 +02:00
parent 842c00e681
commit 7086197047
10 changed files with 61 additions and 48 deletions
+2 -2
View File
@@ -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);
}