DGA improvements

This commit is contained in:
Luca Deri
2022-04-16 09:56:08 +02:00
parent 9c8a3f270a
commit 8b2c9860be
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4187,8 +4187,8 @@ static void dgaUnitTest() {
};
const char *non_dga[] = {
"mail.100x100design.com",
"cdcvps.cloudapps.cisco.com",
"100x100design.com",
"vcsa.vmware.com",
"mz.gov.pl",
"zoomam104zc.zoom.us",
+1 -1
View File
@@ -8318,7 +8318,7 @@ int ndpi_check_dga_name(struct ndpi_detection_module_struct *ndpi_str,
if(num_bigram_checks
/* We already checked num_dots > 0 */
&& ((num_found == 0) || ((num_digits > 5) && (num_words <= 3))
&& ((num_found == 0) || ((num_digits > 5) && (num_words <= 3) && (num_impossible > 0))
|| enough(num_found, num_impossible)
|| ((num_trigram_checked > 2)
&& ((num_trigram_found < (num_trigram_checked/2))